sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 1 | --- |
| 2 | |
| 3 | heat_template_version: queens |
| 4 | |
| 5 | description: MCP environment for heat-cicd-k8s-genie |
| 6 | |
| 7 | parameters: |
| 8 | instance_domain: |
| 9 | type: string |
| 10 | default: heat-cicd-k8s-genie.local |
| 11 | mcp_version: |
| 12 | type: string |
| 13 | env_name: |
| 14 | type: string |
| 15 | control_subnet_cidr: |
| 16 | type: string |
sgudz | c9f50d1 | 2019-05-31 14:25:34 +0300 | [diff] [blame] | 17 | default: "10.6.0.0/24" |
| 18 | tenant_subnet_cidr: |
| 19 | type: string |
| 20 | default: "10.8.0.0/24" |
| 21 | external_subnet_cidr: |
| 22 | type: string |
| 23 | default: "192.168.200.0/24" |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 24 | management_subnet_cidr: |
| 25 | type: string |
sgudz | c9f50d1 | 2019-05-31 14:25:34 +0300 | [diff] [blame] | 26 | default: "10.7.0.0/24" |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 27 | management_subnet_cfg01_ip: |
| 28 | type: string |
sgudz | c9f50d1 | 2019-05-31 14:25:34 +0300 | [diff] [blame] | 29 | default: 10.7.0.15 |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 30 | management_subnet_gateway_ip: |
| 31 | type: string |
sgudz | c9f50d1 | 2019-05-31 14:25:34 +0300 | [diff] [blame] | 32 | default: 10.7.0.1 |
| 33 | management_subnet_pool_start: |
| 34 | type: string |
| 35 | default: 10.7.0.20 |
| 36 | management_subnet_pool_end: |
| 37 | type: string |
| 38 | default: 10.7.0.90 |
| 39 | salt_master_control_ip: |
| 40 | type: string |
| 41 | default: 10.6.0.15 |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 42 | |
| 43 | key_pair: |
| 44 | type: string |
| 45 | |
| 46 | ctl_flavor: |
| 47 | type: string |
| 48 | cfg_flavor: |
| 49 | type: string |
| 50 | cid_flavor: |
| 51 | type: string |
| 52 | kvm_fake_flavor: |
| 53 | type: string |
| 54 | mon_flavor: |
| 55 | type: string |
| 56 | log_flavor: |
| 57 | type: string |
| 58 | mtr_flavor: |
| 59 | type: string |
| 60 | cmp_flavor: |
| 61 | type: string |
| 62 | foundation_flavor: |
| 63 | type: string |
| 64 | |
| 65 | net_public: |
| 66 | type: string |
| 67 | |
Dennis Dmitriev | cba8612 | 2019-05-24 13:41:46 +0300 | [diff] [blame] | 68 | foundation_image: |
| 69 | type: string |
| 70 | |
Dennis Dmitriev | 1e0a06f | 2019-05-31 13:24:13 +0300 | [diff] [blame] | 71 | bm_availability_zone: |
| 72 | type: string |
| 73 | vm_availability_zone: |
| 74 | type: string |
| 75 | |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 76 | resources: |
| 77 | networks: |
| 78 | type: MCP::Networks |
| 79 | properties: |
| 80 | stack_name: { get_param: "OS::stack_name" } |
| 81 | env_name: { get_param: env_name } |
| 82 | |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 83 | subnets: |
| 84 | depends_on: [networks] |
| 85 | type: MCP::Subnets |
| 86 | properties: |
| 87 | stack_name: { get_param: "OS::stack_name" } |
| 88 | env_name: { get_param: env_name } |
| 89 | management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] } |
| 90 | control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] } |
| 91 | tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] } |
| 92 | external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] } |
sgudz | c9f50d1 | 2019-05-31 14:25:34 +0300 | [diff] [blame] | 93 | control_subnet_cidr: { get_param: control_subnet_cidr } |
| 94 | tenant_subnet_cidr: { get_param: tenant_subnet_cidr } |
| 95 | external_subnet_cidr: { get_param: external_subnet_cidr } |
| 96 | management_subnet_cidr: { get_param: management_subnet_cidr } |
| 97 | management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip } |
| 98 | management_subnet_pool_start: { get_param: management_subnet_pool_start } |
| 99 | management_subnet_pool_end: { get_param: management_subnet_pool_end } |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 100 | |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 101 | #flavors: |
| 102 | # type: MCP::Flavors |
| 103 | |
| 104 | cfg01_node: |
| 105 | type: MCP::MasterNode |
sgudz | 22628a3 | 2019-06-12 11:34:04 +0300 | [diff] [blame] | 106 | depends_on: [subnets] |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 107 | properties: |
| 108 | env_name: { get_param: env_name } |
| 109 | mcp_version: { get_param: mcp_version } |
| 110 | cfg01_flavor: { get_param: cfg_flavor } |
Dennis Dmitriev | 1e0a06f | 2019-05-31 13:24:13 +0300 | [diff] [blame] | 111 | availability_zone: { get_param: bm_availability_zone } |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 112 | management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] } |
| 113 | control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] } |
| 114 | tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] } |
| 115 | external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] } |
sgudz | c9f50d1 | 2019-05-31 14:25:34 +0300 | [diff] [blame] | 116 | salt_master_control_ip: { get_param: salt_master_control_ip } |
| 117 | management_subnet_cfg01_ip: { get_param: management_subnet_cfg01_ip } |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 118 | tenant_net_static_ip: |
| 119 | list_join: |
| 120 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 121 | - [ { get_attr: [subnets, tenant_net_prefix] }, '15' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 122 | external_net_static_ip: |
| 123 | list_join: |
| 124 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 125 | - [ { get_attr: [subnets, external_net_prefix] }, '15' ] |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 126 | instance_name: cfg01 |
| 127 | instance_domain: {get_param: instance_domain} |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 128 | |
| 129 | control_cluster: |
| 130 | type: MCP::MultipleInstance |
| 131 | depends_on: [cfg01_node] |
| 132 | properties: |
| 133 | env_name: { get_param: env_name } |
| 134 | mcp_version: { get_param: mcp_version } |
| 135 | instance_domain: {get_param: instance_domain} |
| 136 | instance01_name: ctl01 |
| 137 | instance02_name: ctl02 |
| 138 | instance03_name: ctl03 |
| 139 | instance01_role: [k8s_controller] |
| 140 | instance_flavor: {get_param: ctl_flavor} |
Dennis Dmitriev | 1e0a06f | 2019-05-31 13:24:13 +0300 | [diff] [blame] | 141 | availability_zone: { get_param: vm_availability_zone } |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 142 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 143 | instance01_control_net_static_ip: |
| 144 | list_join: |
| 145 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 146 | - [ { get_attr: [subnets, control_net_prefix] }, '11' ] |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 147 | instance02_control_net_static_ip: |
| 148 | list_join: |
| 149 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 150 | - [ { get_attr: [subnets, control_net_prefix] }, '12' ] |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 151 | instance03_control_net_static_ip: |
| 152 | list_join: |
| 153 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 154 | - [ { get_attr: [subnets, control_net_prefix] }, '13' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 155 | instance01_tenant_net_static_ip: |
| 156 | list_join: |
| 157 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 158 | - [ { get_attr: [subnets, tenant_net_prefix] }, '11' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 159 | instance02_tenant_net_static_ip: |
| 160 | list_join: |
| 161 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 162 | - [ { get_attr: [subnets, tenant_net_prefix] }, '12' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 163 | instance03_tenant_net_static_ip: |
| 164 | list_join: |
| 165 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 166 | - [ { get_attr: [subnets, tenant_net_prefix] }, '13' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 167 | instance01_external_net_static_ip: |
| 168 | list_join: |
| 169 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 170 | - [ { get_attr: [subnets, external_net_prefix] }, '11' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 171 | instance02_external_net_static_ip: |
| 172 | list_join: |
| 173 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 174 | - [ { get_attr: [subnets, external_net_prefix] }, '12' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 175 | instance03_external_net_static_ip: |
| 176 | list_join: |
| 177 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 178 | - [ { get_attr: [subnets, external_net_prefix] }, '13' ] |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 179 | |
| 180 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 181 | |
| 182 | fake_kvm_cluster: |
| 183 | type: MCP::MultipleInstance |
| 184 | depends_on: [control_cluster] |
| 185 | properties: |
| 186 | env_name: { get_param: env_name } |
| 187 | mcp_version: { get_param: mcp_version } |
| 188 | instance_domain: {get_param: instance_domain} |
| 189 | instance01_name: kvm01 |
| 190 | instance02_name: kvm02 |
| 191 | instance03_name: kvm03 |
| 192 | instance_flavor: {get_param: kvm_fake_flavor} |
Dennis Dmitriev | 1e0a06f | 2019-05-31 13:24:13 +0300 | [diff] [blame] | 193 | availability_zone: { get_param: vm_availability_zone } |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 194 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 195 | instance01_control_net_static_ip: |
| 196 | list_join: |
| 197 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 198 | - [ { get_attr: [subnets, control_net_prefix] }, '241' ] |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 199 | instance02_control_net_static_ip: |
| 200 | list_join: |
| 201 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 202 | - [ { get_attr: [subnets, control_net_prefix] }, '242' ] |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 203 | instance03_control_net_static_ip: |
| 204 | list_join: |
| 205 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 206 | - [ { get_attr: [subnets, control_net_prefix] }, '243' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 207 | instance01_tenant_net_static_ip: |
| 208 | list_join: |
| 209 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 210 | - [ { get_attr: [subnets, tenant_net_prefix] }, '241' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 211 | instance02_tenant_net_static_ip: |
| 212 | list_join: |
| 213 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 214 | - [ { get_attr: [subnets, tenant_net_prefix] }, '242' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 215 | instance03_tenant_net_static_ip: |
| 216 | list_join: |
| 217 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 218 | - [ { get_attr: [subnets, tenant_net_prefix] }, '243' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 219 | instance01_external_net_static_ip: |
| 220 | list_join: |
| 221 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 222 | - [ { get_attr: [subnets, external_net_prefix] }, '241' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 223 | instance02_external_net_static_ip: |
| 224 | list_join: |
| 225 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 226 | - [ { get_attr: [subnets, external_net_prefix] }, '242' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 227 | instance03_external_net_static_ip: |
| 228 | list_join: |
| 229 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 230 | - [ { get_attr: [subnets, external_net_prefix] }, '243' ] |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 231 | |
| 232 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 233 | |
| 234 | cicd_cluster: |
| 235 | type: MCP::MultipleInstance |
| 236 | depends_on: [fake_kvm_cluster] |
| 237 | properties: |
| 238 | env_name: { get_param: env_name } |
| 239 | mcp_version: { get_param: mcp_version } |
| 240 | instance_domain: {get_param: instance_domain} |
| 241 | instance01_name: cid01 |
| 242 | instance02_name: cid02 |
| 243 | instance03_name: cid03 |
| 244 | instance_flavor: {get_param: cid_flavor} |
Dennis Dmitriev | 1e0a06f | 2019-05-31 13:24:13 +0300 | [diff] [blame] | 245 | availability_zone: { get_param: vm_availability_zone } |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 246 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 247 | instance01_control_net_static_ip: |
| 248 | list_join: |
| 249 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 250 | - [ { get_attr: [subnets, control_net_prefix] }, '91' ] |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 251 | instance02_control_net_static_ip: |
| 252 | list_join: |
| 253 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 254 | - [ { get_attr: [subnets, control_net_prefix] }, '92' ] |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 255 | instance03_control_net_static_ip: |
| 256 | list_join: |
| 257 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 258 | - [ { get_attr: [subnets, control_net_prefix] }, '93' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 259 | instance01_tenant_net_static_ip: |
| 260 | list_join: |
| 261 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 262 | - [ { get_attr: [subnets, tenant_net_prefix] }, '91' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 263 | instance02_tenant_net_static_ip: |
| 264 | list_join: |
| 265 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 266 | - [ { get_attr: [subnets, tenant_net_prefix] }, '92' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 267 | instance03_tenant_net_static_ip: |
| 268 | list_join: |
| 269 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 270 | - [ { get_attr: [subnets, tenant_net_prefix] }, '93' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 271 | instance01_external_net_static_ip: |
| 272 | list_join: |
| 273 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 274 | - [ { get_attr: [subnets, external_net_prefix] }, '91' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 275 | instance02_external_net_static_ip: |
| 276 | list_join: |
| 277 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 278 | - [ { get_attr: [subnets, external_net_prefix] }, '92' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 279 | instance03_external_net_static_ip: |
| 280 | list_join: |
| 281 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 282 | - [ { get_attr: [subnets, external_net_prefix] }, '93' ] |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 283 | |
| 284 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 285 | |
| 286 | prx01_virtual: |
| 287 | type: MCP::SingleInstance |
| 288 | depends_on: [cicd_cluster] |
| 289 | properties: |
| 290 | env_name: { get_param: env_name } |
| 291 | mcp_version: { get_param: mcp_version } |
| 292 | instance_domain: {get_param: instance_domain} |
| 293 | instance_name: prx01 |
| 294 | instance_flavor: {get_param: cid_flavor} |
Dennis Dmitriev | 1e0a06f | 2019-05-31 13:24:13 +0300 | [diff] [blame] | 295 | availability_zone: { get_param: vm_availability_zone } |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 296 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 297 | control_net_static_ip: |
| 298 | list_join: |
| 299 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 300 | - [ { get_attr: [subnets, control_net_prefix] }, '221' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 301 | tenant_net_static_ip: |
| 302 | list_join: |
| 303 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 304 | - [ { get_attr: [subnets, tenant_net_prefix] }, '221' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 305 | external_net_static_ip: |
| 306 | list_join: |
| 307 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 308 | - [ { get_attr: [subnets, external_net_prefix] }, '221' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 309 | |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 310 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 311 | |
| 312 | prx02_virtual: |
| 313 | type: MCP::SingleInstance |
| 314 | depends_on: [prx01_virtual] |
| 315 | properties: |
| 316 | env_name: { get_param: env_name } |
| 317 | mcp_version: { get_param: mcp_version } |
| 318 | instance_domain: {get_param: instance_domain} |
| 319 | instance_name: prx02 |
| 320 | instance_flavor: {get_param: cid_flavor} |
Dennis Dmitriev | 1e0a06f | 2019-05-31 13:24:13 +0300 | [diff] [blame] | 321 | availability_zone: { get_param: vm_availability_zone } |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 322 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 323 | control_net_static_ip: |
| 324 | list_join: |
| 325 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 326 | - [ { get_attr: [subnets, control_net_prefix] }, '222' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 327 | tenant_net_static_ip: |
| 328 | list_join: |
| 329 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 330 | - [ { get_attr: [subnets, tenant_net_prefix] }, '222' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 331 | external_net_static_ip: |
| 332 | list_join: |
| 333 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 334 | - [ { get_attr: [subnets, external_net_prefix] }, '222' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 335 | |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 336 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 337 | |
| 338 | cmp001_virtual: |
| 339 | type: MCP::Compute |
| 340 | depends_on: [prx02_virtual] |
| 341 | properties: |
| 342 | env_name: { get_param: env_name } |
| 343 | mcp_version: { get_param: mcp_version } |
| 344 | instance_domain: {get_param: instance_domain} |
| 345 | instance_name: cmp001 |
| 346 | instance_flavor: {get_param: cmp_flavor} |
Dennis Dmitriev | 1e0a06f | 2019-05-31 13:24:13 +0300 | [diff] [blame] | 347 | availability_zone: { get_param: vm_availability_zone } |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 348 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 349 | control_net_static_ip: |
| 350 | list_join: |
| 351 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 352 | - [ { get_attr: [subnets, control_net_prefix] }, '101' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 353 | tenant_net_static_ip: |
| 354 | list_join: |
| 355 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 356 | - [ { get_attr: [subnets, tenant_net_prefix] }, '101' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 357 | external_net_static_ip: |
| 358 | list_join: |
| 359 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 360 | - [ { get_attr: [subnets, external_net_prefix] }, '101' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 361 | |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 362 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 363 | |
| 364 | cmp002_virtual: |
| 365 | type: MCP::Compute |
| 366 | depends_on: [cmp001_virtual] |
| 367 | properties: |
| 368 | env_name: { get_param: env_name } |
| 369 | mcp_version: { get_param: mcp_version } |
| 370 | instance_domain: {get_param: instance_domain} |
| 371 | instance_name: cmp002 |
| 372 | instance_flavor: {get_param: cmp_flavor} |
Dennis Dmitriev | 1e0a06f | 2019-05-31 13:24:13 +0300 | [diff] [blame] | 373 | availability_zone: { get_param: vm_availability_zone } |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 374 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 375 | control_net_static_ip: |
| 376 | list_join: |
| 377 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 378 | - [ { get_attr: [subnets, control_net_prefix] }, '102' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 379 | tenant_net_static_ip: |
| 380 | list_join: |
| 381 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 382 | - [ { get_attr: [subnets, tenant_net_prefix] }, '102' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 383 | external_net_static_ip: |
| 384 | list_join: |
| 385 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 386 | - [ { get_attr: [subnets, external_net_prefix] }, '102' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 387 | |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 388 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 389 | |
| 390 | cmp003_virtual: |
| 391 | type: MCP::Compute |
| 392 | depends_on: [cmp002_virtual] |
| 393 | properties: |
| 394 | env_name: { get_param: env_name } |
| 395 | mcp_version: { get_param: mcp_version } |
| 396 | instance_domain: {get_param: instance_domain} |
| 397 | instance_name: cmp003 |
| 398 | instance_flavor: {get_param: cmp_flavor} |
Dennis Dmitriev | 1e0a06f | 2019-05-31 13:24:13 +0300 | [diff] [blame] | 399 | availability_zone: { get_param: vm_availability_zone } |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 400 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 401 | control_net_static_ip: |
| 402 | list_join: |
| 403 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 404 | - [ { get_attr: [subnets, control_net_prefix] }, '103' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 405 | tenant_net_static_ip: |
| 406 | list_join: |
| 407 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 408 | - [ { get_attr: [subnets, tenant_net_prefix] }, '103' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 409 | external_net_static_ip: |
| 410 | list_join: |
| 411 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 412 | - [ { get_attr: [subnets, external_net_prefix] }, '103' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 413 | |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 414 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 415 | |
| 416 | cmp004_virtual: |
| 417 | type: MCP::Compute |
| 418 | depends_on: [cmp003_virtual] |
| 419 | properties: |
| 420 | env_name: { get_param: env_name } |
| 421 | mcp_version: { get_param: mcp_version } |
| 422 | instance_domain: {get_param: instance_domain} |
| 423 | instance_name: cmp004 |
| 424 | instance_flavor: {get_param: cmp_flavor} |
Dennis Dmitriev | 1e0a06f | 2019-05-31 13:24:13 +0300 | [diff] [blame] | 425 | availability_zone: { get_param: vm_availability_zone } |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 426 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 427 | control_net_static_ip: |
| 428 | list_join: |
| 429 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 430 | - [ { get_attr: [subnets, control_net_prefix] }, '104' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 431 | tenant_net_static_ip: |
| 432 | list_join: |
| 433 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 434 | - [ { get_attr: [subnets, tenant_net_prefix] }, '104' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 435 | external_net_static_ip: |
| 436 | list_join: |
| 437 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 438 | - [ { get_attr: [subnets, external_net_prefix] }, '104' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 439 | |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 440 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 441 | |
| 442 | foundation_node: |
| 443 | type: MCP::FoundationNode |
sgudz | 22628a3 | 2019-06-12 11:34:04 +0300 | [diff] [blame] | 444 | depends_on: [subnets] |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 445 | properties: |
| 446 | env_name: { get_param: env_name } |
| 447 | mcp_version: { get_param: mcp_version } |
| 448 | instance_domain: {get_param: instance_domain} |
| 449 | instance_name: foundation |
Dennis Dmitriev | cba8612 | 2019-05-24 13:41:46 +0300 | [diff] [blame] | 450 | instance_image: { get_param: foundation_image } |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 451 | instance_flavor: {get_param: foundation_flavor} |
Dennis Dmitriev | 1e0a06f | 2019-05-31 13:24:13 +0300 | [diff] [blame] | 452 | availability_zone: { get_param: bm_availability_zone } |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 453 | management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] } |
| 454 | control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] } |
| 455 | tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] } |
| 456 | external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] } |
sgudz | c9f50d1 | 2019-05-31 14:25:34 +0300 | [diff] [blame] | 457 | management_subnet_gateway_ip: { get_param: management_subnet_gateway_ip } |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 458 | underlay_userdata: { get_file: ./underlay--user-data-foundation.yaml } |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 459 | management_net_static_ip: |
| 460 | list_join: |
| 461 | - '.' |
| 462 | - [ { get_attr: [subnets, management_net_prefix] }, '5' ] |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 463 | control_net_static_ip: |
| 464 | list_join: |
| 465 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 466 | - [ { get_attr: [subnets, control_net_prefix] }, '5' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 467 | tenant_net_static_ip: |
| 468 | list_join: |
| 469 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 470 | - [ { get_attr: [subnets, tenant_net_prefix] }, '5' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 471 | external_net_static_ip: |
| 472 | list_join: |
| 473 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 474 | - [ { get_attr: [subnets, external_net_prefix] }, '5' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 475 | |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 476 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 477 | |
| 478 | outputs: |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame] | 479 | foundation_public_ip: |
sgudz | b881972 | 2019-05-16 22:34:31 +0300 | [diff] [blame] | 480 | description: foundation node IP address (floating) from external network |
| 481 | value: |
| 482 | get_attr: |
| 483 | - foundation_node |
| 484 | - instance_floating_address |
| 485 | ... |