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