blob: 21e59d8da23aa2344de499839869d52fd14c2e26 [file] [log] [blame]
Oleksii Butenko87d00c02018-09-05 19:11:17 +03001{% from 'cookied-mcp-queens-ovs/underlay.yaml' import HOSTNAME_CFG01 with context %}
2{% from 'cookied-mcp-queens-ovs/underlay.yaml' import HOSTNAME_CTL01 with context %}
3{% from 'cookied-mcp-queens-ovs/underlay.yaml' import HOSTNAME_CTL02 with context %}
4{% from 'cookied-mcp-queens-ovs/underlay.yaml' import HOSTNAME_CTL03 with context %}
5{% from 'cookied-mcp-queens-ovs/underlay.yaml' import HOSTNAME_GTW01 with context %}
6{% from 'cookied-mcp-queens-ovs/underlay.yaml' import LAB_CONFIG_NAME with context %}
7{% from 'cookied-mcp-queens-ovs/underlay.yaml' import DOMAIN_NAME with context %}
8{% from 'shared-salt.yaml' import IPV4_NET_EXTERNAL_PREFIX with context %}
9{% from 'shared-salt.yaml' import IPV4_NET_TENANT_PREFIX with context %}
10{% set LAB_CONFIG_NAME = os_env('LAB_CONFIG_NAME') %}
Oleksii Butenkoffc09222018-09-21 12:37:16 +030011{% set OVERRIDE_POLICY = os_env('OVERRIDE_POLICY', '') %}
Oleksii Butenko87d00c02018-09-05 19:11:17 +030012
13{% import 'shared-salt.yaml' as SHARED with context %}
14{% import 'shared-openstack.yaml' as SHARED_OPENSTACK with context %}
15
16# Install OpenStack control services
17
Oleksii Butenko0d682792018-09-11 18:48:05 +030018{{ SHARED_OPENSTACK.MACRO_INSTALL_KEYSTONE(USE_ORCHESTRATE=true) }}
Oleksii Butenko87d00c02018-09-05 19:11:17 +030019
20{{ SHARED_OPENSTACK.MACRO_INSTALL_GLANCE() }}
21
22{{ SHARED_OPENSTACK.MACRO_INSTALL_NOVA() }}
23
Oleksii Butenko81d8a7f2018-09-26 16:09:27 +030024{{ SHARED_OPENSTACK.MACRO_INSTALL_CINDER(INSTALL_VOLUME=true) }}
Oleksii Butenko87d00c02018-09-05 19:11:17 +030025
26{{ SHARED_OPENSTACK.MACRO_INSTALL_NEUTRON() }}
27
Oleksii Butenko87d00c02018-09-05 19:11:17 +030028{{ SHARED_OPENSTACK.MACRO_INSTALL_HEAT() }}
29
Oleksii Butenko81d8a7f2018-09-26 16:09:27 +030030{{ SHARED_OPENSTACK.MACRO_INSTALL_DESIGNATE(INSTALL_POWERDNS=true) }}
31
Oleksii Butenko0d682792018-09-11 18:48:05 +030032{{ SHARED_OPENSTACK.MACRO_INSTALL_HORIZON() }}
Oleksii Butenko87d00c02018-09-05 19:11:17 +030033
Oleksii Butenko81d8a7f2018-09-26 16:09:27 +030034{{ SHARED_OPENSTACK.MACRO_INSTALL_COMPUTE(CELL_MAPPING=true) }}
35
36- description: Create net04_external
37 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
38 '. /root/keystonercv3; neutron net-create net04_ext --router:external True --provider:physical_network physnet1 --provider:network_type flat'
39 node_name: {{ HOSTNAME_CFG01 }}
40 retry: {count: 1, delay: 30}
41 skip_fail: false
42
43- description: Create subnet_external
44 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
45 '. /root/keystonercv3; neutron subnet-create net04_ext {{ IPV4_NET_EXTERNAL_PREFIX }}.0/24 --name net04_ext__subnet --disable-dhcp --allocation-pool start={{ IPV4_NET_EXTERNAL_PREFIX }}.150,end={{ IPV4_NET_EXTERNAL_PREFIX }}.180 --gateway {{ IPV4_NET_EXTERNAL_PREFIX }}.1'
46 node_name: {{ HOSTNAME_CFG01 }}
47 retry: {count: 1, delay: 30}
48 skip_fail: false
49
50- description: Create net04
51 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
52 '. /root/keystonercv3; neutron net-create net04'
53 node_name: {{ HOSTNAME_CFG01 }}
54 retry: {count: 1, delay: 30}
55 skip_fail: false
56
57- description: Create subnet_net04
58 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
59 '. /root/keystonercv3; neutron subnet-create net04 {{ IPV4_NET_TENANT_PREFIX }}.0/24 --name net04__subnet --allocation-pool start={{ IPV4_NET_TENANT_PREFIX }}.120,end={{ IPV4_NET_TENANT_PREFIX }}.240'
60 node_name: {{ HOSTNAME_CFG01 }}
61 retry: {count: 1, delay: 30}
62 skip_fail: false
63
64- description: Create router
65 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
66 '. /root/keystonercv3; neutron router-create net04_router01'
67 node_name: {{ HOSTNAME_CFG01 }}
68 retry: {count: 1, delay: 30}
69 skip_fail: false
70
71- description: Set geteway
72 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
73 '. /root/keystonercv3; neutron router-gateway-set net04_router01 net04_ext'
74 node_name: {{ HOSTNAME_CFG01 }}
75 retry: {count: 1, delay: 30}
76 skip_fail: false
77
78- description: Add interface
79 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
80 '. /root/keystonercv3; neutron router-interface-add net04_router01 net04__subnet'
81 node_name: {{ HOSTNAME_CFG01 }}
82 retry: {count: 1, delay: 30}
83 skip_fail: false
84
85- description: sync time
86 cmd: salt --hard-crash --state-output=mixed --state-verbose=False '*' cmd.run
87 'service ntp stop; ntpd -gq; service ntp start'
88 node_name: {{ HOSTNAME_CFG01 }}
89 retry: {count: 1, delay: 30}
90 skip_fail: false
91