Jeepyb User | dd14e0b | 2017-02-28 15:19:32 +0000 | [diff] [blame] | 1 | #!/bin/bash -x |
| 2 | exec > >(tee -i /tmp/"$(basename "$0" .sh)"_"$(date '+%Y-%m-%d_%H-%M-%S')".log) 2>&1 |
| 3 | |
| 4 | # setup keystone service |
| 5 | salt -C 'I@keystone:server' state.sls keystone.server -b 1 |
| 6 | # populate keystone services/tenants/admins |
| 7 | salt -C 'I@keystone:client' state.sls keystone.client |
| 8 | salt -C 'I@keystone:server' cmd.run ". /root/keystonerc; keystone service-list" |
| 9 | |
| 10 | # Install glance and ensure glusterfs clusters |
| 11 | salt -C 'I@glance:server' state.sls glance -b 1 |
| 12 | salt -C 'I@glance:server' state.sls glusterfs.client |
| 13 | # Update fernet tokens before doing request on keystone server. Otherwise |
| 14 | # you will get an error like: |
| 15 | # "No encryption keys found; run keystone-manage fernet_setup to bootstrap one" |
| 16 | salt -C 'I@keystone:server' state.sls keystone.server |
| 17 | salt -C 'I@keystone:server' cmd.run ". /root/keystonerc; glance image-list" |
| 18 | |
| 19 | # Install nova service |
| 20 | salt -C 'I@nova:controller' state.sls nova -b 1 |
| 21 | salt -C 'I@keystone:server' cmd.run ". /root/keystonerc; nova service-list" |
| 22 | |
| 23 | # Install cinder service |
| 24 | salt -C 'I@cinder:controller' state.sls cinder -b 1 |
| 25 | salt -C 'I@keystone:server' cmd.run ". /root/keystonerc; cinder list" |
| 26 | |
| 27 | # Install neutron service |
| 28 | salt -C 'I@neutron:server' state.sls neutron -b 1 |
| 29 | salt -C 'I@neutron:gateway' state.sls neutron |
| 30 | salt -C 'I@keystone:server' cmd.run ". /root/keystonerc; neutron agent-list" |
| 31 | |
| 32 | # Install heat service |
| 33 | salt -C 'I@heat:server' state.sls heat -b 1 |
| 34 | salt -C 'I@keystone:server' cmd.run ". /root/keystonerc; heat resource-type-list" |
| 35 | |
| 36 | # Install horizon dashboard |
| 37 | salt -C 'I@horizon:server' state.sls horizon |
| 38 | salt -C 'I@nginx:server' state.sls nginx |
| 39 | |
| 40 | # Install ceilometer services |
| 41 | salt -C 'I@ceilometer:server' state.sls ceilometer -b 1 |
| 42 | salt -C 'I@heka:ceilometer_collector:enabled:True' state.sls heka.ceilometer_collector |
| 43 | |
| 44 | # Install aodh services |
| 45 | salt -C 'I@aodh:server' state.sls aodh -b 1 |