blob: 9f8906016bef3af94053b15f314b20fe546499d0 [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') %}
11
12{% import 'shared-salt.yaml' as SHARED with context %}
13{% import 'shared-openstack.yaml' as SHARED_OPENSTACK with context %}
14
15# Install OpenStack control services
16
Oleksii Butenko0d682792018-09-11 18:48:05 +030017{{ SHARED_OPENSTACK.MACRO_INSTALL_KEYSTONE(USE_ORCHESTRATE=true) }}
Oleksii Butenko87d00c02018-09-05 19:11:17 +030018
19{{ SHARED_OPENSTACK.MACRO_INSTALL_GLANCE() }}
20
21{{ SHARED_OPENSTACK.MACRO_INSTALL_NOVA() }}
22
23{{ SHARED_OPENSTACK.MACRO_INSTALL_CINDER() }}
24
25{{ SHARED_OPENSTACK.MACRO_INSTALL_NEUTRON() }}
26
Oleksii Butenko87d00c02018-09-05 19:11:17 +030027{{ SHARED_OPENSTACK.MACRO_INSTALL_HEAT() }}
28
Oleksii Butenko0d682792018-09-11 18:48:05 +030029{{ SHARED_OPENSTACK.MACRO_INSTALL_HORIZON() }}
Oleksii Butenko87d00c02018-09-05 19:11:17 +030030
Oleksii Butenko0d682792018-09-11 18:48:05 +030031{{ SHARED_OPENSTACK.MACRO_INSTALL_COMPUTE() }}
Oleksii Butenko87d00c02018-09-05 19:11:17 +030032
33- description: Create net04_external
34 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
35 '. /root/keystonercv3; neutron net-create net04_ext --router:external True --provider:physical_network physnet1 --provider:network_type flat'
36 node_name: {{ HOSTNAME_CFG01 }}
37 retry: {count: 1, delay: 30}
38 skip_fail: false
39
40- description: Create subnet_external
41 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
42 '. /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'
43 node_name: {{ HOSTNAME_CFG01 }}
44 retry: {count: 1, delay: 30}
45 skip_fail: false
46
47- description: Create net04
48 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
49 '. /root/keystonercv3; neutron net-create net04'
50 node_name: {{ HOSTNAME_CFG01 }}
51 retry: {count: 1, delay: 30}
52 skip_fail: false
53
54- description: Create subnet_net04
55 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
56 '. /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'
57 node_name: {{ HOSTNAME_CFG01 }}
58 retry: {count: 1, delay: 30}
59 skip_fail: false
60
61- description: Create router
62 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
63 '. /root/keystonercv3; neutron router-create net04_router01'
64 node_name: {{ HOSTNAME_CFG01 }}
65 retry: {count: 1, delay: 30}
66 skip_fail: false
67
68- description: Set geteway
69 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
70 '. /root/keystonercv3; neutron router-gateway-set net04_router01 net04_ext'
71 node_name: {{ HOSTNAME_CFG01 }}
72 retry: {count: 1, delay: 30}
73 skip_fail: false
74
75- description: Add interface
76 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
77 '. /root/keystonercv3; neutron router-interface-add net04_router01 net04__subnet'
78 node_name: {{ HOSTNAME_CFG01 }}
79 retry: {count: 1, delay: 30}
80 skip_fail: false
81
82- description: sync time
83 cmd: salt --hard-crash --state-output=mixed --state-verbose=False '*' cmd.run
84 'service ntp stop; ntpd -gq; service ntp start'
85 node_name: {{ HOSTNAME_CFG01 }}
86 retry: {count: 1, delay: 30}
87 skip_fail: false
88
89{{ SHARED.INSTALL_DOCKER_ON_GTW() }}