blob: 0afba6f5e8f862bd1a6907d2b4bb4fa577e756f4 [file] [log] [blame]
Pavel Glazovca1de372018-08-21 15:38:00 +04001{% from 'cookied-mcp-newton-ovs/underlay.yaml' import HOSTNAME_CFG01 with context %}
2{% from 'cookied-mcp-newton-ovs/underlay.yaml' import HOSTNAME_CTL01 with context %}
3{% from 'cookied-mcp-newton-ovs/underlay.yaml' import HOSTNAME_CTL02 with context %}
4{% from 'cookied-mcp-newton-ovs/underlay.yaml' import HOSTNAME_CTL03 with context %}
5{% from 'cookied-mcp-newton-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
9{% 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 %}
Pavel Glazovca1de372018-08-21 15:38:00 +040011
12# 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() }}
Pavel Glazovca1de372018-08-21 15:38:00 +040021
22{{ SHARED_OPENSTACK.MACRO_INSTALL_GLANCE() }}
23
24{{ SHARED_OPENSTACK.MACRO_INSTALL_NOVA() }}
25
26{{ SHARED_OPENSTACK.MACRO_INSTALL_CINDER() }}
27
28# {{ SHARED_OPENSTACK.MACRO_INSTALL_NEUTRON() }}
29
30- description: Install neutron service on primary node
31 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
32 -C "I@neutron:server and *01*" state.sls neutron.server
33 node_name: {{ HOSTNAME_CFG01 }}
34 retry: {count: 1, delay: 5}
35 skip_fail: false
36
37- description: Install neutron service on other nodes
38 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
39 -C "I@neutron:server" state.sls neutron.server
40 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
51# 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
61- 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
69- 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 }}
73 retry: {count: 3, delay: 20}
74 skip_fail: false
75
76{{ SHARED_OPENSTACK.MACRO_INSTALL_HEAT() }}
77
Pavel Glazov9bf865d2018-12-13 17:22:01 +040078{{ SHARED_OPENSTACK.MACRO_INSTALL_DESIGNATE(INSTALL_POWERDNS=true) }}
Pavel Glazovca1de372018-08-21 15:38:00 +040079
80{{ SHARED_OPENSTACK.MACRO_INSTALL_HORIZON() }}
81
Pavel Glazovf3c59072018-12-13 14:27:01 +040082{{ SHARED_OPENSTACK.MACRO_INSTALL_COMPUTE() }}