|
|
Line 1: |
Line 1: |
| == Installation ==
| |
|
| |
|
| This section contains a work-in-progress list of steps to get OpenStack up and running under Funtoo Linux:
| |
|
| |
| <console>
| |
| # ##i##emerge rabbitmq-server
| |
| # ##i##rc-update add rabbitmq default
| |
| # ##i##rc
| |
| </console>
| |
|
| |
| RabbitMQ is now running. Now let's create an openstack user with password <tt>foobar</tt>:
| |
|
| |
| <console>
| |
| # ##i##rabbitmqctl add_user openstack foobar
| |
| Creating user "openstack" ...
| |
| ...done.
| |
| </console>
| |
|
| |
| Now, let's get [[Keystone]] up and running. Let's emerge it:
| |
|
| |
| <console>
| |
| # ##i##emerge keystone
| |
| </console>
| |
|
| |
| A working sample configuration file will be installed automatically at <tt>/etc/keystone/keystone.conf</tt>.
| |
|
| |
| Note that <tt>admin_token</tt> is set to <tt>ADMIN</tt> by default. This is the master password for Keystone. You may want to change this to something harder to guess. We can disable <tt>admin_token</tt> later for enhanced security.
| |
|
| |
| <console>
| |
| # ##i## rc-update add keystone default
| |
| # ##i## rc
| |
| </console>
| |
|
| |
| By default, Keystone is configured to store its data in a SQLite database located at <tt>/etc/keystone/keystone.db</tt>. Let's initialize this database:
| |
|
| |
| <console>
| |
| # ##i## emerge --config keystone
| |
|
| |
|
| |
| Configuring pkg...
| |
|
| |
| * Got admin_token (SERVICE_TOKEN) of 'ADMIN'
| |
| * Please provide a password for the Keystone admin account:
| |
| > ##i##admin_fu
| |
| * Retype the password
| |
| > ##i##admin_fu
| |
| * Please provide a password for the Keystone service account:
| |
| > ##i##foobar
| |
| * Retype the password
| |
| > ##i##foobar
| |
| * Initializing Keystone database
| |
| Running keystone tenant-create --name=admin
| |
| > Set ADMIN_TENANT to 9899297af5b14c659e1379be52c7cede
| |
| Running keystone tenant-create --name=service
| |
| > Set SERVICE_TENANT to f3174098741b4311a2b5b660be5832d0
| |
| Running keystone tenant-create --name=demo
| |
| > Set DEMO_TENANT to 706a116a401649c7a0011447b3f1fc3b
| |
| Running keystone tenant-create --name=invisible_to_admin
| |
| > Set INVIS_TENANT to 8b5d5f84f2df41deae446fee8db94b23
| |
| Running keystone user-create --name=admin --pass=admin_fu --email=admin@example.com
| |
| > Set ADMIN_USER to 58a4decfe6254efeb6ee926ac5b49877
| |
| Running keystone user-create --name=demo --pass=admin_fu --email=demo@example.com
| |
| > Set DEMO_USER to 55294a0dcac442b389c068df78320665
| |
| Running keystone role-create --name=admin
| |
| > Set ADMIN_ROLE to 0bcfd242ac454e618ca13b6d675d32ae
| |
| Running keystone role-create --name=KeystoneAdmin
| |
| > Set KEYSTONEADMIN_ROLE to 135a5c0c02a547e0a41db868ea3e7988
| |
| Running keystone role-create --name=KeystoneServiceAdmin
| |
| > Set KEYSTONESERVICE_ROLE to b05ee92c99554757bd5cd0ee8664ce79
| |
| Running keystone role-create --name=anotherrole
| |
| > Set ANOTHER_ROLE to 15f10605d9cf4989affe63f2d88c6caf
| |
| Running keystone role-create --name=Member
| |
| > Set MEMBER_ROLE to 57ab630817dc42ac93dcaf940046b3ee
| |
| Running keystone user-create --name=nova --pass=foobar --tenant_id f3174098741b4311a2b5b660be5832d0 --email=nova@example.com
| |
| > Set NOVA_USER to 954c2af002c2448984d4d6ffeb4ba036
| |
| Running keystone user-create --name=glance --pass=foobar --tenant_id f3174098741b4311a2b5b660be5832d0 --email=glance@example.com
| |
| > Set GLANCE_USER to 8d76afbd242942e99a1756f6a6789578
| |
| * Completed successfully!
| |
|
| |
| #
| |
| </console>
| |
|
| |
| [[Category:OpenStack]]
| |