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