Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 1 | # |
| 2 | # Generated by scripts/gen-onap-oom-yaml.sh; MANUAL CHANGES WILL BE LOST |
| 3 | # |
| 4 | heat_template_version: 2015-10-15 |
| 5 | description: ONAP on RKE Kubernetes using OOM |
| 6 | |
| 7 | parameters: |
| 8 | docker_proxy: |
| 9 | type: string |
| 10 | |
| 11 | apt_proxy: |
| 12 | type: string |
| 13 | |
| 14 | public_net_id: |
| 15 | type: string |
| 16 | description: The ID of the Public network for floating IP address allocation |
| 17 | |
| 18 | oam_network_cidr: |
| 19 | type: string |
| 20 | description: CIDR of the OAM ONAP network |
| 21 | |
Gary Wu | cad7069 | 2019-04-24 10:45:56 -0700 | [diff] [blame] | 22 | oam_ext_network_cidr: |
| 23 | type: string |
| 24 | description: CIDR of the onap_oam_ext network |
| 25 | |
Gary Wu | e21a3c6 | 2019-07-10 17:17:06 -0700 | [diff] [blame] | 26 | oam_ext_network_host_route: |
| 27 | type: json |
| 28 | description: > |
| 29 | host routes |
| 30 | "destination": '10.12.0.0/16' |
| 31 | "nexthop": '10.100.0.1' |
| 32 | default: |
| 33 | "destination": '10.12.0.0/16' |
| 34 | "nexthop": '10.100.0.1' |
| 35 | |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 36 | ubuntu_1804_image: |
| 37 | type: string |
| 38 | description: Name of the Ubuntu 18.04 image |
| 39 | |
Gary Wu | d95bf2b | 2019-06-21 15:35:18 -0700 | [diff] [blame] | 40 | nfs_vm_flavor: |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 41 | type: string |
Gary Wu | d95bf2b | 2019-06-21 15:35:18 -0700 | [diff] [blame] | 42 | description: VM flavor for Nfs |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 43 | |
| 44 | k8s_vm_flavor: |
| 45 | type: string |
| 46 | description: VM flavor for k8s hosts |
| 47 | |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 48 | orch_vm_flavor: |
| 49 | type: string |
| 50 | description: VM flavor for orch hosts |
| 51 | |
| 52 | integration_override_yaml: |
| 53 | type: string |
| 54 | description: Content for integration_override.yaml |
| 55 | |
| 56 | integration_gerrit_branch: |
| 57 | type: string |
| 58 | default: "master" |
| 59 | |
| 60 | integration_gerrit_refspec: |
| 61 | type: string |
| 62 | default: "" |
| 63 | |
| 64 | oom_gerrit_branch: |
| 65 | type: string |
| 66 | default: "master" |
| 67 | |
| 68 | oom_gerrit_refspec: |
| 69 | type: string |
| 70 | default: "" |
| 71 | |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 72 | key_name: |
| 73 | type: string |
| 74 | default: "onap_key" |
| 75 | |
| 76 | docker_version: |
| 77 | type: string |
Gary Wu | 7ff8c6f | 2019-04-24 07:50:11 -0700 | [diff] [blame] | 78 | default: "18.09.5" |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 79 | |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 80 | kubectl_version: |
| 81 | type: string |
Marco Platania | 190a2f4 | 2019-08-29 13:25:50 -0400 | [diff] [blame] | 82 | default: "1.15.3" |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 83 | |
| 84 | helm_version: |
| 85 | type: string |
Marco Platania | 190a2f4 | 2019-08-29 13:25:50 -0400 | [diff] [blame] | 86 | default: "2.14.2" |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 87 | |
| 88 | helm_deploy_delay: |
| 89 | type: string |
| 90 | default: "3m" |
| 91 | |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 92 | mtu: |
| 93 | type: number |
| 94 | default: 1500 |
| 95 | |
| 96 | portal_hostname: |
| 97 | type: string |
| 98 | description: The FQDN of the k8s host that will be used for the Portal UI component URLs; this needs to be resolveable at the client |
| 99 | default: "portal.api.simpledemo.onap.org" |
| 100 | |
| 101 | resources: |
| 102 | random-str: |
| 103 | type: OS::Heat::RandomString |
| 104 | properties: |
| 105 | length: 4 |
| 106 | |
| 107 | # ONAP security group |
| 108 | onap_sg: |
| 109 | type: OS::Neutron::SecurityGroup |
| 110 | properties: |
| 111 | name: |
| 112 | str_replace: |
| 113 | template: base_rand |
| 114 | params: |
| 115 | base: onap_sg |
| 116 | rand: { get_resource: random-str } |
| 117 | description: security group used by ONAP |
| 118 | rules: |
| 119 | # All egress traffic |
| 120 | - direction: egress |
| 121 | ethertype: IPv4 |
| 122 | - direction: egress |
| 123 | ethertype: IPv6 |
| 124 | # ingress traffic |
| 125 | # ICMP |
| 126 | - protocol: icmp |
| 127 | - protocol: udp |
| 128 | port_range_min: 1 |
| 129 | port_range_max: 65535 |
| 130 | - protocol: tcp |
| 131 | port_range_min: 1 |
| 132 | port_range_max: 65535 |
| 133 | # Protocols used for vLB/vDNS use case |
| 134 | - protocol: 47 |
| 135 | - protocol: 53 |
| 136 | - protocol: 132 |
| 137 | |
Gary Wu | cad7069 | 2019-04-24 10:45:56 -0700 | [diff] [blame] | 138 | router: |
| 139 | type: OS::Neutron::Router |
| 140 | properties: |
| 141 | name: |
| 142 | list_join: ['-', [{ get_param: 'OS::stack_name' }, 'router']] |
| 143 | external_gateway_info: |
| 144 | network: { get_param: public_net_id } |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 145 | |
| 146 | # ONAP management private network |
| 147 | oam_network: |
| 148 | type: OS::Neutron::Net |
| 149 | properties: |
| 150 | name: |
| 151 | str_replace: |
| 152 | template: oam_network_rand |
| 153 | params: |
| 154 | rand: { get_resource: random-str } |
| 155 | |
| 156 | oam_subnet: |
| 157 | type: OS::Neutron::Subnet |
| 158 | properties: |
| 159 | name: |
| 160 | str_replace: |
| 161 | template: oam_network_rand |
| 162 | params: |
| 163 | rand: { get_resource: random-str } |
| 164 | network_id: { get_resource: oam_network } |
| 165 | cidr: { get_param: oam_network_cidr } |
| 166 | dns_nameservers: [ "8.8.8.8" ] |
| 167 | |
Gary Wu | cad7069 | 2019-04-24 10:45:56 -0700 | [diff] [blame] | 168 | oam_router_interface: |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 169 | type: OS::Neutron::RouterInterface |
| 170 | properties: |
| 171 | router_id: { get_resource: router } |
| 172 | subnet_id: { get_resource: oam_subnet } |
| 173 | |
Gary Wu | cad7069 | 2019-04-24 10:45:56 -0700 | [diff] [blame] | 174 | oam_ext_network: |
| 175 | type: OS::Neutron::Net |
| 176 | properties: |
| 177 | name: onap_oam_ext |
| 178 | |
| 179 | oam_ext_subnet: |
| 180 | type: OS::Neutron::Subnet |
| 181 | properties: |
| 182 | name: onap_oam_ext |
| 183 | network_id: { get_resource: oam_ext_network } |
| 184 | cidr: { get_param: oam_ext_network_cidr } |
Gary Wu | e21a3c6 | 2019-07-10 17:17:06 -0700 | [diff] [blame] | 185 | enable_dhcp: true |
| 186 | host_routes: |
| 187 | - { get_param: oam_ext_network_host_route } |
Gary Wu | cad7069 | 2019-04-24 10:45:56 -0700 | [diff] [blame] | 188 | dns_nameservers: [ "8.8.8.8" ] |
| 189 | |
| 190 | oam_ext_router_interface: |
| 191 | type: OS::Neutron::RouterInterface |
| 192 | properties: |
| 193 | router_id: { get_resource: router } |
| 194 | subnet_id: { get_resource: oam_ext_subnet } |
| 195 | |
Gary Wu | d95bf2b | 2019-06-21 15:35:18 -0700 | [diff] [blame] | 196 | nfs_private_port: |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 197 | type: OS::Neutron::Port |
| 198 | properties: |
| 199 | network: { get_resource: oam_network } |
| 200 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 201 | security_groups: |
| 202 | - { get_resource: onap_sg } |
| 203 | |
Gary Wu | d95bf2b | 2019-06-21 15:35:18 -0700 | [diff] [blame] | 204 | nfs_floating_ip: |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 205 | type: OS::Neutron::FloatingIP |
| 206 | properties: |
| 207 | floating_network_id: { get_param: public_net_id } |
Gary Wu | d95bf2b | 2019-06-21 15:35:18 -0700 | [diff] [blame] | 208 | port_id: { get_resource: nfs_private_port } |
Gary Wu | 9bb778b | 2019-06-21 16:16:18 -0700 | [diff] [blame] | 209 | nfs_volume: |
| 210 | type: OS::Cinder::Volume |
| 211 | properties: |
| 212 | size: 200 |
| 213 | |
| 214 | nfs_volume_att: |
| 215 | type: OS::Cinder::VolumeAttachment |
| 216 | properties: |
| 217 | instance_uuid: { get_resource: nfs_vm } |
| 218 | volume_id: { get_resource: nfs_volume } |
| 219 | |
Gary Wu | d95bf2b | 2019-06-21 15:35:18 -0700 | [diff] [blame] | 220 | nfs_vm: |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 221 | type: OS::Nova::Server |
| 222 | properties: |
| 223 | name: |
Gary Wu | d95bf2b | 2019-06-21 15:35:18 -0700 | [diff] [blame] | 224 | list_join: ['-', [{ get_param: 'OS::stack_name' }, 'nfs']] |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 225 | image: { get_param: ubuntu_1804_image } |
Gary Wu | d95bf2b | 2019-06-21 15:35:18 -0700 | [diff] [blame] | 226 | flavor: { get_param: nfs_vm_flavor } |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 227 | key_name: { get_param: key_name } |
| 228 | networks: |
Gary Wu | d95bf2b | 2019-06-21 15:35:18 -0700 | [diff] [blame] | 229 | - port: { get_resource: nfs_private_port } |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 230 | user_data_format: RAW |
| 231 | user_data: |
| 232 | str_replace: |
| 233 | template: |
Gary Wu | d95bf2b | 2019-06-21 15:35:18 -0700 | [diff] [blame] | 234 | get_file: nfs_vm_entrypoint.sh |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 235 | params: |
Brian Freeman | a2b0671 | 2019-10-31 12:28:25 -0500 | [diff] [blame^] | 236 | __additional_override__ : { get_param: additional_override} |
Gary Wu | 9bb778b | 2019-06-21 16:16:18 -0700 | [diff] [blame] | 237 | __nfs_volume_id__: { get_resource: nfs_volume } |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 238 | __docker_proxy__: { get_param: docker_proxy } |
| 239 | __apt_proxy__: { get_param: apt_proxy } |
Gary Wu | d95bf2b | 2019-06-21 15:35:18 -0700 | [diff] [blame] | 240 | __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] } |
| 241 | __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] } |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 242 | __integration_override_yaml__: { get_param: integration_override_yaml } |
| 243 | __integration_gerrit_branch__: { get_param: integration_gerrit_branch } |
| 244 | __integration_gerrit_refspec__: { get_param: integration_gerrit_refspec } |
| 245 | __oom_gerrit_branch__: { get_param: oom_gerrit_branch } |
| 246 | __oom_gerrit_refspec__: { get_param: oom_gerrit_refspec } |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 247 | __docker_version__: { get_param: docker_version } |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 248 | __kubectl_version__: { get_param: kubectl_version } |
| 249 | __helm_version__: { get_param: helm_version } |
| 250 | __helm_deploy_delay__: { get_param: helm_deploy_delay } |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 251 | __mtu__: { get_param: mtu } |
| 252 | __portal_hostname__: { get_param: portal_hostname } |
| 253 | __public_net_id__: { get_param: public_net_id } |
| 254 | __oam_network_cidr__: { get_param: oam_network_cidr } |
| 255 | __oam_network_id__: { get_resource: oam_network } |
| 256 | __oam_subnet_id__: { get_resource: oam_subnet } |
| 257 | __sec_group__: { get_resource: onap_sg } |
| 258 | __k8s_01_vm_ip__: { get_attr: [k8s_01_floating_ip, floating_ip_address] } |
| 259 | __k8s_vm_ips__: [ |
| 260 | get_attr: [k8s_01_floating_ip, floating_ip_address], |
| 261 | get_attr: [k8s_02_floating_ip, floating_ip_address], |
| 262 | get_attr: [k8s_03_floating_ip, floating_ip_address], |
| 263 | get_attr: [k8s_04_floating_ip, floating_ip_address], |
| 264 | get_attr: [k8s_05_floating_ip, floating_ip_address], |
| 265 | get_attr: [k8s_06_floating_ip, floating_ip_address], |
Gary Wu | 415f6a8 | 2019-04-11 15:56:27 -0700 | [diff] [blame] | 266 | get_attr: [k8s_07_floating_ip, floating_ip_address], |
| 267 | get_attr: [k8s_08_floating_ip, floating_ip_address], |
| 268 | get_attr: [k8s_09_floating_ip, floating_ip_address], |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 269 | ] |
| 270 | __k8s_private_ips__: [ |
| 271 | get_attr: [k8s_01_floating_ip, fixed_ip_address], |
| 272 | get_attr: [k8s_02_floating_ip, fixed_ip_address], |
| 273 | get_attr: [k8s_03_floating_ip, fixed_ip_address], |
| 274 | get_attr: [k8s_04_floating_ip, fixed_ip_address], |
| 275 | get_attr: [k8s_05_floating_ip, fixed_ip_address], |
| 276 | get_attr: [k8s_06_floating_ip, fixed_ip_address], |
Gary Wu | 415f6a8 | 2019-04-11 15:56:27 -0700 | [diff] [blame] | 277 | get_attr: [k8s_07_floating_ip, fixed_ip_address], |
| 278 | get_attr: [k8s_08_floating_ip, fixed_ip_address], |
| 279 | get_attr: [k8s_09_floating_ip, fixed_ip_address], |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 280 | ] |
| 281 | k8s_01_private_port: |
| 282 | type: OS::Neutron::Port |
| 283 | properties: |
| 284 | network: { get_resource: oam_network } |
| 285 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 286 | security_groups: |
| 287 | - { get_resource: onap_sg } |
| 288 | |
| 289 | k8s_01_floating_ip: |
| 290 | type: OS::Neutron::FloatingIP |
| 291 | properties: |
| 292 | floating_network_id: { get_param: public_net_id } |
| 293 | port_id: { get_resource: k8s_01_private_port } |
| 294 | |
| 295 | k8s_01_vm_scripts: |
| 296 | type: OS::Heat::CloudConfig |
| 297 | properties: |
| 298 | cloud_config: |
| 299 | power_state: |
| 300 | mode: reboot |
| 301 | runcmd: |
| 302 | - [ /opt/k8s_vm_install.sh ] |
| 303 | write_files: |
| 304 | - path: /opt/k8s_vm_install.sh |
| 305 | permissions: '0755' |
| 306 | content: |
| 307 | str_replace: |
| 308 | params: |
| 309 | __docker_proxy__: { get_param: docker_proxy } |
| 310 | __apt_proxy__: { get_param: apt_proxy } |
| 311 | __docker_version__: { get_param: docker_version } |
Gary Wu | d95bf2b | 2019-06-21 15:35:18 -0700 | [diff] [blame] | 312 | __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] } |
| 313 | __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] } |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 314 | __host_private_ip_addr__: { get_attr: [k8s_01_floating_ip, fixed_ip_address] } |
| 315 | __mtu__: { get_param: mtu } |
| 316 | template: |
| 317 | get_file: k8s_vm_install.sh |
| 318 | - path: /opt/k8s_vm_init.sh |
| 319 | permissions: '0755' |
| 320 | content: |
| 321 | str_replace: |
| 322 | params: |
| 323 | __host_private_ip_addr__: { get_attr: [k8s_01_floating_ip, fixed_ip_address] } |
| 324 | __host_label__: 'compute' |
| 325 | template: |
| 326 | get_file: k8s_vm_init.sh |
| 327 | - path: /etc/init.d/k8s_vm_init_serv |
| 328 | permissions: '0755' |
| 329 | content: |
| 330 | get_file: k8s_vm_init_serv.sh |
| 331 | |
| 332 | k8s_01_vm_config: |
| 333 | type: OS::Heat::MultipartMime |
| 334 | properties: |
| 335 | parts: |
| 336 | - config: { get_resource: k8s_01_vm_scripts } |
| 337 | |
| 338 | k8s_01_vm: |
| 339 | type: OS::Nova::Server |
| 340 | properties: |
| 341 | name: |
| 342 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '01' ] ] |
| 343 | image: { get_param: ubuntu_1804_image } |
| 344 | flavor: { get_param: k8s_vm_flavor } |
| 345 | key_name: { get_param: key_name } |
| 346 | networks: |
| 347 | - port: { get_resource: k8s_01_private_port } |
| 348 | user_data_format: SOFTWARE_CONFIG |
| 349 | user_data: { get_resource: k8s_01_vm_config } |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 350 | k8s_02_private_port: |
| 351 | type: OS::Neutron::Port |
| 352 | properties: |
| 353 | network: { get_resource: oam_network } |
| 354 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 355 | security_groups: |
| 356 | - { get_resource: onap_sg } |
| 357 | |
| 358 | k8s_02_floating_ip: |
| 359 | type: OS::Neutron::FloatingIP |
| 360 | properties: |
| 361 | floating_network_id: { get_param: public_net_id } |
| 362 | port_id: { get_resource: k8s_02_private_port } |
| 363 | |
| 364 | k8s_02_vm_scripts: |
| 365 | type: OS::Heat::CloudConfig |
| 366 | properties: |
| 367 | cloud_config: |
| 368 | power_state: |
| 369 | mode: reboot |
| 370 | runcmd: |
| 371 | - [ /opt/k8s_vm_install.sh ] |
| 372 | write_files: |
| 373 | - path: /opt/k8s_vm_install.sh |
| 374 | permissions: '0755' |
| 375 | content: |
| 376 | str_replace: |
| 377 | params: |
| 378 | __docker_proxy__: { get_param: docker_proxy } |
| 379 | __apt_proxy__: { get_param: apt_proxy } |
| 380 | __docker_version__: { get_param: docker_version } |
Gary Wu | d95bf2b | 2019-06-21 15:35:18 -0700 | [diff] [blame] | 381 | __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] } |
| 382 | __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] } |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 383 | __host_private_ip_addr__: { get_attr: [k8s_02_floating_ip, fixed_ip_address] } |
| 384 | __mtu__: { get_param: mtu } |
| 385 | template: |
| 386 | get_file: k8s_vm_install.sh |
| 387 | - path: /opt/k8s_vm_init.sh |
| 388 | permissions: '0755' |
| 389 | content: |
| 390 | str_replace: |
| 391 | params: |
| 392 | __host_private_ip_addr__: { get_attr: [k8s_02_floating_ip, fixed_ip_address] } |
| 393 | __host_label__: 'compute' |
| 394 | template: |
| 395 | get_file: k8s_vm_init.sh |
| 396 | - path: /etc/init.d/k8s_vm_init_serv |
| 397 | permissions: '0755' |
| 398 | content: |
| 399 | get_file: k8s_vm_init_serv.sh |
| 400 | |
| 401 | k8s_02_vm_config: |
| 402 | type: OS::Heat::MultipartMime |
| 403 | properties: |
| 404 | parts: |
| 405 | - config: { get_resource: k8s_02_vm_scripts } |
| 406 | |
| 407 | k8s_02_vm: |
| 408 | type: OS::Nova::Server |
| 409 | properties: |
| 410 | name: |
| 411 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '02' ] ] |
| 412 | image: { get_param: ubuntu_1804_image } |
| 413 | flavor: { get_param: k8s_vm_flavor } |
| 414 | key_name: { get_param: key_name } |
| 415 | networks: |
| 416 | - port: { get_resource: k8s_02_private_port } |
| 417 | user_data_format: SOFTWARE_CONFIG |
| 418 | user_data: { get_resource: k8s_02_vm_config } |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 419 | k8s_03_private_port: |
| 420 | type: OS::Neutron::Port |
| 421 | properties: |
| 422 | network: { get_resource: oam_network } |
| 423 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 424 | security_groups: |
| 425 | - { get_resource: onap_sg } |
| 426 | |
| 427 | k8s_03_floating_ip: |
| 428 | type: OS::Neutron::FloatingIP |
| 429 | properties: |
| 430 | floating_network_id: { get_param: public_net_id } |
| 431 | port_id: { get_resource: k8s_03_private_port } |
| 432 | |
| 433 | k8s_03_vm_scripts: |
| 434 | type: OS::Heat::CloudConfig |
| 435 | properties: |
| 436 | cloud_config: |
| 437 | power_state: |
| 438 | mode: reboot |
| 439 | runcmd: |
| 440 | - [ /opt/k8s_vm_install.sh ] |
| 441 | write_files: |
| 442 | - path: /opt/k8s_vm_install.sh |
| 443 | permissions: '0755' |
| 444 | content: |
| 445 | str_replace: |
| 446 | params: |
| 447 | __docker_proxy__: { get_param: docker_proxy } |
| 448 | __apt_proxy__: { get_param: apt_proxy } |
| 449 | __docker_version__: { get_param: docker_version } |
Gary Wu | d95bf2b | 2019-06-21 15:35:18 -0700 | [diff] [blame] | 450 | __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] } |
| 451 | __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] } |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 452 | __host_private_ip_addr__: { get_attr: [k8s_03_floating_ip, fixed_ip_address] } |
| 453 | __mtu__: { get_param: mtu } |
| 454 | template: |
| 455 | get_file: k8s_vm_install.sh |
| 456 | - path: /opt/k8s_vm_init.sh |
| 457 | permissions: '0755' |
| 458 | content: |
| 459 | str_replace: |
| 460 | params: |
| 461 | __host_private_ip_addr__: { get_attr: [k8s_03_floating_ip, fixed_ip_address] } |
| 462 | __host_label__: 'compute' |
| 463 | template: |
| 464 | get_file: k8s_vm_init.sh |
| 465 | - path: /etc/init.d/k8s_vm_init_serv |
| 466 | permissions: '0755' |
| 467 | content: |
| 468 | get_file: k8s_vm_init_serv.sh |
| 469 | |
| 470 | k8s_03_vm_config: |
| 471 | type: OS::Heat::MultipartMime |
| 472 | properties: |
| 473 | parts: |
| 474 | - config: { get_resource: k8s_03_vm_scripts } |
| 475 | |
| 476 | k8s_03_vm: |
| 477 | type: OS::Nova::Server |
| 478 | properties: |
| 479 | name: |
| 480 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '03' ] ] |
| 481 | image: { get_param: ubuntu_1804_image } |
| 482 | flavor: { get_param: k8s_vm_flavor } |
| 483 | key_name: { get_param: key_name } |
| 484 | networks: |
| 485 | - port: { get_resource: k8s_03_private_port } |
| 486 | user_data_format: SOFTWARE_CONFIG |
| 487 | user_data: { get_resource: k8s_03_vm_config } |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 488 | k8s_04_private_port: |
| 489 | type: OS::Neutron::Port |
| 490 | properties: |
| 491 | network: { get_resource: oam_network } |
| 492 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 493 | security_groups: |
| 494 | - { get_resource: onap_sg } |
| 495 | |
| 496 | k8s_04_floating_ip: |
| 497 | type: OS::Neutron::FloatingIP |
| 498 | properties: |
| 499 | floating_network_id: { get_param: public_net_id } |
| 500 | port_id: { get_resource: k8s_04_private_port } |
| 501 | |
| 502 | k8s_04_vm_scripts: |
| 503 | type: OS::Heat::CloudConfig |
| 504 | properties: |
| 505 | cloud_config: |
| 506 | power_state: |
| 507 | mode: reboot |
| 508 | runcmd: |
| 509 | - [ /opt/k8s_vm_install.sh ] |
| 510 | write_files: |
| 511 | - path: /opt/k8s_vm_install.sh |
| 512 | permissions: '0755' |
| 513 | content: |
| 514 | str_replace: |
| 515 | params: |
| 516 | __docker_proxy__: { get_param: docker_proxy } |
| 517 | __apt_proxy__: { get_param: apt_proxy } |
| 518 | __docker_version__: { get_param: docker_version } |
Gary Wu | d95bf2b | 2019-06-21 15:35:18 -0700 | [diff] [blame] | 519 | __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] } |
| 520 | __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] } |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 521 | __host_private_ip_addr__: { get_attr: [k8s_04_floating_ip, fixed_ip_address] } |
| 522 | __mtu__: { get_param: mtu } |
| 523 | template: |
| 524 | get_file: k8s_vm_install.sh |
| 525 | - path: /opt/k8s_vm_init.sh |
| 526 | permissions: '0755' |
| 527 | content: |
| 528 | str_replace: |
| 529 | params: |
| 530 | __host_private_ip_addr__: { get_attr: [k8s_04_floating_ip, fixed_ip_address] } |
| 531 | __host_label__: 'compute' |
| 532 | template: |
| 533 | get_file: k8s_vm_init.sh |
| 534 | - path: /etc/init.d/k8s_vm_init_serv |
| 535 | permissions: '0755' |
| 536 | content: |
| 537 | get_file: k8s_vm_init_serv.sh |
| 538 | |
| 539 | k8s_04_vm_config: |
| 540 | type: OS::Heat::MultipartMime |
| 541 | properties: |
| 542 | parts: |
| 543 | - config: { get_resource: k8s_04_vm_scripts } |
| 544 | |
| 545 | k8s_04_vm: |
| 546 | type: OS::Nova::Server |
| 547 | properties: |
| 548 | name: |
| 549 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '04' ] ] |
| 550 | image: { get_param: ubuntu_1804_image } |
| 551 | flavor: { get_param: k8s_vm_flavor } |
| 552 | key_name: { get_param: key_name } |
| 553 | networks: |
| 554 | - port: { get_resource: k8s_04_private_port } |
| 555 | user_data_format: SOFTWARE_CONFIG |
| 556 | user_data: { get_resource: k8s_04_vm_config } |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 557 | k8s_05_private_port: |
| 558 | type: OS::Neutron::Port |
| 559 | properties: |
| 560 | network: { get_resource: oam_network } |
| 561 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 562 | security_groups: |
| 563 | - { get_resource: onap_sg } |
| 564 | |
| 565 | k8s_05_floating_ip: |
| 566 | type: OS::Neutron::FloatingIP |
| 567 | properties: |
| 568 | floating_network_id: { get_param: public_net_id } |
| 569 | port_id: { get_resource: k8s_05_private_port } |
| 570 | |
| 571 | k8s_05_vm_scripts: |
| 572 | type: OS::Heat::CloudConfig |
| 573 | properties: |
| 574 | cloud_config: |
| 575 | power_state: |
| 576 | mode: reboot |
| 577 | runcmd: |
| 578 | - [ /opt/k8s_vm_install.sh ] |
| 579 | write_files: |
| 580 | - path: /opt/k8s_vm_install.sh |
| 581 | permissions: '0755' |
| 582 | content: |
| 583 | str_replace: |
| 584 | params: |
| 585 | __docker_proxy__: { get_param: docker_proxy } |
| 586 | __apt_proxy__: { get_param: apt_proxy } |
| 587 | __docker_version__: { get_param: docker_version } |
Gary Wu | d95bf2b | 2019-06-21 15:35:18 -0700 | [diff] [blame] | 588 | __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] } |
| 589 | __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] } |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 590 | __host_private_ip_addr__: { get_attr: [k8s_05_floating_ip, fixed_ip_address] } |
| 591 | __mtu__: { get_param: mtu } |
| 592 | template: |
| 593 | get_file: k8s_vm_install.sh |
| 594 | - path: /opt/k8s_vm_init.sh |
| 595 | permissions: '0755' |
| 596 | content: |
| 597 | str_replace: |
| 598 | params: |
| 599 | __host_private_ip_addr__: { get_attr: [k8s_05_floating_ip, fixed_ip_address] } |
| 600 | __host_label__: 'compute' |
| 601 | template: |
| 602 | get_file: k8s_vm_init.sh |
| 603 | - path: /etc/init.d/k8s_vm_init_serv |
| 604 | permissions: '0755' |
| 605 | content: |
| 606 | get_file: k8s_vm_init_serv.sh |
| 607 | |
| 608 | k8s_05_vm_config: |
| 609 | type: OS::Heat::MultipartMime |
| 610 | properties: |
| 611 | parts: |
| 612 | - config: { get_resource: k8s_05_vm_scripts } |
| 613 | |
| 614 | k8s_05_vm: |
| 615 | type: OS::Nova::Server |
| 616 | properties: |
| 617 | name: |
| 618 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '05' ] ] |
| 619 | image: { get_param: ubuntu_1804_image } |
| 620 | flavor: { get_param: k8s_vm_flavor } |
| 621 | key_name: { get_param: key_name } |
| 622 | networks: |
| 623 | - port: { get_resource: k8s_05_private_port } |
| 624 | user_data_format: SOFTWARE_CONFIG |
| 625 | user_data: { get_resource: k8s_05_vm_config } |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 626 | k8s_06_private_port: |
| 627 | type: OS::Neutron::Port |
| 628 | properties: |
| 629 | network: { get_resource: oam_network } |
| 630 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 631 | security_groups: |
| 632 | - { get_resource: onap_sg } |
| 633 | |
| 634 | k8s_06_floating_ip: |
| 635 | type: OS::Neutron::FloatingIP |
| 636 | properties: |
| 637 | floating_network_id: { get_param: public_net_id } |
| 638 | port_id: { get_resource: k8s_06_private_port } |
| 639 | |
| 640 | k8s_06_vm_scripts: |
| 641 | type: OS::Heat::CloudConfig |
| 642 | properties: |
| 643 | cloud_config: |
| 644 | power_state: |
| 645 | mode: reboot |
| 646 | runcmd: |
| 647 | - [ /opt/k8s_vm_install.sh ] |
| 648 | write_files: |
| 649 | - path: /opt/k8s_vm_install.sh |
| 650 | permissions: '0755' |
| 651 | content: |
| 652 | str_replace: |
| 653 | params: |
| 654 | __docker_proxy__: { get_param: docker_proxy } |
| 655 | __apt_proxy__: { get_param: apt_proxy } |
| 656 | __docker_version__: { get_param: docker_version } |
Gary Wu | d95bf2b | 2019-06-21 15:35:18 -0700 | [diff] [blame] | 657 | __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] } |
| 658 | __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] } |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 659 | __host_private_ip_addr__: { get_attr: [k8s_06_floating_ip, fixed_ip_address] } |
| 660 | __mtu__: { get_param: mtu } |
| 661 | template: |
| 662 | get_file: k8s_vm_install.sh |
| 663 | - path: /opt/k8s_vm_init.sh |
| 664 | permissions: '0755' |
| 665 | content: |
| 666 | str_replace: |
| 667 | params: |
| 668 | __host_private_ip_addr__: { get_attr: [k8s_06_floating_ip, fixed_ip_address] } |
| 669 | __host_label__: 'compute' |
| 670 | template: |
| 671 | get_file: k8s_vm_init.sh |
| 672 | - path: /etc/init.d/k8s_vm_init_serv |
| 673 | permissions: '0755' |
| 674 | content: |
| 675 | get_file: k8s_vm_init_serv.sh |
| 676 | |
| 677 | k8s_06_vm_config: |
| 678 | type: OS::Heat::MultipartMime |
| 679 | properties: |
| 680 | parts: |
| 681 | - config: { get_resource: k8s_06_vm_scripts } |
| 682 | |
| 683 | k8s_06_vm: |
| 684 | type: OS::Nova::Server |
| 685 | properties: |
| 686 | name: |
| 687 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '06' ] ] |
| 688 | image: { get_param: ubuntu_1804_image } |
| 689 | flavor: { get_param: k8s_vm_flavor } |
| 690 | key_name: { get_param: key_name } |
| 691 | networks: |
| 692 | - port: { get_resource: k8s_06_private_port } |
| 693 | user_data_format: SOFTWARE_CONFIG |
| 694 | user_data: { get_resource: k8s_06_vm_config } |
Gary Wu | 415f6a8 | 2019-04-11 15:56:27 -0700 | [diff] [blame] | 695 | k8s_07_private_port: |
| 696 | type: OS::Neutron::Port |
| 697 | properties: |
| 698 | network: { get_resource: oam_network } |
| 699 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 700 | security_groups: |
| 701 | - { get_resource: onap_sg } |
| 702 | |
| 703 | k8s_07_floating_ip: |
| 704 | type: OS::Neutron::FloatingIP |
| 705 | properties: |
| 706 | floating_network_id: { get_param: public_net_id } |
| 707 | port_id: { get_resource: k8s_07_private_port } |
| 708 | |
| 709 | k8s_07_vm_scripts: |
| 710 | type: OS::Heat::CloudConfig |
| 711 | properties: |
| 712 | cloud_config: |
| 713 | power_state: |
| 714 | mode: reboot |
| 715 | runcmd: |
| 716 | - [ /opt/k8s_vm_install.sh ] |
| 717 | write_files: |
| 718 | - path: /opt/k8s_vm_install.sh |
| 719 | permissions: '0755' |
| 720 | content: |
| 721 | str_replace: |
| 722 | params: |
| 723 | __docker_proxy__: { get_param: docker_proxy } |
| 724 | __apt_proxy__: { get_param: apt_proxy } |
| 725 | __docker_version__: { get_param: docker_version } |
Gary Wu | d95bf2b | 2019-06-21 15:35:18 -0700 | [diff] [blame] | 726 | __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] } |
| 727 | __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] } |
Gary Wu | 415f6a8 | 2019-04-11 15:56:27 -0700 | [diff] [blame] | 728 | __host_private_ip_addr__: { get_attr: [k8s_07_floating_ip, fixed_ip_address] } |
| 729 | __mtu__: { get_param: mtu } |
| 730 | template: |
| 731 | get_file: k8s_vm_install.sh |
| 732 | - path: /opt/k8s_vm_init.sh |
| 733 | permissions: '0755' |
| 734 | content: |
| 735 | str_replace: |
| 736 | params: |
| 737 | __host_private_ip_addr__: { get_attr: [k8s_07_floating_ip, fixed_ip_address] } |
| 738 | __host_label__: 'compute' |
| 739 | template: |
| 740 | get_file: k8s_vm_init.sh |
| 741 | - path: /etc/init.d/k8s_vm_init_serv |
| 742 | permissions: '0755' |
| 743 | content: |
| 744 | get_file: k8s_vm_init_serv.sh |
| 745 | |
| 746 | k8s_07_vm_config: |
| 747 | type: OS::Heat::MultipartMime |
| 748 | properties: |
| 749 | parts: |
| 750 | - config: { get_resource: k8s_07_vm_scripts } |
| 751 | |
| 752 | k8s_07_vm: |
| 753 | type: OS::Nova::Server |
| 754 | properties: |
| 755 | name: |
| 756 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '07' ] ] |
| 757 | image: { get_param: ubuntu_1804_image } |
| 758 | flavor: { get_param: k8s_vm_flavor } |
| 759 | key_name: { get_param: key_name } |
| 760 | networks: |
| 761 | - port: { get_resource: k8s_07_private_port } |
| 762 | user_data_format: SOFTWARE_CONFIG |
| 763 | user_data: { get_resource: k8s_07_vm_config } |
Gary Wu | 415f6a8 | 2019-04-11 15:56:27 -0700 | [diff] [blame] | 764 | k8s_08_private_port: |
| 765 | type: OS::Neutron::Port |
| 766 | properties: |
| 767 | network: { get_resource: oam_network } |
| 768 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 769 | security_groups: |
| 770 | - { get_resource: onap_sg } |
| 771 | |
| 772 | k8s_08_floating_ip: |
| 773 | type: OS::Neutron::FloatingIP |
| 774 | properties: |
| 775 | floating_network_id: { get_param: public_net_id } |
| 776 | port_id: { get_resource: k8s_08_private_port } |
| 777 | |
| 778 | k8s_08_vm_scripts: |
| 779 | type: OS::Heat::CloudConfig |
| 780 | properties: |
| 781 | cloud_config: |
| 782 | power_state: |
| 783 | mode: reboot |
| 784 | runcmd: |
| 785 | - [ /opt/k8s_vm_install.sh ] |
| 786 | write_files: |
| 787 | - path: /opt/k8s_vm_install.sh |
| 788 | permissions: '0755' |
| 789 | content: |
| 790 | str_replace: |
| 791 | params: |
| 792 | __docker_proxy__: { get_param: docker_proxy } |
| 793 | __apt_proxy__: { get_param: apt_proxy } |
| 794 | __docker_version__: { get_param: docker_version } |
Gary Wu | d95bf2b | 2019-06-21 15:35:18 -0700 | [diff] [blame] | 795 | __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] } |
| 796 | __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] } |
Gary Wu | 415f6a8 | 2019-04-11 15:56:27 -0700 | [diff] [blame] | 797 | __host_private_ip_addr__: { get_attr: [k8s_08_floating_ip, fixed_ip_address] } |
| 798 | __mtu__: { get_param: mtu } |
| 799 | template: |
| 800 | get_file: k8s_vm_install.sh |
| 801 | - path: /opt/k8s_vm_init.sh |
| 802 | permissions: '0755' |
| 803 | content: |
| 804 | str_replace: |
| 805 | params: |
| 806 | __host_private_ip_addr__: { get_attr: [k8s_08_floating_ip, fixed_ip_address] } |
| 807 | __host_label__: 'compute' |
| 808 | template: |
| 809 | get_file: k8s_vm_init.sh |
| 810 | - path: /etc/init.d/k8s_vm_init_serv |
| 811 | permissions: '0755' |
| 812 | content: |
| 813 | get_file: k8s_vm_init_serv.sh |
| 814 | |
| 815 | k8s_08_vm_config: |
| 816 | type: OS::Heat::MultipartMime |
| 817 | properties: |
| 818 | parts: |
| 819 | - config: { get_resource: k8s_08_vm_scripts } |
| 820 | |
| 821 | k8s_08_vm: |
| 822 | type: OS::Nova::Server |
| 823 | properties: |
| 824 | name: |
| 825 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '08' ] ] |
| 826 | image: { get_param: ubuntu_1804_image } |
| 827 | flavor: { get_param: k8s_vm_flavor } |
| 828 | key_name: { get_param: key_name } |
| 829 | networks: |
| 830 | - port: { get_resource: k8s_08_private_port } |
| 831 | user_data_format: SOFTWARE_CONFIG |
| 832 | user_data: { get_resource: k8s_08_vm_config } |
Gary Wu | 415f6a8 | 2019-04-11 15:56:27 -0700 | [diff] [blame] | 833 | k8s_09_private_port: |
| 834 | type: OS::Neutron::Port |
| 835 | properties: |
| 836 | network: { get_resource: oam_network } |
| 837 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 838 | security_groups: |
| 839 | - { get_resource: onap_sg } |
| 840 | |
| 841 | k8s_09_floating_ip: |
| 842 | type: OS::Neutron::FloatingIP |
| 843 | properties: |
| 844 | floating_network_id: { get_param: public_net_id } |
| 845 | port_id: { get_resource: k8s_09_private_port } |
| 846 | |
| 847 | k8s_09_vm_scripts: |
| 848 | type: OS::Heat::CloudConfig |
| 849 | properties: |
| 850 | cloud_config: |
| 851 | power_state: |
| 852 | mode: reboot |
| 853 | runcmd: |
| 854 | - [ /opt/k8s_vm_install.sh ] |
| 855 | write_files: |
| 856 | - path: /opt/k8s_vm_install.sh |
| 857 | permissions: '0755' |
| 858 | content: |
| 859 | str_replace: |
| 860 | params: |
| 861 | __docker_proxy__: { get_param: docker_proxy } |
| 862 | __apt_proxy__: { get_param: apt_proxy } |
| 863 | __docker_version__: { get_param: docker_version } |
Gary Wu | d95bf2b | 2019-06-21 15:35:18 -0700 | [diff] [blame] | 864 | __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] } |
| 865 | __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] } |
Gary Wu | 415f6a8 | 2019-04-11 15:56:27 -0700 | [diff] [blame] | 866 | __host_private_ip_addr__: { get_attr: [k8s_09_floating_ip, fixed_ip_address] } |
| 867 | __mtu__: { get_param: mtu } |
| 868 | template: |
| 869 | get_file: k8s_vm_install.sh |
| 870 | - path: /opt/k8s_vm_init.sh |
| 871 | permissions: '0755' |
| 872 | content: |
| 873 | str_replace: |
| 874 | params: |
| 875 | __host_private_ip_addr__: { get_attr: [k8s_09_floating_ip, fixed_ip_address] } |
| 876 | __host_label__: 'compute' |
| 877 | template: |
| 878 | get_file: k8s_vm_init.sh |
| 879 | - path: /etc/init.d/k8s_vm_init_serv |
| 880 | permissions: '0755' |
| 881 | content: |
| 882 | get_file: k8s_vm_init_serv.sh |
| 883 | |
| 884 | k8s_09_vm_config: |
| 885 | type: OS::Heat::MultipartMime |
| 886 | properties: |
| 887 | parts: |
| 888 | - config: { get_resource: k8s_09_vm_scripts } |
| 889 | |
| 890 | k8s_09_vm: |
| 891 | type: OS::Nova::Server |
| 892 | properties: |
| 893 | name: |
| 894 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '09' ] ] |
| 895 | image: { get_param: ubuntu_1804_image } |
| 896 | flavor: { get_param: k8s_vm_flavor } |
| 897 | key_name: { get_param: key_name } |
| 898 | networks: |
| 899 | - port: { get_resource: k8s_09_private_port } |
| 900 | user_data_format: SOFTWARE_CONFIG |
| 901 | user_data: { get_resource: k8s_09_vm_config } |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 902 | orch_1_private_port: |
| 903 | type: OS::Neutron::Port |
| 904 | properties: |
| 905 | network: { get_resource: oam_network } |
| 906 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 907 | security_groups: |
| 908 | - { get_resource: onap_sg } |
| 909 | |
| 910 | orch_1_floating_ip: |
| 911 | type: OS::Neutron::FloatingIP |
| 912 | properties: |
| 913 | floating_network_id: { get_param: public_net_id } |
| 914 | port_id: { get_resource: orch_1_private_port } |
| 915 | |
| 916 | orch_1_vm_scripts: |
| 917 | type: OS::Heat::CloudConfig |
| 918 | properties: |
| 919 | cloud_config: |
| 920 | power_state: |
| 921 | mode: reboot |
| 922 | runcmd: |
| 923 | - [ /opt/k8s_vm_install.sh ] |
| 924 | write_files: |
| 925 | - path: /opt/k8s_vm_install.sh |
| 926 | permissions: '0755' |
| 927 | content: |
| 928 | str_replace: |
| 929 | params: |
| 930 | __docker_proxy__: { get_param: docker_proxy } |
| 931 | __apt_proxy__: { get_param: apt_proxy } |
| 932 | __docker_version__: { get_param: docker_version } |
Gary Wu | d95bf2b | 2019-06-21 15:35:18 -0700 | [diff] [blame] | 933 | __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] } |
| 934 | __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] } |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 935 | __host_private_ip_addr__: { get_attr: [orch_1_floating_ip, fixed_ip_address] } |
| 936 | __mtu__: { get_param: mtu } |
| 937 | template: |
| 938 | get_file: k8s_vm_install.sh |
| 939 | - path: /opt/k8s_vm_init.sh |
| 940 | permissions: '0755' |
| 941 | content: |
| 942 | str_replace: |
| 943 | params: |
| 944 | __host_private_ip_addr__: { get_attr: [orch_1_floating_ip, fixed_ip_address] } |
| 945 | __host_label__: 'orchestration' |
| 946 | template: |
| 947 | get_file: k8s_vm_init.sh |
| 948 | - path: /etc/init.d/k8s_vm_init_serv |
| 949 | permissions: '0755' |
| 950 | content: |
| 951 | get_file: k8s_vm_init_serv.sh |
| 952 | |
| 953 | orch_1_vm_config: |
| 954 | type: OS::Heat::MultipartMime |
| 955 | properties: |
| 956 | parts: |
| 957 | - config: { get_resource: orch_1_vm_scripts } |
| 958 | |
| 959 | orch_1_vm: |
| 960 | type: OS::Nova::Server |
| 961 | properties: |
| 962 | name: |
| 963 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'orch', '1' ] ] |
| 964 | image: { get_param: ubuntu_1804_image } |
| 965 | flavor: { get_param: orch_vm_flavor } |
| 966 | key_name: { get_param: key_name } |
| 967 | networks: |
| 968 | - port: { get_resource: orch_1_private_port } |
| 969 | user_data_format: SOFTWARE_CONFIG |
| 970 | user_data: { get_resource: orch_1_vm_config } |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 971 | orch_2_private_port: |
| 972 | type: OS::Neutron::Port |
| 973 | properties: |
| 974 | network: { get_resource: oam_network } |
| 975 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 976 | security_groups: |
| 977 | - { get_resource: onap_sg } |
| 978 | |
| 979 | orch_2_floating_ip: |
| 980 | type: OS::Neutron::FloatingIP |
| 981 | properties: |
| 982 | floating_network_id: { get_param: public_net_id } |
| 983 | port_id: { get_resource: orch_2_private_port } |
| 984 | |
| 985 | orch_2_vm_scripts: |
| 986 | type: OS::Heat::CloudConfig |
| 987 | properties: |
| 988 | cloud_config: |
| 989 | power_state: |
| 990 | mode: reboot |
| 991 | runcmd: |
| 992 | - [ /opt/k8s_vm_install.sh ] |
| 993 | write_files: |
| 994 | - path: /opt/k8s_vm_install.sh |
| 995 | permissions: '0755' |
| 996 | content: |
| 997 | str_replace: |
| 998 | params: |
| 999 | __docker_proxy__: { get_param: docker_proxy } |
| 1000 | __apt_proxy__: { get_param: apt_proxy } |
| 1001 | __docker_version__: { get_param: docker_version } |
Gary Wu | d95bf2b | 2019-06-21 15:35:18 -0700 | [diff] [blame] | 1002 | __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] } |
| 1003 | __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] } |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 1004 | __host_private_ip_addr__: { get_attr: [orch_2_floating_ip, fixed_ip_address] } |
| 1005 | __mtu__: { get_param: mtu } |
| 1006 | template: |
| 1007 | get_file: k8s_vm_install.sh |
| 1008 | - path: /opt/k8s_vm_init.sh |
| 1009 | permissions: '0755' |
| 1010 | content: |
| 1011 | str_replace: |
| 1012 | params: |
| 1013 | __host_private_ip_addr__: { get_attr: [orch_2_floating_ip, fixed_ip_address] } |
| 1014 | __host_label__: 'orchestration' |
| 1015 | template: |
| 1016 | get_file: k8s_vm_init.sh |
| 1017 | - path: /etc/init.d/k8s_vm_init_serv |
| 1018 | permissions: '0755' |
| 1019 | content: |
| 1020 | get_file: k8s_vm_init_serv.sh |
| 1021 | |
| 1022 | orch_2_vm_config: |
| 1023 | type: OS::Heat::MultipartMime |
| 1024 | properties: |
| 1025 | parts: |
| 1026 | - config: { get_resource: orch_2_vm_scripts } |
| 1027 | |
| 1028 | orch_2_vm: |
| 1029 | type: OS::Nova::Server |
| 1030 | properties: |
| 1031 | name: |
| 1032 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'orch', '2' ] ] |
| 1033 | image: { get_param: ubuntu_1804_image } |
| 1034 | flavor: { get_param: orch_vm_flavor } |
| 1035 | key_name: { get_param: key_name } |
| 1036 | networks: |
| 1037 | - port: { get_resource: orch_2_private_port } |
| 1038 | user_data_format: SOFTWARE_CONFIG |
| 1039 | user_data: { get_resource: orch_2_vm_config } |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 1040 | orch_3_private_port: |
| 1041 | type: OS::Neutron::Port |
| 1042 | properties: |
| 1043 | network: { get_resource: oam_network } |
| 1044 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 1045 | security_groups: |
| 1046 | - { get_resource: onap_sg } |
| 1047 | |
| 1048 | orch_3_floating_ip: |
| 1049 | type: OS::Neutron::FloatingIP |
| 1050 | properties: |
| 1051 | floating_network_id: { get_param: public_net_id } |
| 1052 | port_id: { get_resource: orch_3_private_port } |
| 1053 | |
| 1054 | orch_3_vm_scripts: |
| 1055 | type: OS::Heat::CloudConfig |
| 1056 | properties: |
| 1057 | cloud_config: |
| 1058 | power_state: |
| 1059 | mode: reboot |
| 1060 | runcmd: |
| 1061 | - [ /opt/k8s_vm_install.sh ] |
| 1062 | write_files: |
| 1063 | - path: /opt/k8s_vm_install.sh |
| 1064 | permissions: '0755' |
| 1065 | content: |
| 1066 | str_replace: |
| 1067 | params: |
| 1068 | __docker_proxy__: { get_param: docker_proxy } |
| 1069 | __apt_proxy__: { get_param: apt_proxy } |
| 1070 | __docker_version__: { get_param: docker_version } |
Gary Wu | d95bf2b | 2019-06-21 15:35:18 -0700 | [diff] [blame] | 1071 | __nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] } |
| 1072 | __nfs_private_ip_addr__: { get_attr: [nfs_floating_ip, fixed_ip_address] } |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 1073 | __host_private_ip_addr__: { get_attr: [orch_3_floating_ip, fixed_ip_address] } |
| 1074 | __mtu__: { get_param: mtu } |
| 1075 | template: |
| 1076 | get_file: k8s_vm_install.sh |
| 1077 | - path: /opt/k8s_vm_init.sh |
| 1078 | permissions: '0755' |
| 1079 | content: |
| 1080 | str_replace: |
| 1081 | params: |
| 1082 | __host_private_ip_addr__: { get_attr: [orch_3_floating_ip, fixed_ip_address] } |
| 1083 | __host_label__: 'orchestration' |
| 1084 | template: |
| 1085 | get_file: k8s_vm_init.sh |
| 1086 | - path: /etc/init.d/k8s_vm_init_serv |
| 1087 | permissions: '0755' |
| 1088 | content: |
| 1089 | get_file: k8s_vm_init_serv.sh |
| 1090 | |
| 1091 | orch_3_vm_config: |
| 1092 | type: OS::Heat::MultipartMime |
| 1093 | properties: |
| 1094 | parts: |
| 1095 | - config: { get_resource: orch_3_vm_scripts } |
| 1096 | |
| 1097 | orch_3_vm: |
| 1098 | type: OS::Nova::Server |
| 1099 | properties: |
| 1100 | name: |
| 1101 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'orch', '3' ] ] |
| 1102 | image: { get_param: ubuntu_1804_image } |
| 1103 | flavor: { get_param: orch_vm_flavor } |
| 1104 | key_name: { get_param: key_name } |
| 1105 | networks: |
| 1106 | - port: { get_resource: orch_3_private_port } |
| 1107 | user_data_format: SOFTWARE_CONFIG |
| 1108 | user_data: { get_resource: orch_3_vm_config } |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 1109 | outputs: |
Gary Wu | 0bc6983 | 2019-03-27 13:58:46 -0700 | [diff] [blame] | 1110 | docker_proxy: |
| 1111 | value: { get_param: docker_proxy } |
| 1112 | |
Gary Wu | d95bf2b | 2019-06-21 15:35:18 -0700 | [diff] [blame] | 1113 | nfs_vm_ip: |
| 1114 | description: The IP address of the nfs instance |
| 1115 | value: { get_attr: [nfs_floating_ip, floating_ip_address] } |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 1116 | |
Gary Wu | d95bf2b | 2019-06-21 15:35:18 -0700 | [diff] [blame] | 1117 | nfs_vm_private_ip: |
| 1118 | description: The private IP address of the nfs instance |
| 1119 | value: { get_attr: [nfs_floating_ip, fixed_ip_address] } |
Gary Wu | 4d48360 | 2019-06-07 14:11:53 -0700 | [diff] [blame] | 1120 | |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 1121 | k8s_01_vm_ip: |
| 1122 | description: The IP address of the k8s_01 instance |
| 1123 | value: { get_attr: [k8s_01_floating_ip, floating_ip_address] } |
| 1124 | |
| 1125 | k8s_01_vm_private_ip: |
| 1126 | description: The private IP address of the k8s_01 instance |
| 1127 | value: { get_attr: [k8s_01_floating_ip, fixed_ip_address] } |
| 1128 | |
| 1129 | k8s_02_vm_ip: |
| 1130 | description: The IP address of the k8s_02 instance |
| 1131 | value: { get_attr: [k8s_02_floating_ip, floating_ip_address] } |
| 1132 | |
| 1133 | k8s_02_vm_private_ip: |
| 1134 | description: The private IP address of the k8s_02 instance |
| 1135 | value: { get_attr: [k8s_02_floating_ip, fixed_ip_address] } |
| 1136 | |
| 1137 | k8s_03_vm_ip: |
| 1138 | description: The IP address of the k8s_03 instance |
| 1139 | value: { get_attr: [k8s_03_floating_ip, floating_ip_address] } |
| 1140 | |
| 1141 | k8s_03_vm_private_ip: |
| 1142 | description: The private IP address of the k8s_03 instance |
| 1143 | value: { get_attr: [k8s_03_floating_ip, fixed_ip_address] } |
| 1144 | |
| 1145 | k8s_04_vm_ip: |
| 1146 | description: The IP address of the k8s_04 instance |
| 1147 | value: { get_attr: [k8s_04_floating_ip, floating_ip_address] } |
| 1148 | |
| 1149 | k8s_04_vm_private_ip: |
| 1150 | description: The private IP address of the k8s_04 instance |
| 1151 | value: { get_attr: [k8s_04_floating_ip, fixed_ip_address] } |
| 1152 | |
| 1153 | k8s_05_vm_ip: |
| 1154 | description: The IP address of the k8s_05 instance |
| 1155 | value: { get_attr: [k8s_05_floating_ip, floating_ip_address] } |
| 1156 | |
| 1157 | k8s_05_vm_private_ip: |
| 1158 | description: The private IP address of the k8s_05 instance |
| 1159 | value: { get_attr: [k8s_05_floating_ip, fixed_ip_address] } |
| 1160 | |
| 1161 | k8s_06_vm_ip: |
| 1162 | description: The IP address of the k8s_06 instance |
| 1163 | value: { get_attr: [k8s_06_floating_ip, floating_ip_address] } |
| 1164 | |
| 1165 | k8s_06_vm_private_ip: |
| 1166 | description: The private IP address of the k8s_06 instance |
| 1167 | value: { get_attr: [k8s_06_floating_ip, fixed_ip_address] } |
| 1168 | |
Gary Wu | 415f6a8 | 2019-04-11 15:56:27 -0700 | [diff] [blame] | 1169 | k8s_07_vm_ip: |
| 1170 | description: The IP address of the k8s_07 instance |
| 1171 | value: { get_attr: [k8s_07_floating_ip, floating_ip_address] } |
| 1172 | |
| 1173 | k8s_07_vm_private_ip: |
| 1174 | description: The private IP address of the k8s_07 instance |
| 1175 | value: { get_attr: [k8s_07_floating_ip, fixed_ip_address] } |
| 1176 | |
| 1177 | k8s_08_vm_ip: |
| 1178 | description: The IP address of the k8s_08 instance |
| 1179 | value: { get_attr: [k8s_08_floating_ip, floating_ip_address] } |
| 1180 | |
| 1181 | k8s_08_vm_private_ip: |
| 1182 | description: The private IP address of the k8s_08 instance |
| 1183 | value: { get_attr: [k8s_08_floating_ip, fixed_ip_address] } |
| 1184 | |
| 1185 | k8s_09_vm_ip: |
| 1186 | description: The IP address of the k8s_09 instance |
| 1187 | value: { get_attr: [k8s_09_floating_ip, floating_ip_address] } |
| 1188 | |
| 1189 | k8s_09_vm_private_ip: |
| 1190 | description: The private IP address of the k8s_09 instance |
| 1191 | value: { get_attr: [k8s_09_floating_ip, fixed_ip_address] } |
| 1192 | |
Gary Wu | 950a323 | 2019-03-26 13:08:29 -0700 | [diff] [blame] | 1193 | orch_1_vm_ip: |
| 1194 | description: The IP address of the orch_1 instance |
| 1195 | value: { get_attr: [orch_1_floating_ip, floating_ip_address] } |
| 1196 | |
| 1197 | orch_1_vm_private_ip: |
| 1198 | description: The private IP address of the orch_1 instance |
| 1199 | value: { get_attr: [orch_1_floating_ip, fixed_ip_address] } |
| 1200 | |
| 1201 | orch_2_vm_ip: |
| 1202 | description: The IP address of the orch_2 instance |
| 1203 | value: { get_attr: [orch_2_floating_ip, floating_ip_address] } |
| 1204 | |
| 1205 | orch_2_vm_private_ip: |
| 1206 | description: The private IP address of the orch_2 instance |
| 1207 | value: { get_attr: [orch_2_floating_ip, fixed_ip_address] } |
| 1208 | |
| 1209 | orch_3_vm_ip: |
| 1210 | description: The IP address of the orch_3 instance |
| 1211 | value: { get_attr: [orch_3_floating_ip, floating_ip_address] } |
| 1212 | |
| 1213 | orch_3_vm_private_ip: |
| 1214 | description: The private IP address of the orch_3 instance |
| 1215 | value: { get_attr: [orch_3_floating_ip, fixed_ip_address] } |
| 1216 | |