blob: d48236b122661a35e9d5e2050defb7f743604902 [file] [log] [blame]
ibumarskov76aa5c72018-06-13 10:15:37 +04001{% from 'cookied-mcp-mitaka-ovs/underlay.yaml' import HOSTNAME_CFG01 with context %}
2{% from 'cookied-mcp-mitaka-ovs/underlay.yaml' import HOSTNAME_CTL01 with context %}
3{% from 'cookied-mcp-mitaka-ovs/underlay.yaml' import HOSTNAME_CTL02 with context %}
4{% from 'cookied-mcp-mitaka-ovs/underlay.yaml' import HOSTNAME_CTL03 with context %}
5{% from 'cookied-mcp-mitaka-ovs/underlay.yaml' import HOSTNAME_GTW01 with context %}
6{% from 'shared-salt.yaml' import IPV4_NET_EXTERNAL_PREFIX with context %}
7{% from 'shared-salt.yaml' import IPV4_NET_TENANT_PREFIX with context %}
8
ibumarskov942417e2018-08-23 22:05:59 +04009{% import 'shared-openstack.yaml' as SHARED_OPENSTACK with context %}
Pavel Glazov78e6c592018-10-24 12:20:12 +040010{% import 'shared-salt.yaml' as SHARED with context %}
ibumarskov942417e2018-08-23 22:05:59 +040011
ibumarskov7bdc7ed2018-08-24 12:06:38 +040012# Deploy nginx before openstack services (PROD-22740)
13- description: Deploy nginx proxy
14 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
15 -C 'I@nginx:server' state.sls nginx
16 node_name: {{ HOSTNAME_CFG01 }}
17 retry: {count: 1, delay: 5}
18 skip_fail: true
19
sgudz62df2fc2018-10-09 12:26:19 +030020{{ SHARED_OPENSTACK.MACRO_INSTALL_KEYSTONE() }}
ibumarskov76aa5c72018-06-13 10:15:37 +040021
ibumarskov7e886672018-08-23 13:52:13 +040022{{ SHARED_OPENSTACK.MACRO_INSTALL_GLANCE() }}
23
24{{ SHARED_OPENSTACK.MACRO_INSTALL_NOVA() }}
25
26{{ SHARED_OPENSTACK.MACRO_INSTALL_CINDER() }}
27
ibumarskov7bdc7ed2018-08-24 12:06:38 +040028# SHARED_OPENSTACK.MACRO_INSTALL_NEUTRON
ibumarskov7e886672018-08-23 13:52:13 +040029
30- description: Install neutron service on primary node
ibumarskov76aa5c72018-06-13 10:15:37 +040031 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
ibumarskov7e886672018-08-23 13:52:13 +040032 -C "I@neutron:server and *01*" state.sls neutron.server
ibumarskove23c10e2018-08-20 15:47:58 +040033 node_name: {{ HOSTNAME_CFG01 }}
34 retry: {count: 1, delay: 5}
35 skip_fail: false
36
ibumarskov7e886672018-08-23 13:52:13 +040037- description: Install neutron service on other nodes
ibumarskove23c10e2018-08-20 15:47:58 +040038 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
ibumarskov7e886672018-08-23 13:52:13 +040039 -C "I@neutron:server" state.sls neutron.server
ibumarskov76aa5c72018-06-13 10:15:37 +040040 node_name: {{ HOSTNAME_CFG01 }}
41 retry: {count: 1, delay: 5}
42 skip_fail: false
43
44- description: Install neutron on gtw node
45 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
46 -C 'I@neutron:gateway' state.sls neutron
47 node_name: {{ HOSTNAME_CFG01 }}
48 retry: {count: 1, delay: 5}
49 skip_fail: false
50
ibumarskovc075df82018-07-30 13:23:07 +040051# WORKAROUND PROD-20976
52- description: WORKAROUND PROD-20976
53 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
54 -C 'I@neutron:server or I@neutron:gateway' cmd.run "sed -i
55 's/#min_l3_agents_per_router = 2/min_l3_agents_per_router = 1/'
56 /etc/neutron/neutron.conf"
57 node_name: {{ HOSTNAME_CFG01 }}
58 retry: {count: 1, delay: 5}
59 skip_fail: false
60
ibumarskovf1086952018-08-23 16:32:59 +040061- description: Restart Neutron services
62 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
63 -C 'I@neutron:server or I@neutron:gateway' cmd.run 'systemctl restart
64 neutron*'
65 node_name: {{ HOSTNAME_CFG01 }}
66 retry: {count: 1, delay: 5}
67 skip_fail: false
68
ibumarskov76aa5c72018-06-13 10:15:37 +040069- description: Check neutron agent-list
70 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
71 -C 'I@keystone:server' cmd.run '. /root/keystonerc; neutron agent-list'
72 node_name: {{ HOSTNAME_CFG01 }}
ibumarskov7bdc7ed2018-08-24 12:06:38 +040073 retry: {count: 3, delay: 20}
ibumarskov76aa5c72018-06-13 10:15:37 +040074 skip_fail: false
75
ibumarskov7e886672018-08-23 13:52:13 +040076{{ SHARED_OPENSTACK.MACRO_INSTALL_HEAT() }}
77
Pavel Glazov9bf865d2018-12-13 17:22:01 +040078{{ SHARED_OPENSTACK.MACRO_INSTALL_DESIGNATE(INSTALL_POWERDNS=true) }}
ibumarskov76aa5c72018-06-13 10:15:37 +040079
ibumarskov7e886672018-08-23 13:52:13 +040080{{ SHARED_OPENSTACK.MACRO_INSTALL_HORIZON() }}
ibumarskov76aa5c72018-06-13 10:15:37 +040081
Pavel Glazovc3780ef2018-12-13 17:44:30 +040082{{ SHARED_OPENSTACK.MACRO_INSTALL_COMPUTE(CELL_MAPPING=true) }}