blob: 829184458958e0eeaa634037c5f6bfc0d927bc78 [file] [log] [blame]
Jeepyb Userdd14e0b2017-02-28 15:19:32 +00001#!/bin/bash -x
2exec > >(tee -i /tmp/"$(basename "$0" .sh)"_"$(date '+%Y-%m-%d_%H-%M-%S')".log) 2>&1
3
4# setup keystone service
5salt -C 'I@keystone:server' state.sls keystone.server -b 1
6# populate keystone services/tenants/admins
7salt -C 'I@keystone:client' state.sls keystone.client
8salt -C 'I@keystone:server' cmd.run ". /root/keystonerc; keystone service-list"
9
10# Install glance and ensure glusterfs clusters
11salt -C 'I@glance:server' state.sls glance -b 1
12salt -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"
16salt -C 'I@keystone:server' state.sls keystone.server
17salt -C 'I@keystone:server' cmd.run ". /root/keystonerc; glance image-list"
18
19# Install nova service
20salt -C 'I@nova:controller' state.sls nova -b 1
21salt -C 'I@keystone:server' cmd.run ". /root/keystonerc; nova service-list"
22
23# Install cinder service
24salt -C 'I@cinder:controller' state.sls cinder -b 1
25salt -C 'I@keystone:server' cmd.run ". /root/keystonerc; cinder list"
26
27# Install neutron service
28salt -C 'I@neutron:server' state.sls neutron -b 1
29salt -C 'I@neutron:gateway' state.sls neutron
30salt -C 'I@keystone:server' cmd.run ". /root/keystonerc; neutron agent-list"
31
32# Install heat service
33salt -C 'I@heat:server' state.sls heat -b 1
34salt -C 'I@keystone:server' cmd.run ". /root/keystonerc; heat resource-type-list"
35
36# Install horizon dashboard
37salt -C 'I@horizon:server' state.sls horizon
38salt -C 'I@nginx:server' state.sls nginx
39
40# Install ceilometer services
41salt -C 'I@ceilometer:server' state.sls ceilometer -b 1
42salt -C 'I@heka:ceilometer_collector:enabled:True' state.sls heka.ceilometer_collector
43
44# Install aodh services
45salt -C 'I@aodh:server' state.sls aodh -b 1