Andrew Baraniuk | 6361cfc | 2019-06-04 12:58:14 +0300 | [diff] [blame] | 1 | --- |
| 2 | |
Oleksii Butenko | 9bce99c | 2019-08-29 18:02:39 +0300 | [diff] [blame] | 3 | heat_template_version: queens |
Andrew Baraniuk | 6361cfc | 2019-06-04 12:58:14 +0300 | [diff] [blame] | 4 | |
| 5 | description: MCP environment for heat-bm-cicd-pike-contrail-sl |
| 6 | |
| 7 | parameters: |
| 8 | instance_domain: |
| 9 | type: string |
| 10 | default: heat-bm-cicd-pike-contrail-sl.local |
| 11 | mcp_version: |
| 12 | type: string |
| 13 | env_name: |
| 14 | type: string |
| 15 | key_pair: |
| 16 | type: string |
| 17 | cfg_flavor: |
| 18 | type: string |
| 19 | vsrx_flavor: |
| 20 | type: string |
| 21 | foundation_image: |
| 22 | type: string |
| 23 | foundation_flavor: |
| 24 | type: string |
| 25 | bm_availability_zone: |
| 26 | type: string |
| 27 | control_subnet_cidr: |
| 28 | type: string |
| 29 | default: "10.6.0.0/24" |
| 30 | tenant_subnet_cidr: |
| 31 | type: string |
| 32 | default: "10.8.0.0/24" |
| 33 | external_subnet_cidr: |
| 34 | type: string |
| 35 | default: "10.9.0.0/24" |
| 36 | management_subnet_cidr: |
| 37 | type: string |
Oleksii Butenko | 4965585 | 2019-08-01 15:40:58 +0300 | [diff] [blame] | 38 | default: "172.16.164.0/26" |
Andrew Baraniuk | 6361cfc | 2019-06-04 12:58:14 +0300 | [diff] [blame] | 39 | management_subnet_cfg01_ip: |
| 40 | type: string |
Oleksii Butenko | 4965585 | 2019-08-01 15:40:58 +0300 | [diff] [blame] | 41 | default: 172.16.164.2 |
Andrew Baraniuk | 6361cfc | 2019-06-04 12:58:14 +0300 | [diff] [blame] | 42 | management_subnet_gateway_ip: |
| 43 | type: string |
Oleksii Butenko | 4965585 | 2019-08-01 15:40:58 +0300 | [diff] [blame] | 44 | default: 172.16.164.1 |
Andrew Baraniuk | 6361cfc | 2019-06-04 12:58:14 +0300 | [diff] [blame] | 45 | management_subnet_pool_start: |
| 46 | type: string |
Oleksii Butenko | 4965585 | 2019-08-01 15:40:58 +0300 | [diff] [blame] | 47 | default: 172.16.164.3 |
Andrew Baraniuk | 6361cfc | 2019-06-04 12:58:14 +0300 | [diff] [blame] | 48 | management_subnet_pool_end: |
| 49 | type: string |
Oleksii Butenko | 4965585 | 2019-08-01 15:40:58 +0300 | [diff] [blame] | 50 | default: 172.16.164.61 |
Andrew Baraniuk | 6361cfc | 2019-06-04 12:58:14 +0300 | [diff] [blame] | 51 | salt_master_control_ip: |
| 52 | type: string |
| 53 | default: 10.6.0.15 |
Hanna Arhipova | eace733 | 2021-02-11 15:15:29 +0200 | [diff] [blame] | 54 | deploy_empty_node: |
| 55 | type: boolean |
| 56 | default: False |
Andrew Baraniuk | 6361cfc | 2019-06-04 12:58:14 +0300 | [diff] [blame] | 57 | |
| 58 | resources: |
| 59 | subnets: |
| 60 | type: MCP::Subnets |
| 61 | properties: |
| 62 | stack_name: { get_param: "OS::stack_name" } |
| 63 | env_name: { get_param: env_name } |
Oleksii Butenko | 4965585 | 2019-08-01 15:40:58 +0300 | [diff] [blame] | 64 | management_net: 'system-phys-2401' |
| 65 | control_net: 'system-phys-2404' |
| 66 | tenant_net: 'system-phys-2406' |
| 67 | external_net: 'system-phys-2403' |
Andrew Baraniuk | 6361cfc | 2019-06-04 12:58:14 +0300 | [diff] [blame] | 68 | control_subnet_cidr: { get_param: control_subnet_cidr } |
| 69 | tenant_subnet_cidr: { get_param: tenant_subnet_cidr } |
| 70 | external_subnet_cidr: { get_param: external_subnet_cidr } |
| 71 | management_subnet_cidr: { get_param: management_subnet_cidr } |
| 72 | management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip } |
| 73 | management_subnet_pool_start: { get_param: management_subnet_pool_start } |
| 74 | management_subnet_pool_end: { get_param: management_subnet_pool_end } |
| 75 | |
| 76 | #flavors: |
| 77 | # type: MCP::Flavors |
| 78 | |
| 79 | cfg01_node: |
| 80 | type: MCP::MasterNode |
| 81 | depends_on: [subnets] |
| 82 | properties: |
| 83 | env_name: { get_param: env_name } |
| 84 | mcp_version: { get_param: mcp_version } |
| 85 | cfg01_flavor: { get_param: cfg_flavor } |
| 86 | availability_zone: { get_param: bm_availability_zone } |
Oleksii Butenko | 4965585 | 2019-08-01 15:40:58 +0300 | [diff] [blame] | 87 | management_net: 'system-phys-2401' |
| 88 | control_net: 'system-phys-2404' |
| 89 | tenant_net: 'system-phys-2406' |
| 90 | external_net: 'system-phys-2403' |
Andrew Baraniuk | 6361cfc | 2019-06-04 12:58:14 +0300 | [diff] [blame] | 91 | salt_master_control_ip: { get_param: salt_master_control_ip } |
| 92 | management_subnet_cfg01_ip: { get_param: management_subnet_cfg01_ip } |
| 93 | tenant_net_static_ip: |
| 94 | list_join: |
| 95 | - '.' |
| 96 | - [ { get_attr: [subnets, tenant_net_prefix] }, '15' ] |
| 97 | external_net_static_ip: |
| 98 | list_join: |
| 99 | - '.' |
| 100 | - [ { get_attr: [subnets, external_net_prefix] }, '15' ] |
| 101 | instance_name: cfg01 |
| 102 | instance_domain: {get_param: instance_domain} |
| 103 | |
| 104 | foundation_node: |
| 105 | type: MCP::FoundationNode |
| 106 | depends_on: [subnets] |
| 107 | properties: |
| 108 | env_name: { get_param: env_name } |
| 109 | mcp_version: { get_param: mcp_version } |
| 110 | instance_domain: {get_param: instance_domain} |
| 111 | instance_name: foundation |
| 112 | availability_zone: { get_param: bm_availability_zone } |
Oleksii Butenko | 4965585 | 2019-08-01 15:40:58 +0300 | [diff] [blame] | 113 | management_net: 'system-phys-2401' |
| 114 | control_net: 'system-phys-2404' |
| 115 | tenant_net: 'system-phys-2406' |
| 116 | external_net: 'system-phys-2403' |
Andrew Baraniuk | 6361cfc | 2019-06-04 12:58:14 +0300 | [diff] [blame] | 117 | management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip } |
| 118 | instance_image: { get_param: foundation_image } |
| 119 | instance_flavor: {get_param: foundation_flavor} |
| 120 | underlay_userdata: { get_file: ./underlay--user-data-foundation.yaml } |
| 121 | management_net_static_ip: |
| 122 | list_join: |
| 123 | - '.' |
Oleksii Butenko | 4965585 | 2019-08-01 15:40:58 +0300 | [diff] [blame] | 124 | - [ { get_attr: [subnets, management_net_prefix] }, '62' ] |
Andrew Baraniuk | 6361cfc | 2019-06-04 12:58:14 +0300 | [diff] [blame] | 125 | control_net_static_ip: |
| 126 | list_join: |
| 127 | - '.' |
| 128 | - [ { get_attr: [subnets, control_net_prefix] }, '5' ] |
| 129 | tenant_net_static_ip: |
| 130 | list_join: |
| 131 | - '.' |
| 132 | - [ { get_attr: [subnets, tenant_net_prefix] }, '5' ] |
| 133 | external_net_static_ip: |
| 134 | list_join: |
| 135 | - '.' |
| 136 | - [ { get_attr: [subnets, external_net_prefix] }, '5' ] |
| 137 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 138 | |
| 139 | vsrx_node: |
| 140 | type: MCP::VsrxNode |
| 141 | depends_on: [cfg01_node] |
| 142 | properties: |
| 143 | env_name: { get_param: env_name } |
| 144 | mcp_version: { get_param: mcp_version } |
| 145 | instance_domain: {get_param: instance_domain} |
| 146 | instance_name: vsrx |
| 147 | instance_flavor: {get_param: vsrx_flavor} |
| 148 | availability_zone: { get_param: bm_availability_zone } |
Oleksii Butenko | 4965585 | 2019-08-01 15:40:58 +0300 | [diff] [blame] | 149 | management_net: 'system-phys-2401' |
| 150 | control_net: 'system-phys-2404' |
| 151 | tenant_net: 'system-phys-2406' |
| 152 | external_net: 'system-phys-2403' |
Andrew Baraniuk | 6361cfc | 2019-06-04 12:58:14 +0300 | [diff] [blame] | 153 | instance_image: system_vsrx-12.1X46-D20.5 |
| 154 | control_net_static_ip: |
| 155 | list_join: |
| 156 | - '.' |
| 157 | - [ { get_attr: [subnets, control_net_prefix] }, '220' ] |
| 158 | tenant_net_static_ip: |
| 159 | list_join: |
| 160 | - '.' |
| 161 | - [ { get_attr: [subnets, tenant_net_prefix] }, '220' ] |
| 162 | external_net_static_ip: |
| 163 | list_join: |
| 164 | - '.' |
| 165 | - [ { get_attr: [subnets, external_net_prefix] }, '220' ] |
| 166 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 167 | |
| 168 | outputs: |
| 169 | foundation_public_ip: |
| 170 | description: foundation node IP address (management) |
| 171 | value: |
| 172 | get_attr: |
| 173 | - foundation_node |
| 174 | - instance_address |
| 175 | ... |