Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- yum install http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
- yum install http://rdo.fedorapeople.org/openstack-kilo/rdo-release-kilo.rpm
- yum upgrade
- yum install openstack-selinux
- yum install mariadb mariadb-server MySQL-python
- wget https://gist.github.com/nballotta/1265e371a8b587d7c4a0/raw/ca45fd1943bd4355a844cd2bc5d97478ca6f8164/mariadb_openstack.cnf
- mv mariadb_openstack.cnf /etc/my.cnf.d/mariadb_openstack.cnf
- systemctl enable mariadb.service
- systemctl start mariadb.service
- mysql_secure_installation
- yum install rabbitmq-server
- systemctl enable rabbitmq-server.service
- systemctl start rabbitmq-server.service
- rabbitmqctl add_user openstack password
- rabbitmqctl set_permissions openstack ".*" ".*" ".*"
- mysql -u root -ppassword
- CREATE DATABASE keystone;
- GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost' IDENTIFIED BY 'password';
- GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%' IDENTIFIED BY 'password';
- yum install openstack-keystone httpd mod_wsgi python-openstackclient memcached python-memcached
- systemctl enable memcached.service
- systemctl start memcached.service
- wget https://gist.githubusercontent.com/nballotta/18e08f943349e9c7a397/raw/a39686c1b321f14719c6e0e4ca3cb3ff11303504/keystone.conf
- mv keystone.conf /etc/keystone/keystone.conf
- su -s /bin/sh -c "keystone-manage db_sync" keystone
- sed -i -e "s/#ServerName.*/ServerName controller/g" /etc/httpd/conf/httpd.conf
- wget https://gist.githubusercontent.com/nballotta/3c99edb646c77cbed403/raw/6f23962efb6c021f039098f9ead8f145763e09eb/wsgi-keystone.conf
- mv wsgi-keystone.conf /etc/httpd/conf.d/wsgi-keystone.conf
- mkdir -p /var/www/cgi-bin/keystone
- 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
- chown -R keystone:keystone /var/www/cgi-bin/keystone
- chmod 755 /var/www/cgi-bin/keystone/*
- systemctl enable httpd.service
- systemctl start httpd.service
- systemctl enable openstack-keystone.service
- systemctl start openstack-keystone.service
- export OS_TOKEN=openstack
- export OS_URL=http://controller:35357/v2.0
- openstack service create --name keystone --description "OpenStack Identity" identity
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement