Advertisement
acidcrash

Untitled

Jul 20th, 2015
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.20 KB | None | 0 0
  1. yum install http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
  2. yum install http://rdo.fedorapeople.org/openstack-kilo/rdo-release-kilo.rpm
  3. yum upgrade
  4. yum install openstack-selinux
  5.  
  6. yum install mariadb mariadb-server MySQL-python
  7. wget https://gist.github.com/nballotta/1265e371a8b587d7c4a0/raw/ca45fd1943bd4355a844cd2bc5d97478ca6f8164/mariadb_openstack.cnf
  8. mv mariadb_openstack.cnf /etc/my.cnf.d/mariadb_openstack.cnf
  9. systemctl enable mariadb.service
  10. systemctl start mariadb.service
  11. mysql_secure_installation
  12.  
  13. yum install rabbitmq-server
  14. systemctl enable rabbitmq-server.service
  15. systemctl start rabbitmq-server.service
  16. rabbitmqctl add_user openstack password
  17. rabbitmqctl set_permissions openstack ".*" ".*" ".*"
  18.  
  19. mysql -u root -ppassword
  20. CREATE DATABASE keystone;
  21. GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost' IDENTIFIED BY 'password';
  22. GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%' IDENTIFIED BY 'password';
  23.  
  24. yum install openstack-keystone httpd mod_wsgi python-openstackclient memcached python-memcached
  25. systemctl enable memcached.service
  26. systemctl start memcached.service
  27.  
  28. wget https://gist.githubusercontent.com/nballotta/18e08f943349e9c7a397/raw/a39686c1b321f14719c6e0e4ca3cb3ff11303504/keystone.conf
  29. mv keystone.conf /etc/keystone/keystone.conf
  30. su -s /bin/sh -c "keystone-manage db_sync" keystone
  31. sed -i -e "s/#ServerName.*/ServerName controller/g" /etc/httpd/conf/httpd.conf
  32. wget https://gist.githubusercontent.com/nballotta/3c99edb646c77cbed403/raw/6f23962efb6c021f039098f9ead8f145763e09eb/wsgi-keystone.conf
  33. mv wsgi-keystone.conf /etc/httpd/conf.d/wsgi-keystone.conf
  34. mkdir -p /var/www/cgi-bin/keystone
  35. curl http://git.openstack.org/cgit/openstack/keystone/plain/httpd/keystone.py?h=stable/kilo | tee /var/www/cgi-bin/keystone/main /var/www/cgi-bin/keystone/admin
  36. chown -R keystone:keystone /var/www/cgi-bin/keystone
  37. chmod 755 /var/www/cgi-bin/keystone/*
  38. systemctl enable httpd.service
  39. systemctl start httpd.service
  40.  
  41.  
  42. systemctl enable openstack-keystone.service
  43. systemctl start openstack-keystone.service
  44. export OS_TOKEN=openstack
  45. export OS_URL=http://controller:35357/v2.0
  46. openstack service create --name keystone --description "OpenStack Identity" identity
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement