sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 1 | --- |
| 2 | |
| 3 | heat_template_version: queens |
| 4 | |
| 5 | description: MCP environment for heat-cicd-k8s-calico-sl |
| 6 | |
| 7 | parameters: |
| 8 | instance_domain: |
| 9 | type: string |
| 10 | default: heat-cicd-k8s-calico-sl.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 | |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 56 | resources: |
| 57 | networks: |
| 58 | type: MCP::Networks |
| 59 | properties: |
| 60 | stack_name: { get_param: "OS::stack_name" } |
| 61 | env_name: { get_param: env_name } |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 62 | subnets: |
| 63 | depends_on: [networks] |
| 64 | type: MCP::Subnets |
| 65 | properties: |
| 66 | stack_name: { get_param: "OS::stack_name" } |
| 67 | env_name: { get_param: env_name } |
| 68 | management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] } |
| 69 | control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] } |
| 70 | tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] } |
| 71 | external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] } |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 72 | |
| 73 | #flavors: |
| 74 | # type: MCP::Flavors |
| 75 | |
| 76 | cfg01_node: |
| 77 | type: MCP::MasterNode |
| 78 | depends_on: [networks] |
| 79 | properties: |
| 80 | env_name: { get_param: env_name } |
| 81 | mcp_version: { get_param: mcp_version } |
| 82 | cfg01_flavor: { get_param: cfg_flavor } |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 83 | management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] } |
| 84 | control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] } |
| 85 | tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] } |
| 86 | external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] } |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 87 | tenant_net_static_ip: |
| 88 | list_join: |
| 89 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 90 | - [ { get_attr: [subnets, tenant_net_prefix] }, '15' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 91 | external_net_static_ip: |
| 92 | list_join: |
| 93 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 94 | - [ { get_attr: [subnets, external_net_prefix] }, '15' ] |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 95 | instance_name: cfg01 |
| 96 | instance_domain: {get_param: instance_domain} |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 97 | |
| 98 | control_cluster: |
| 99 | type: MCP::MultipleInstance |
| 100 | depends_on: [cfg01_node] |
| 101 | properties: |
| 102 | env_name: { get_param: env_name } |
| 103 | mcp_version: { get_param: mcp_version } |
| 104 | instance_domain: {get_param: instance_domain} |
| 105 | instance01_name: ctl01 |
| 106 | instance02_name: ctl02 |
| 107 | instance03_name: ctl03 |
| 108 | instance01_role: k8s_controller |
| 109 | instance_flavor: {get_param: ctl_flavor} |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 110 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 111 | instance01_control_net_static_ip: |
| 112 | list_join: |
| 113 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 114 | - [ { get_attr: [subnets, control_net_prefix] }, '11' ] |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 115 | instance02_control_net_static_ip: |
| 116 | list_join: |
| 117 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 118 | - [ { get_attr: [subnets, control_net_prefix] }, '12' ] |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 119 | instance03_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] }, '13' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 123 | instance01_tenant_net_static_ip: |
| 124 | list_join: |
| 125 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 126 | - [ { get_attr: [subnets, tenant_net_prefix] }, '11' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 127 | instance02_tenant_net_static_ip: |
| 128 | list_join: |
| 129 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 130 | - [ { get_attr: [subnets, tenant_net_prefix] }, '12' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 131 | instance03_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] }, '13' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 135 | instance01_external_net_static_ip: |
| 136 | list_join: |
| 137 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 138 | - [ { get_attr: [subnets, external_net_prefix] }, '11' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 139 | instance02_external_net_static_ip: |
| 140 | list_join: |
| 141 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 142 | - [ { get_attr: [subnets, external_net_prefix] }, '12' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 143 | instance03_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] }, '13' ] |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 147 | |
| 148 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 149 | |
| 150 | fake_kvm_cluster: |
| 151 | type: MCP::MultipleInstance |
| 152 | depends_on: [control_cluster] |
| 153 | properties: |
| 154 | env_name: { get_param: env_name } |
| 155 | mcp_version: { get_param: mcp_version } |
| 156 | instance_domain: {get_param: instance_domain} |
| 157 | instance01_name: kvm01 |
| 158 | instance02_name: kvm02 |
| 159 | instance03_name: kvm03 |
| 160 | instance_flavor: {get_param: kvm_fake_flavor} |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 161 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 162 | instance01_control_net_static_ip: |
| 163 | list_join: |
| 164 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 165 | - [ { get_attr: [subnets, control_net_prefix] }, '241' ] |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 166 | instance02_control_net_static_ip: |
| 167 | list_join: |
| 168 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 169 | - [ { get_attr: [subnets, control_net_prefix] }, '242' ] |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 170 | instance03_control_net_static_ip: |
| 171 | list_join: |
| 172 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 173 | - [ { get_attr: [subnets, control_net_prefix] }, '243' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 174 | instance01_tenant_net_static_ip: |
| 175 | list_join: |
| 176 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 177 | - [ { get_attr: [subnets, tenant_net_prefix] }, '241' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 178 | instance02_tenant_net_static_ip: |
| 179 | list_join: |
| 180 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 181 | - [ { get_attr: [subnets, tenant_net_prefix] }, '242' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 182 | instance03_tenant_net_static_ip: |
| 183 | list_join: |
| 184 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 185 | - [ { get_attr: [subnets, tenant_net_prefix] }, '243' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 186 | instance01_external_net_static_ip: |
| 187 | list_join: |
| 188 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 189 | - [ { get_attr: [subnets, external_net_prefix] }, '241' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 190 | instance02_external_net_static_ip: |
| 191 | list_join: |
| 192 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 193 | - [ { get_attr: [subnets, external_net_prefix] }, '242' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 194 | instance03_external_net_static_ip: |
| 195 | list_join: |
| 196 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 197 | - [ { get_attr: [subnets, external_net_prefix] }, '243' ] |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 198 | |
| 199 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 200 | |
| 201 | cicd_cluster: |
| 202 | type: MCP::MultipleInstance |
| 203 | depends_on: [fake_kvm_cluster] |
| 204 | properties: |
| 205 | env_name: { get_param: env_name } |
| 206 | mcp_version: { get_param: mcp_version } |
| 207 | instance_domain: {get_param: instance_domain} |
| 208 | instance01_name: cid01 |
| 209 | instance02_name: cid02 |
| 210 | instance03_name: cid03 |
| 211 | instance_flavor: {get_param: cid_flavor} |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 212 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 213 | instance01_control_net_static_ip: |
| 214 | list_join: |
| 215 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 216 | - [ { get_attr: [subnets, control_net_prefix] }, '91' ] |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 217 | instance02_control_net_static_ip: |
| 218 | list_join: |
| 219 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 220 | - [ { get_attr: [subnets, control_net_prefix] }, '92' ] |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 221 | instance03_control_net_static_ip: |
| 222 | list_join: |
| 223 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 224 | - [ { get_attr: [subnets, control_net_prefix] }, '93' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 225 | instance01_tenant_net_static_ip: |
| 226 | list_join: |
| 227 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 228 | - [ { get_attr: [subnets, tenant_net_prefix] }, '91' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 229 | instance02_tenant_net_static_ip: |
| 230 | list_join: |
| 231 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 232 | - [ { get_attr: [subnets, tenant_net_prefix] }, '92' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 233 | instance03_tenant_net_static_ip: |
| 234 | list_join: |
| 235 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 236 | - [ { get_attr: [subnets, tenant_net_prefix] }, '93' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 237 | instance01_external_net_static_ip: |
| 238 | list_join: |
| 239 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 240 | - [ { get_attr: [subnets, external_net_prefix] }, '91' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 241 | instance02_external_net_static_ip: |
| 242 | list_join: |
| 243 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 244 | - [ { get_attr: [subnets, external_net_prefix] }, '92' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 245 | instance03_external_net_static_ip: |
| 246 | list_join: |
| 247 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 248 | - [ { get_attr: [subnets, external_net_prefix] }, '93' ] |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 249 | |
| 250 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 251 | |
| 252 | stacklight_monitor_cluster: |
| 253 | type: MCP::MultipleInstance |
| 254 | depends_on: [cicd_cluster] |
| 255 | properties: |
| 256 | env_name: { get_param: env_name } |
| 257 | mcp_version: { get_param: mcp_version } |
| 258 | instance_domain: {get_param: instance_domain} |
| 259 | instance01_name: mon01 |
| 260 | instance02_name: mon02 |
| 261 | instance03_name: mon03 |
| 262 | instance_flavor: {get_param: mon_flavor} |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 263 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 264 | instance01_control_net_static_ip: |
| 265 | list_join: |
| 266 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 267 | - [ { get_attr: [subnets, control_net_prefix] }, '71' ] |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 268 | instance02_control_net_static_ip: |
| 269 | list_join: |
| 270 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 271 | - [ { get_attr: [subnets, control_net_prefix] }, '72' ] |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 272 | instance03_control_net_static_ip: |
| 273 | list_join: |
| 274 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 275 | - [ { get_attr: [subnets, control_net_prefix] }, '73' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 276 | instance01_tenant_net_static_ip: |
| 277 | list_join: |
| 278 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 279 | - [ { get_attr: [subnets, tenant_net_prefix] }, '71' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 280 | instance02_tenant_net_static_ip: |
| 281 | list_join: |
| 282 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 283 | - [ { get_attr: [subnets, tenant_net_prefix] }, '72' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 284 | instance03_tenant_net_static_ip: |
| 285 | list_join: |
| 286 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 287 | - [ { get_attr: [subnets, tenant_net_prefix] }, '73' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 288 | instance01_external_net_static_ip: |
| 289 | list_join: |
| 290 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 291 | - [ { get_attr: [subnets, external_net_prefix] }, '71' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 292 | instance02_external_net_static_ip: |
| 293 | list_join: |
| 294 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 295 | - [ { get_attr: [subnets, external_net_prefix] }, '72' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 296 | instance03_external_net_static_ip: |
| 297 | list_join: |
| 298 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 299 | - [ { get_attr: [subnets, external_net_prefix] }, '73' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 300 | |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 301 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 302 | |
| 303 | stacklight_log_cluster: |
| 304 | type: MCP::MultipleInstance |
| 305 | depends_on: [stacklight_monitor_cluster] |
| 306 | properties: |
| 307 | env_name: { get_param: env_name } |
| 308 | mcp_version: { get_param: mcp_version } |
| 309 | instance_domain: {get_param: instance_domain} |
| 310 | instance01_name: log01 |
| 311 | instance02_name: log02 |
| 312 | instance03_name: log03 |
| 313 | instance_flavor: {get_param: log_flavor} |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 314 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 315 | instance01_control_net_static_ip: |
| 316 | list_join: |
| 317 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 318 | - [ { get_attr: [subnets, control_net_prefix] }, '61' ] |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 319 | instance02_control_net_static_ip: |
| 320 | list_join: |
| 321 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 322 | - [ { get_attr: [subnets, control_net_prefix] }, '62' ] |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 323 | instance03_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] }, '63' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 327 | instance01_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] }, '61' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 331 | instance02_tenant_net_static_ip: |
| 332 | list_join: |
| 333 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 334 | - [ { get_attr: [subnets, tenant_net_prefix] }, '62' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 335 | instance03_tenant_net_static_ip: |
| 336 | list_join: |
| 337 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 338 | - [ { get_attr: [subnets, tenant_net_prefix] }, '63' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 339 | instance01_external_net_static_ip: |
| 340 | list_join: |
| 341 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 342 | - [ { get_attr: [subnets, external_net_prefix] }, '61' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 343 | instance02_external_net_static_ip: |
| 344 | list_join: |
| 345 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 346 | - [ { get_attr: [subnets, external_net_prefix] }, '62' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 347 | instance03_external_net_static_ip: |
| 348 | list_join: |
| 349 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 350 | - [ { get_attr: [subnets, external_net_prefix] }, '63' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 351 | |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 352 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 353 | |
| 354 | stacklight_mtr_cluster: |
| 355 | type: MCP::MultipleInstance |
| 356 | depends_on: [stacklight_log_cluster] |
| 357 | properties: |
| 358 | env_name: { get_param: env_name } |
| 359 | mcp_version: { get_param: mcp_version } |
| 360 | instance_domain: {get_param: instance_domain} |
| 361 | instance01_name: mtr01 |
| 362 | instance02_name: mtr02 |
| 363 | instance03_name: mtr03 |
| 364 | instance_flavor: {get_param: mtr_flavor} |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 365 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 366 | instance01_control_net_static_ip: |
| 367 | list_join: |
| 368 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 369 | - [ { get_attr: [subnets, control_net_prefix] }, '86' ] |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 370 | instance02_control_net_static_ip: |
| 371 | list_join: |
| 372 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 373 | - [ { get_attr: [subnets, control_net_prefix] }, '87' ] |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 374 | instance03_control_net_static_ip: |
| 375 | list_join: |
| 376 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 377 | - [ { get_attr: [subnets, control_net_prefix] }, '88' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 378 | instance01_tenant_net_static_ip: |
| 379 | list_join: |
| 380 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 381 | - [ { get_attr: [subnets, tenant_net_prefix] }, '86' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 382 | instance02_tenant_net_static_ip: |
| 383 | list_join: |
| 384 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 385 | - [ { get_attr: [subnets, tenant_net_prefix] }, '87' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 386 | instance03_tenant_net_static_ip: |
| 387 | list_join: |
| 388 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 389 | - [ { get_attr: [subnets, tenant_net_prefix] }, '88' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 390 | instance01_external_net_static_ip: |
| 391 | list_join: |
| 392 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 393 | - [ { get_attr: [subnets, external_net_prefix] }, '86' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 394 | instance02_external_net_static_ip: |
| 395 | list_join: |
| 396 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 397 | - [ { get_attr: [subnets, external_net_prefix] }, '87' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 398 | instance03_external_net_static_ip: |
| 399 | list_join: |
| 400 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 401 | - [ { get_attr: [subnets, external_net_prefix] }, '88' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 402 | |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 403 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 404 | |
| 405 | prx01_virtual: |
| 406 | type: MCP::SingleInstance |
| 407 | depends_on: [stacklight_mtr_cluster] |
| 408 | properties: |
| 409 | env_name: { get_param: env_name } |
| 410 | mcp_version: { get_param: mcp_version } |
| 411 | instance_domain: {get_param: instance_domain} |
| 412 | instance_name: prx01 |
| 413 | instance_flavor: {get_param: cid_flavor} |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 414 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 415 | control_net_static_ip: |
| 416 | list_join: |
| 417 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 418 | - [ { get_attr: [subnets, control_net_prefix] }, '221' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 419 | tenant_net_static_ip: |
| 420 | list_join: |
| 421 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 422 | - [ { get_attr: [subnets, tenant_net_prefix] }, '221' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 423 | external_net_static_ip: |
| 424 | list_join: |
| 425 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 426 | - [ { get_attr: [subnets, external_net_prefix] }, '221' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 427 | |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 428 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 429 | |
| 430 | prx02_virtual: |
| 431 | type: MCP::SingleInstance |
| 432 | depends_on: [prx01_virtual] |
| 433 | properties: |
| 434 | env_name: { get_param: env_name } |
| 435 | mcp_version: { get_param: mcp_version } |
| 436 | instance_domain: {get_param: instance_domain} |
| 437 | instance_name: prx02 |
| 438 | instance_flavor: {get_param: cid_flavor} |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 439 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 440 | control_net_static_ip: |
| 441 | list_join: |
| 442 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 443 | - [ { get_attr: [subnets, control_net_prefix] }, '222' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 444 | tenant_net_static_ip: |
| 445 | list_join: |
| 446 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 447 | - [ { get_attr: [subnets, tenant_net_prefix] }, '222' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 448 | external_net_static_ip: |
| 449 | list_join: |
| 450 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 451 | - [ { get_attr: [subnets, external_net_prefix] }, '222' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 452 | |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 453 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 454 | |
| 455 | cmp001_virtual: |
| 456 | type: MCP::Compute |
| 457 | depends_on: [prx02_virtual] |
| 458 | properties: |
| 459 | env_name: { get_param: env_name } |
| 460 | mcp_version: { get_param: mcp_version } |
| 461 | instance_domain: {get_param: instance_domain} |
| 462 | instance_name: cmp001 |
| 463 | instance_flavor: {get_param: cmp_flavor} |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 464 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 465 | control_net_static_ip: |
| 466 | list_join: |
| 467 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 468 | - [ { get_attr: [subnets, control_net_prefix] }, '101' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 469 | tenant_net_static_ip: |
| 470 | list_join: |
| 471 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 472 | - [ { get_attr: [subnets, tenant_net_prefix] }, '101' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 473 | external_net_static_ip: |
| 474 | list_join: |
| 475 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 476 | - [ { get_attr: [subnets, external_net_prefix] }, '101' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 477 | |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 478 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 479 | |
| 480 | cmp002_virtual: |
| 481 | type: MCP::Compute |
| 482 | depends_on: [cmp001_virtual] |
| 483 | properties: |
| 484 | env_name: { get_param: env_name } |
| 485 | mcp_version: { get_param: mcp_version } |
| 486 | instance_domain: {get_param: instance_domain} |
| 487 | instance_name: cmp002 |
| 488 | instance_flavor: {get_param: cmp_flavor} |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 489 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 490 | control_net_static_ip: |
| 491 | list_join: |
| 492 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 493 | - [ { get_attr: [subnets, control_net_prefix] }, '102' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 494 | tenant_net_static_ip: |
| 495 | list_join: |
| 496 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 497 | - [ { get_attr: [subnets, tenant_net_prefix] }, '102' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 498 | external_net_static_ip: |
| 499 | list_join: |
| 500 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 501 | - [ { get_attr: [subnets, external_net_prefix] }, '102' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 502 | |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 503 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 504 | |
| 505 | cmp003_virtual: |
| 506 | type: MCP::Compute |
| 507 | depends_on: [cmp002_virtual] |
| 508 | properties: |
| 509 | env_name: { get_param: env_name } |
| 510 | mcp_version: { get_param: mcp_version } |
| 511 | instance_domain: {get_param: instance_domain} |
| 512 | instance_name: cmp003 |
| 513 | instance_flavor: {get_param: cmp_flavor} |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 514 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 515 | control_net_static_ip: |
| 516 | list_join: |
| 517 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 518 | - [ { get_attr: [subnets, control_net_prefix] }, '103' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 519 | tenant_net_static_ip: |
| 520 | list_join: |
| 521 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 522 | - [ { get_attr: [subnets, tenant_net_prefix] }, '103' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 523 | external_net_static_ip: |
| 524 | list_join: |
| 525 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 526 | - [ { get_attr: [subnets, external_net_prefix] }, '103' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 527 | |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 528 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 529 | |
| 530 | cmp004_virtual: |
| 531 | type: MCP::Compute |
| 532 | depends_on: [cmp003_virtual] |
| 533 | properties: |
| 534 | env_name: { get_param: env_name } |
| 535 | mcp_version: { get_param: mcp_version } |
| 536 | instance_domain: {get_param: instance_domain} |
| 537 | instance_name: cmp004 |
| 538 | instance_flavor: {get_param: cmp_flavor} |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 539 | underlay_userdata: { get_file: ./underlay-userdata.yaml } |
| 540 | control_net_static_ip: |
| 541 | list_join: |
| 542 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 543 | - [ { get_attr: [subnets, control_net_prefix] }, '104' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 544 | tenant_net_static_ip: |
| 545 | list_join: |
| 546 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 547 | - [ { get_attr: [subnets, tenant_net_prefix] }, '104' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 548 | external_net_static_ip: |
| 549 | list_join: |
| 550 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 551 | - [ { get_attr: [subnets, external_net_prefix] }, '104' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 552 | |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 553 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 554 | |
| 555 | foundation_node: |
| 556 | type: MCP::FoundationNode |
| 557 | depends_on: [networks] |
| 558 | properties: |
| 559 | env_name: { get_param: env_name } |
| 560 | mcp_version: { get_param: mcp_version } |
| 561 | instance_domain: {get_param: instance_domain} |
| 562 | instance_name: foundation |
Dennis Dmitriev | cba8612 | 2019-05-24 13:41:46 +0300 | [diff] [blame] | 563 | instance_image: { get_param: foundation_image } |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 564 | instance_flavor: {get_param: foundation_flavor} |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 565 | management_net: { list_join: ['-', [ 'management_net', { get_param: env_name } ]] } |
| 566 | control_net: { list_join: ['-', [ 'control_net', { get_param: env_name } ]] } |
| 567 | tenant_net: { list_join: ['-', [ 'tenant_net', { get_param: env_name } ]] } |
| 568 | external_net: { list_join: ['-', [ 'external_net', { get_param: env_name } ]] } |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 569 | underlay_userdata: { get_file: ./underlay--user-data-foundation.yaml } |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 570 | management_net_static_ip: |
| 571 | list_join: |
| 572 | - '.' |
| 573 | - [ { get_attr: [subnets, management_net_prefix] }, '5' ] |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 574 | control_net_static_ip: |
| 575 | list_join: |
| 576 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 577 | - [ { get_attr: [subnets, control_net_prefix] }, '5' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 578 | tenant_net_static_ip: |
| 579 | list_join: |
| 580 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 581 | - [ { get_attr: [subnets, tenant_net_prefix] }, '5' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 582 | external_net_static_ip: |
| 583 | list_join: |
| 584 | - '.' |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 585 | - [ { get_attr: [subnets, external_net_prefix] }, '5' ] |
sgudz | e6bff76 | 2019-05-23 18:15:49 +0300 | [diff] [blame] | 586 | |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 587 | instance_config_host: { get_attr: [cfg01_node, instance_address] } |
| 588 | |
| 589 | outputs: |
Andrew Baraniuk | 67c04ec | 2019-05-27 13:46:10 +0300 | [diff] [blame^] | 590 | foundation_public_ip: |
sgudz | a133b8e | 2019-05-10 14:32:08 +0300 | [diff] [blame] | 591 | description: foundation node IP address (floating) from external network |
| 592 | value: |
| 593 | get_attr: |
| 594 | - foundation_node |
| 595 | - instance_floating_address |
| 596 | ... |