blob: 6e30198c9262fa0efb6809151f4330c111a7e36c [file] [log] [blame]
Oleksii Butenkoba680de2018-08-23 14:15:19 +03001{% from 'cookied-mcp-pike-dvr-ceph/underlay.yaml' import HOSTNAME_CFG01 with context %}
2{% from 'cookied-mcp-pike-dvr-ceph/underlay.yaml' import HOSTNAME_CTL01 with context %}
3{% from 'cookied-mcp-pike-dvr-ceph/underlay.yaml' import HOSTNAME_CTL02 with context %}
4{% from 'cookied-mcp-pike-dvr-ceph/underlay.yaml' import HOSTNAME_CTL03 with context %}
5{% from 'cookied-mcp-pike-dvr-ceph/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-salt.yaml' as SHARED with context %}
Oleksii Butenkof5c86102018-09-10 13:29:53 +030010{% import 'shared-openstack.yaml' as SHARED_OPENSTACK with context %}
Oleksii Butenkoba680de2018-08-23 14:15:19 +030011
Oleksii Butenko7c2c55b2018-09-20 15:22:13 +030012{% import 'shared-ceph.yaml' as SHARED_CEPH with context %}
13
14{{ SHARED_CEPH.MACRO_INSTALL_CEPH_MONS() }}
15
16{{ SHARED_CEPH.MACRO_INSTALL_CEPH_MGR() }}
17
18{{ SHARED_CEPH.MACRO_INSTALL_CEPH_OSD_AND_RADOSGW() }}
19
20{{ SHARED_CEPH.CONNECT_CEPH_TO_SERVICES() }}
21
sgudz62df2fc2018-10-09 12:26:19 +030022{{ SHARED_OPENSTACK.MACRO_INSTALL_KEYSTONE() }}
Oleksii Butenkoba680de2018-08-23 14:15:19 +030023
Oleksii Butenkof5c86102018-09-10 13:29:53 +030024{{ SHARED_OPENSTACK.MACRO_INSTALL_GLANCE() }}
Oleksii Butenkoba680de2018-08-23 14:15:19 +030025
Oleksii Butenkof5c86102018-09-10 13:29:53 +030026{{ SHARED_OPENSTACK.MACRO_INSTALL_NOVA() }}
Oleksii Butenkoba680de2018-08-23 14:15:19 +030027
Oleksii Butenkof5c86102018-09-10 13:29:53 +030028{{ SHARED_OPENSTACK.MACRO_INSTALL_CINDER() }}
Oleksii Butenkoba680de2018-08-23 14:15:19 +030029
Oleksii Butenkof5c86102018-09-10 13:29:53 +030030{{ SHARED_OPENSTACK.MACRO_INSTALL_NEUTRON() }}
Oleksii Butenkoba680de2018-08-23 14:15:19 +030031
Oleksii Butenkof5c86102018-09-10 13:29:53 +030032{{ SHARED_OPENSTACK.MACRO_INSTALL_HEAT() }}
Oleksii Butenkoba680de2018-08-23 14:15:19 +030033
Oleksii Butenkof5c86102018-09-10 13:29:53 +030034{{ SHARED_OPENSTACK.MACRO_INSTALL_HORIZON() }}
Oleksii Butenkoba680de2018-08-23 14:15:19 +030035
Oleksii Butenkof5c86102018-09-10 13:29:53 +030036{{ SHARED_OPENSTACK.MACRO_INSTALL_COMPUTE() }}
Oleksii Butenko81d8a7f2018-09-26 16:09:27 +030037
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 {{ 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'
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 {{ IPV4_NET_TENANT_PREFIX }}.0/24 --name net04__subnet --allocation-pool start={{ IPV4_NET_TENANT_PREFIX }}.120,end={{ IPV4_NET_TENANT_PREFIX }}.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
86
87- description: sync time
88 cmd: salt --hard-crash --state-output=mixed --state-verbose=False '*' cmd.run
89 'service ntp stop; ntpd -gq; service ntp start'
90 node_name: {{ HOSTNAME_CFG01 }}
91 retry: {count: 1, delay: 30}
92 skip_fail: false
93
94{{ SHARED.INSTALL_DOCKER_ON_GTW() }}