Oleksii Butenko | ba680de | 2018-08-23 14:15:19 +0300 | [diff] [blame] | 1 | {% 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 Butenko | f5c8610 | 2018-09-10 13:29:53 +0300 | [diff] [blame] | 10 | {% import 'shared-openstack.yaml' as SHARED_OPENSTACK with context %} |
Oleksii Butenko | ba680de | 2018-08-23 14:15:19 +0300 | [diff] [blame] | 11 | |
Oleksii Butenko | 7c2c55b | 2018-09-20 15:22:13 +0300 | [diff] [blame] | 12 | {% 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 | |
sgudz | 62df2fc | 2018-10-09 12:26:19 +0300 | [diff] [blame] | 22 | {{ SHARED_OPENSTACK.MACRO_INSTALL_KEYSTONE() }} |
Oleksii Butenko | ba680de | 2018-08-23 14:15:19 +0300 | [diff] [blame] | 23 | |
Oleksii Butenko | f5c8610 | 2018-09-10 13:29:53 +0300 | [diff] [blame] | 24 | {{ SHARED_OPENSTACK.MACRO_INSTALL_GLANCE() }} |
Oleksii Butenko | ba680de | 2018-08-23 14:15:19 +0300 | [diff] [blame] | 25 | |
Oleksii Butenko | f5c8610 | 2018-09-10 13:29:53 +0300 | [diff] [blame] | 26 | {{ SHARED_OPENSTACK.MACRO_INSTALL_NOVA() }} |
Oleksii Butenko | ba680de | 2018-08-23 14:15:19 +0300 | [diff] [blame] | 27 | |
Oleksii Butenko | f5c8610 | 2018-09-10 13:29:53 +0300 | [diff] [blame] | 28 | {{ SHARED_OPENSTACK.MACRO_INSTALL_CINDER() }} |
Oleksii Butenko | ba680de | 2018-08-23 14:15:19 +0300 | [diff] [blame] | 29 | |
Oleksii Butenko | f5c8610 | 2018-09-10 13:29:53 +0300 | [diff] [blame] | 30 | {{ SHARED_OPENSTACK.MACRO_INSTALL_NEUTRON() }} |
Oleksii Butenko | ba680de | 2018-08-23 14:15:19 +0300 | [diff] [blame] | 31 | |
Oleksii Butenko | f5c8610 | 2018-09-10 13:29:53 +0300 | [diff] [blame] | 32 | {{ SHARED_OPENSTACK.MACRO_INSTALL_HEAT() }} |
Oleksii Butenko | ba680de | 2018-08-23 14:15:19 +0300 | [diff] [blame] | 33 | |
Oleksii Butenko | f5c8610 | 2018-09-10 13:29:53 +0300 | [diff] [blame] | 34 | {{ SHARED_OPENSTACK.MACRO_INSTALL_HORIZON() }} |
Oleksii Butenko | ba680de | 2018-08-23 14:15:19 +0300 | [diff] [blame] | 35 | |
Oleksii Butenko | f5c8610 | 2018-09-10 13:29:53 +0300 | [diff] [blame] | 36 | {{ SHARED_OPENSTACK.MACRO_INSTALL_COMPUTE() }} |
Oleksii Butenko | 81d8a7f | 2018-09-26 16:09:27 +0300 | [diff] [blame] | 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 {{ 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() }} |