blob: 095814a767a2ccee3dded1e7e74ce592e53e3d5b [file] [log] [blame]
Dennis Dmitrievab83ea42017-05-12 16:52:45 +03001{% from 'mk22-lab-ovs/map.jinja' import DOMAIN_NAME with context %}
2{% from 'mk22-lab-ovs/map.jinja' import HOSTNAME_CFG01 with context %}
Dennis Dmitriev98449d92016-12-22 11:55:03 +02003
4# Install OpenStack control services
5
6- description: Install keystone service
7 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
8 -C 'I@keystone:server' state.sls keystone.server -b 1
9 node_name: {{ HOSTNAME_CFG01 }}
10 retry: {count: 3, delay: 5}
11 skip_fail: false
12
13- description: Populate keystone services/tenants/admins
14 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
15 -C 'I@keystone:client' state.sls keystone.client
16 node_name: {{ HOSTNAME_CFG01 }}
17 retry: {count: 3, delay: 5}
18 skip_fail: false
19
20- description: Check keystone service-list
21 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
22 -C 'I@keystone:server' cmd.run '. /root/keystonerc; keystone service-list'
23 node_name: {{ HOSTNAME_CFG01 }}
24 retry: {count: 3, delay: 5}
25 skip_fail: false
26
27
28- description: Install glance on all controllers
29 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
30 -C 'I@glance:server' state.sls glance -b 1
31 node_name: {{ HOSTNAME_CFG01 }}
32 retry: {count: 3, delay: 5}
33 skip_fail: false
34
35- description: Configure glusterfs.client on all controllers
36 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
37 -C 'I@glance:server' state.sls glusterfs.client
38 node_name: {{ HOSTNAME_CFG01 }}
39 retry: {count: 3, delay: 5}
40 skip_fail: false
41
42- description: Update fernet tokens for keystone server
43 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
44 -C 'I@keystone:server' state.sls keystone.server -b 1
45 node_name: {{ HOSTNAME_CFG01 }}
46 retry: {count: 3, delay: 5}
47 skip_fail: false
48
49- description: Check glance image-list
50 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
51 -C 'I@keystone:server' cmd.run '. /root/keystonerc; glance image-list'
52 node_name: {{ HOSTNAME_CFG01 }}
53 retry: {count: 3, delay: 5}
54 skip_fail: false
55
56
57- description: Install nova on all controllers
58 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
59 -C 'I@nova:controller' state.sls nova -b 1
60 node_name: {{ HOSTNAME_CFG01 }}
61 retry: {count: 3, delay: 5}
62 skip_fail: false
63
64- description: Check nova service-list
65 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
66 -C 'I@keystone:server' cmd.run '. /root/keystonerc; nova service-list'
67 node_name: {{ HOSTNAME_CFG01 }}
68 retry: {count: 3, delay: 5}
69 skip_fail: false
70
71
72- description: Install cinder
73 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
74 -C 'I@cinder:controller' state.sls cinder -b 1
75 node_name: {{ HOSTNAME_CFG01 }}
76 retry: {count: 3, delay: 5}
77 skip_fail: false
78
79- description: Check cinder list
80 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
81 -C 'I@keystone:server' cmd.run '. /root/keystonerc; cinder list'
82 node_name: {{ HOSTNAME_CFG01 }}
83 retry: {count: 3, delay: 5}
84 skip_fail: false
85
86
87- description: Install neutron service
88 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
89 -C 'I@neutron:server' state.sls neutron -b 1
90 node_name: {{ HOSTNAME_CFG01 }}
91 retry: {count: 3, delay: 5}
92 skip_fail: false
93
94- description: Check neutron agent-list
95 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
96 -C 'I@keystone:server' cmd.run '. /root/keystonerc; neutron agent-list'
97 node_name: {{ HOSTNAME_CFG01 }}
98 retry: {count: 3, delay: 5}
99 skip_fail: false
100
101
102- description: Install heat service
103 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
104 -C 'I@heat:server' state.sls heat -b 1
105 node_name: {{ HOSTNAME_CFG01 }}
106 retry: {count: 3, delay: 5}
107 skip_fail: false
108
109- description: Check heat service
110 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
111 -C 'I@keystone:server' cmd.run '. /root/keystonerc; heat resource-type-list'
112 node_name: {{ HOSTNAME_CFG01 }}
113 retry: {count: 3, delay: 5}
114 skip_fail: false
115
116
117- description: Deploy horizon dashboard
118 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
119 -C 'I@horizon:server' state.sls horizon
120 node_name: {{ HOSTNAME_CFG01 }}
121 retry: {count: 3, delay: 5}
122 skip_fail: true
123
124- description: Deploy nginx proxy
125 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
126 -C 'I@nginx:server' state.sls nginx
127 node_name: {{ HOSTNAME_CFG01 }}
128 retry: {count: 3, delay: 5}
129 skip_fail: true
130
131
132# Install compute node
133
134- description: Apply formulas for compute node
135 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply
136 node_name: {{ HOSTNAME_CFG01 }}
137 retry: {count: 3, delay: 5}
138 skip_fail: true
139
140- description: Re-apply(as in doc) formulas for compute node
141 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' state.apply
142 node_name: {{ HOSTNAME_CFG01 }}
143 retry: {count: 3, delay: 5}
144 skip_fail: true
145
146- description: Check IP on computes
147 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'cmp*' cmd.run
148 'ip a'
149 node_name: {{ HOSTNAME_CFG01 }}
150 retry: {count: 10, delay: 30}
151 skip_fail: false