A preface
The deployment of any software is no technical content, any deployment of the deployment of the people are charlatan.
The essence of deployment is copy, paste, enter. We domesticated a dog, and it can do the job.
We must not be pedantic when we engage in technology: credulity or unbelief.
Credulous fools like to learn only half of the Sunflower Treasure book, on the half of the book to teach you to practice this work will be the first self-palace, and the next half of the book said is not from the palace actually also can.
The idiot of the unbelief is like a horse in the winter what? What's a horse? What Winter plum?
Two version information
Official website http://docs.openstack.org/newton/install-guide-rdo/keystone.html
We follow the Newton this version to deploy, in fact, with everyone, OpenStack basically keep updating a version every 6 months, in the face of such a fast version of the change, we actually look at a version in-depth study, go deep into what level, for the community to submit code. Any master who deploys every new version will be a silly fork.
Three Deployment Keystone
Reference official website http://docs.openstack.org/newton/install-guide-rdo/
System Information
[[Email protected] ~] # CentOS Linux release 7.0.1406~]# uname-r3.10.0-123.el7.x86_64
Step 1: Preparation phase
# Install the official Yum source # Update # Installation Tools # Install the Openstack-selinux package to automatically manage security policies for OpenStack components
Step 2: Deploy MARIADB
Installation
" " Keystone Support LDAP and MySQL as backend driver, used to store user-related information, catalog, etc., here we choose MARIADB " "
Configuration:/ETC/MY.CNF.D/OPENSTACK.CNF
[Mysqld]bind # Native Management Network IP default-storage-engine == 4096collation-server = utf8_general_cicharacter- Set-server = UTF8
Start the service and set the boot up
Systemctl Start Mariadb.service
Systemctl Enable Mariadb.service
Initialize database (optional)
Mysql_secure_installation
Step 3: Deploy Keystone
Keystone about database operations
Mysql-u root-p#log in to databaseCREATE DATABASE Keystone;#New Library KeystoneGRANT all privileges the keystone.* to'Keystone'@'localhost'identified by'123';#new account for local access to the Keystone LibraryGRANT all privileges the keystone.* to'Keystone'@'%'identified by'123';#Create a new remote Access Keystone Library account
Install packages
# Keystone Package name Openstack-keystone # the reason for installing httpd and MOD_WSGI is that the community master pushes the Apache+keystone # Openstack-keystone Essence is a web app based on WSGI protocol, and HTTPD is essentially a Web server compatible with WSGI protocol, so we need to install HTTPD module for MOD_WSGI -y install openstack-keystone httpd mod_wsgi
Configuration:/etc/keystone/keystone.conf
# let Openstack-keystone know how to connect to the back-end Database Keystone # Mysql+pymysql:pymysql is a python library that uses Python to manipulate MySQL native SQL = mysql+pymysql://keystone:'123'@192.168.31.57/# Fernet the way to generate tokens
Initializing the database Keystone
# The reason to initialize is because of Python's ORM Object Relational mapping, which requires initialization to generate the database table structure " keystone-manage Db_sync " Keystone
Keystone Series IV: Deployment Keystone