blob: 9e8dd5e68aa3ab9048460f86e53ca7b7e52a7421 [file] [log] [blame]
Oleksii Butenko7d9671c2017-11-01 17:27:23 +02001{% from 'cookied-bm-mcp-dvr-vxlan/underlay.yaml' import HOSTNAME_CFG01 with context %}
2{% from 'cookied-bm-mcp-dvr-vxlan/underlay.yaml' import HOSTNAME_CTL01 with context %}
3{% from 'cookied-bm-mcp-dvr-vxlan/underlay.yaml' import HOSTNAME_GTW01 with context %}
Oleksii Butenko336e4412018-05-21 14:59:27 +03004{% from 'cookied-bm-mcp-dvr-vxlan/underlay.yaml' import HOSTNAME_GTW02 with context %}
Oleksii Butenko7c48def2017-10-03 12:41:05 +03005{% from 'shared-salt.yaml' import IPV4_NET_EXTERNAL_PREFIX with context %}
6{% from 'shared-salt.yaml' import IPV4_NET_TENANT_PREFIX with context %}
Dennis Dmitriev4034db02018-08-26 21:50:13 +03007
Oleksii Butenko336e4412018-05-21 14:59:27 +03008{% import 'shared-salt.yaml' as SHARED with context %}
Dennis Dmitriev4034db02018-08-26 21:50:13 +03009{% import 'shared-openstack.yaml' as SHARED_OPENSTACK with context %}
Oleksii Butenko7c48def2017-10-03 12:41:05 +030010
11# Install OpenStack control services
12
Dennis Dmitriev4034db02018-08-26 21:50:13 +030013{{ SHARED_OPENSTACK.MACRO_INSTALL_KEYSTONE(USE_ORCHESTRATE=false) }}
Oleksii Butenko7c48def2017-10-03 12:41:05 +030014
Dennis Dmitriev4034db02018-08-26 21:50:13 +030015{{ SHARED_OPENSTACK.MACRO_INSTALL_GLANCE() }}
Oleksii Butenko7c48def2017-10-03 12:41:05 +030016
Dennis Dmitriev4034db02018-08-26 21:50:13 +030017{{ SHARED_OPENSTACK.MACRO_INSTALL_NOVA() }}
Oleksii Butenko7c48def2017-10-03 12:41:05 +030018
Oleksii Butenko20947f22018-08-29 15:48:21 +030019{{ SHARED_OPENSTACK.MACRO_INSTALL_CINDER(INSTALL_VOLUME=false) }}
Oleksii Butenko7c48def2017-10-03 12:41:05 +030020
Oleksii Butenko20947f22018-08-29 15:48:21 +030021- description: Install cinder volume
22 cmd: salt --hard-crash --state-output=mixed --state-verbose=False
23 -C 'I@cinder:volume' state.sls cinder
24 node_name: {{ HOSTNAME_CFG01 }}
25 retry: {count: 2, delay: 5}
26 skip_fail: false
27
28{{ SHARED_OPENSTACK.MACRO_INSTALL_NEUTRON(INSTALL_GATEWAY=true) }}
Oleksii Butenko7c48def2017-10-03 12:41:05 +030029
Dennis Dmitriev4034db02018-08-26 21:50:13 +030030{{ SHARED_OPENSTACK.MACRO_INSTALL_HEAT() }}
Oleksii Butenko7c48def2017-10-03 12:41:05 +030031
Oleksii Butenko20947f22018-08-29 15:48:21 +030032{{ SHARED_OPENSTACK.MACRO_INSTALL_HORIZON() }}
Oleksii Butenko7c48def2017-10-03 12:41:05 +030033
Oleksii Butenko20947f22018-08-29 15:48:21 +030034{{ SHARED_OPENSTACK.MACRO_INSTALL_COMPUTE() }}
Oleksii Butenko7c48def2017-10-03 12:41:05 +030035
Tatyanka Leontovichcc4568c2018-09-26 10:47:16 +000036{{ SHARED.INSTALL_DOCKER_ON_GTW() }}
37
38- description: Create net04_external
39 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
40 '. /root/keystonercv3; neutron net-create net04_ext --router:external True --provider:physical_network physnet1 --provider:network_type flat'
41 node_name: {{ HOSTNAME_CFG01 }}
42 retry: {count: 1, delay: 30}
43 skip_fail: false
44
45- description: Create subnet_external
46 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
47 '. /root/keystonercv3; neutron subnet-create net04_ext 172.17.42.0/26 --name net04_ext__subnet --disable-dhcp --allocation-pool start=172.17.42.10,end=172.17.42.60 --gateway 172.17.42.1'
48 node_name: {{ HOSTNAME_CFG01 }}
49 retry: {count: 1, delay: 30}
50 skip_fail: false
51
52- description: Create net04
53 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
54 '. /root/keystonercv3; neutron net-create net04'
55 node_name: {{ HOSTNAME_CFG01 }}
56 retry: {count: 1, delay: 30}
57 skip_fail: false
58
59- description: Create subnet_net04
60 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
61 '. /root/keystonercv3; neutron subnet-create net04 192.168.0.0/24 --name net04__subnet --allocation-pool start=192.168.0.120,end=192.168.0.240'
62 node_name: {{ HOSTNAME_CFG01 }}
63 retry: {count: 1, delay: 30}
64 skip_fail: false
65
66- description: Create router
67 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
68 '. /root/keystonercv3; neutron router-create net04_router01'
69 node_name: {{ HOSTNAME_CFG01 }}
70 retry: {count: 1, delay: 30}
71 skip_fail: false
72
73- description: Set geteway
74 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
75 '. /root/keystonercv3; neutron router-gateway-set net04_router01 net04_ext'
76 node_name: {{ HOSTNAME_CFG01 }}
77 retry: {count: 1, delay: 30}
78 skip_fail: false
79
80- description: Add interface
81 cmd: salt --hard-crash --state-output=mixed --state-verbose=False 'ctl01*' cmd.run
82 '. /root/keystonercv3; neutron router-interface-add net04_router01 net04__subnet'
83 node_name: {{ HOSTNAME_CFG01 }}
84 retry: {count: 1, delay: 30}
85 skip_fail: false