Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 1 | # |
| 2 | # Generated by scripts/gen-onap-oom-yaml.sh; MANUAL CHANGES WILL BE LOST |
| 3 | # |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 4 | heat_template_version: 2015-10-15 |
| 5 | description: ONAP on Kubernetes using OOM |
| 6 | |
| 7 | parameters: |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 8 | docker_proxy: |
| 9 | type: string |
| 10 | |
| 11 | apt_proxy: |
| 12 | type: string |
| 13 | |
Gary Wu | c98156d | 2018-01-18 12:03:26 -0800 | [diff] [blame] | 14 | public_net_id: |
| 15 | type: string |
| 16 | description: The ID of the Public network for floating IP address allocation |
| 17 | |
Gary Wu | c98156d | 2018-01-18 12:03:26 -0800 | [diff] [blame] | 18 | oam_network_cidr: |
| 19 | type: string |
| 20 | description: CIDR of the OAM ONAP network |
| 21 | |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame] | 22 | ubuntu_1604_image: |
| 23 | type: string |
| 24 | description: Name of the Ubuntu 16.04 image |
| 25 | |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame] | 26 | rancher_vm_flavor: |
| 27 | type: string |
Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 28 | description: VM flavor for Rancher |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame] | 29 | |
| 30 | k8s_vm_flavor: |
| 31 | type: string |
Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 32 | description: VM flavor for k8s hosts |
| 33 | |
| 34 | integration_override_yaml: |
| 35 | type: string |
| 36 | description: Content for integration_override.yaml |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame] | 37 | |
Gary Wu | 81836d2 | 2018-06-22 13:48:50 -0700 | [diff] [blame] | 38 | gerrit_branch: |
| 39 | type: string |
| 40 | default: "master" |
| 41 | |
| 42 | gerrit_refspec: |
| 43 | type: string |
| 44 | default: "refs/heads/master" |
| 45 | |
| 46 | docker_manifest: |
| 47 | type: string |
| 48 | default: "docker-manifest.csv" |
| 49 | |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 50 | key_name: |
| 51 | type: string |
| 52 | default: "onap_key" |
| 53 | |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 54 | resources: |
Gary Wu | c98156d | 2018-01-18 12:03:26 -0800 | [diff] [blame] | 55 | random-str: |
| 56 | type: OS::Heat::RandomString |
| 57 | properties: |
| 58 | length: 4 |
| 59 | |
Gary Wu | bc11e5d | 2018-02-07 10:23:27 -0800 | [diff] [blame] | 60 | # ONAP security group |
| 61 | onap_sg: |
| 62 | type: OS::Neutron::SecurityGroup |
| 63 | properties: |
| 64 | name: |
| 65 | str_replace: |
| 66 | template: base_rand |
| 67 | params: |
| 68 | base: onap_sg |
| 69 | rand: { get_resource: random-str } |
| 70 | description: security group used by ONAP |
| 71 | rules: |
| 72 | # All egress traffic |
| 73 | - direction: egress |
| 74 | ethertype: IPv4 |
| 75 | - direction: egress |
| 76 | ethertype: IPv6 |
| 77 | # ingress traffic |
| 78 | # ICMP |
| 79 | - protocol: icmp |
| 80 | - protocol: udp |
| 81 | port_range_min: 1 |
| 82 | port_range_max: 65535 |
| 83 | - protocol: tcp |
| 84 | port_range_min: 1 |
| 85 | port_range_max: 65535 |
| 86 | |
| 87 | |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 88 | # ONAP management private network |
| 89 | oam_network: |
| 90 | type: OS::Neutron::Net |
| 91 | properties: |
| 92 | name: |
| 93 | str_replace: |
| 94 | template: oam_network_rand |
| 95 | params: |
| 96 | rand: { get_resource: random-str } |
| 97 | |
| 98 | oam_subnet: |
| 99 | type: OS::Neutron::Subnet |
| 100 | properties: |
| 101 | name: |
| 102 | str_replace: |
| 103 | template: oam_network_rand |
| 104 | params: |
| 105 | rand: { get_resource: random-str } |
| 106 | network_id: { get_resource: oam_network } |
| 107 | cidr: { get_param: oam_network_cidr } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 108 | dns_nameservers: [ "8.8.8.8" ] |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 109 | |
| 110 | router: |
| 111 | type: OS::Neutron::Router |
| 112 | properties: |
| 113 | external_gateway_info: |
| 114 | network: { get_param: public_net_id } |
| 115 | |
| 116 | router_interface: |
| 117 | type: OS::Neutron::RouterInterface |
| 118 | properties: |
| 119 | router_id: { get_resource: router } |
| 120 | subnet_id: { get_resource: oam_subnet } |
| 121 | |
Gary Wu | 374498a | 2018-02-06 17:31:04 -0800 | [diff] [blame] | 122 | rancher_private_port: |
| 123 | type: OS::Neutron::Port |
| 124 | properties: |
| 125 | network: { get_resource: oam_network } |
| 126 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
Gary Wu | bc11e5d | 2018-02-07 10:23:27 -0800 | [diff] [blame] | 127 | security_groups: |
| 128 | - { get_resource: onap_sg } |
Gary Wu | 374498a | 2018-02-06 17:31:04 -0800 | [diff] [blame] | 129 | |
| 130 | rancher_floating_ip: |
| 131 | type: OS::Neutron::FloatingIP |
| 132 | properties: |
| 133 | floating_network_id: { get_param: public_net_id } |
| 134 | port_id: { get_resource: rancher_private_port } |
| 135 | |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 136 | rancher_vm: |
| 137 | type: OS::Nova::Server |
| 138 | properties: |
| 139 | name: rancher |
Gary Wu | 558ac6e | 2018-01-19 14:53:12 -0800 | [diff] [blame] | 140 | image: { get_param: ubuntu_1604_image } |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame] | 141 | flavor: { get_param: rancher_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 142 | key_name: { get_param: key_name } |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 143 | networks: |
Gary Wu | 374498a | 2018-02-06 17:31:04 -0800 | [diff] [blame] | 144 | - port: { get_resource: rancher_private_port } |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 145 | user_data_format: RAW |
| 146 | user_data: |
| 147 | str_replace: |
Gary Wu | 1ff5667 | 2018-01-17 20:51:45 -0800 | [diff] [blame] | 148 | template: |
| 149 | get_file: rancher_vm_entrypoint.sh |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 150 | params: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 151 | __docker_proxy__: { get_param: docker_proxy } |
| 152 | __apt_proxy__: { get_param: apt_proxy } |
| 153 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 154 | __integration_override_yaml__: { get_param: integration_override_yaml } |
Gary Wu | 81836d2 | 2018-06-22 13:48:50 -0700 | [diff] [blame] | 155 | __gerrit_branch__: { get_param: gerrit_branch } |
| 156 | __gerrit_refspec__: { get_param: gerrit_refspec } |
| 157 | __docker_manifest__: { get_param: docker_manifest } |
Gary Wu | 978171e | 2018-07-24 11:56:01 -0700 | [diff] [blame^] | 158 | __public_net_id__: { get_param: public_net_id } |
| 159 | __oam_network_cidr__: { get_param: oam_network_cidr } |
Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 160 | __oam_network_id__: { get_resource: oam_network } |
| 161 | __oam_subnet_id__: { get_resource: oam_subnet } |
Gary Wu | 0a67162 | 2018-05-14 12:59:03 -0700 | [diff] [blame] | 162 | __k8s_1_vm_ip__: { get_attr: [k8s_1_floating_ip, floating_ip_address] } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 163 | __k8s_vm_ips__: [ |
| 164 | get_attr: [k8s_1_floating_ip, floating_ip_address], |
| 165 | get_attr: [k8s_2_floating_ip, floating_ip_address], |
| 166 | get_attr: [k8s_3_floating_ip, floating_ip_address], |
| 167 | get_attr: [k8s_4_floating_ip, floating_ip_address], |
| 168 | get_attr: [k8s_5_floating_ip, floating_ip_address], |
| 169 | get_attr: [k8s_6_floating_ip, floating_ip_address], |
| 170 | get_attr: [k8s_7_floating_ip, floating_ip_address], |
Gary Wu | 7d03458 | 2018-05-12 09:08:20 -0700 | [diff] [blame] | 171 | get_attr: [k8s_8_floating_ip, floating_ip_address], |
| 172 | get_attr: [k8s_9_floating_ip, floating_ip_address], |
Gary Wu | 276d5a4 | 2018-06-05 11:26:44 -0700 | [diff] [blame] | 173 | get_attr: [k8s_10_floating_ip, floating_ip_address], |
| 174 | get_attr: [k8s_11_floating_ip, floating_ip_address], |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 175 | ] |
| 176 | k8s_1_private_port: |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 177 | type: OS::Neutron::Port |
| 178 | properties: |
| 179 | network: { get_resource: oam_network } |
| 180 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
Gary Wu | bc11e5d | 2018-02-07 10:23:27 -0800 | [diff] [blame] | 181 | security_groups: |
| 182 | - { get_resource: onap_sg } |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 183 | |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 184 | k8s_1_floating_ip: |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 185 | type: OS::Neutron::FloatingIP |
| 186 | properties: |
| 187 | floating_network_id: { get_param: public_net_id } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 188 | port_id: { get_resource: k8s_1_private_port } |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 189 | |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 190 | k8s_1_vm: |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 191 | type: OS::Nova::Server |
| 192 | properties: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 193 | name: k8s_1 |
Gary Wu | 558ac6e | 2018-01-19 14:53:12 -0800 | [diff] [blame] | 194 | image: { get_param: ubuntu_1604_image } |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame] | 195 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 196 | key_name: { get_param: key_name } |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 197 | networks: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 198 | - port: { get_resource: k8s_1_private_port } |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 199 | user_data_format: RAW |
| 200 | user_data: |
| 201 | str_replace: |
| 202 | params: |
| 203 | __docker_proxy__: { get_param: docker_proxy } |
| 204 | __apt_proxy__: { get_param: apt_proxy } |
Gary Wu | 5d325d0 | 2018-02-06 21:21:31 -0800 | [diff] [blame] | 205 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 206 | template: |
| 207 | get_file: k8s_vm_entrypoint.sh |
| 208 | |
| 209 | k8s_2_private_port: |
| 210 | type: OS::Neutron::Port |
| 211 | properties: |
| 212 | network: { get_resource: oam_network } |
| 213 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 214 | security_groups: |
| 215 | - { get_resource: onap_sg } |
| 216 | |
| 217 | k8s_2_floating_ip: |
| 218 | type: OS::Neutron::FloatingIP |
| 219 | properties: |
| 220 | floating_network_id: { get_param: public_net_id } |
| 221 | port_id: { get_resource: k8s_2_private_port } |
| 222 | |
| 223 | k8s_2_vm: |
| 224 | type: OS::Nova::Server |
| 225 | properties: |
| 226 | name: k8s_2 |
| 227 | image: { get_param: ubuntu_1604_image } |
| 228 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 229 | key_name: { get_param: key_name } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 230 | networks: |
| 231 | - port: { get_resource: k8s_2_private_port } |
| 232 | user_data_format: RAW |
| 233 | user_data: |
| 234 | str_replace: |
| 235 | params: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 236 | __docker_proxy__: { get_param: docker_proxy } |
| 237 | __apt_proxy__: { get_param: apt_proxy } |
| 238 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 239 | template: |
| 240 | get_file: k8s_vm_entrypoint.sh |
| 241 | |
| 242 | k8s_3_private_port: |
| 243 | type: OS::Neutron::Port |
| 244 | properties: |
| 245 | network: { get_resource: oam_network } |
| 246 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 247 | security_groups: |
| 248 | - { get_resource: onap_sg } |
| 249 | |
| 250 | k8s_3_floating_ip: |
| 251 | type: OS::Neutron::FloatingIP |
| 252 | properties: |
| 253 | floating_network_id: { get_param: public_net_id } |
| 254 | port_id: { get_resource: k8s_3_private_port } |
| 255 | |
| 256 | k8s_3_vm: |
| 257 | type: OS::Nova::Server |
| 258 | properties: |
| 259 | name: k8s_3 |
| 260 | image: { get_param: ubuntu_1604_image } |
| 261 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 262 | key_name: { get_param: key_name } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 263 | networks: |
| 264 | - port: { get_resource: k8s_3_private_port } |
| 265 | user_data_format: RAW |
| 266 | user_data: |
| 267 | str_replace: |
| 268 | params: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 269 | __docker_proxy__: { get_param: docker_proxy } |
| 270 | __apt_proxy__: { get_param: apt_proxy } |
| 271 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 272 | template: |
| 273 | get_file: k8s_vm_entrypoint.sh |
| 274 | |
| 275 | k8s_4_private_port: |
| 276 | type: OS::Neutron::Port |
| 277 | properties: |
| 278 | network: { get_resource: oam_network } |
| 279 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 280 | security_groups: |
| 281 | - { get_resource: onap_sg } |
| 282 | |
| 283 | k8s_4_floating_ip: |
| 284 | type: OS::Neutron::FloatingIP |
| 285 | properties: |
| 286 | floating_network_id: { get_param: public_net_id } |
| 287 | port_id: { get_resource: k8s_4_private_port } |
| 288 | |
| 289 | k8s_4_vm: |
| 290 | type: OS::Nova::Server |
| 291 | properties: |
| 292 | name: k8s_4 |
| 293 | image: { get_param: ubuntu_1604_image } |
| 294 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 295 | key_name: { get_param: key_name } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 296 | networks: |
| 297 | - port: { get_resource: k8s_4_private_port } |
| 298 | user_data_format: RAW |
| 299 | user_data: |
| 300 | str_replace: |
| 301 | params: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 302 | __docker_proxy__: { get_param: docker_proxy } |
| 303 | __apt_proxy__: { get_param: apt_proxy } |
| 304 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 305 | template: |
| 306 | get_file: k8s_vm_entrypoint.sh |
| 307 | |
| 308 | k8s_5_private_port: |
| 309 | type: OS::Neutron::Port |
| 310 | properties: |
| 311 | network: { get_resource: oam_network } |
| 312 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 313 | security_groups: |
| 314 | - { get_resource: onap_sg } |
| 315 | |
| 316 | k8s_5_floating_ip: |
| 317 | type: OS::Neutron::FloatingIP |
| 318 | properties: |
| 319 | floating_network_id: { get_param: public_net_id } |
| 320 | port_id: { get_resource: k8s_5_private_port } |
| 321 | |
| 322 | k8s_5_vm: |
| 323 | type: OS::Nova::Server |
| 324 | properties: |
| 325 | name: k8s_5 |
| 326 | image: { get_param: ubuntu_1604_image } |
| 327 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 328 | key_name: { get_param: key_name } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 329 | networks: |
| 330 | - port: { get_resource: k8s_5_private_port } |
| 331 | user_data_format: RAW |
| 332 | user_data: |
| 333 | str_replace: |
| 334 | params: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 335 | __docker_proxy__: { get_param: docker_proxy } |
| 336 | __apt_proxy__: { get_param: apt_proxy } |
| 337 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 338 | template: |
| 339 | get_file: k8s_vm_entrypoint.sh |
| 340 | |
| 341 | k8s_6_private_port: |
| 342 | type: OS::Neutron::Port |
| 343 | properties: |
| 344 | network: { get_resource: oam_network } |
| 345 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 346 | security_groups: |
| 347 | - { get_resource: onap_sg } |
| 348 | |
| 349 | k8s_6_floating_ip: |
| 350 | type: OS::Neutron::FloatingIP |
| 351 | properties: |
| 352 | floating_network_id: { get_param: public_net_id } |
| 353 | port_id: { get_resource: k8s_6_private_port } |
| 354 | |
| 355 | k8s_6_vm: |
| 356 | type: OS::Nova::Server |
| 357 | properties: |
| 358 | name: k8s_6 |
| 359 | image: { get_param: ubuntu_1604_image } |
| 360 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 361 | key_name: { get_param: key_name } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 362 | networks: |
| 363 | - port: { get_resource: k8s_6_private_port } |
| 364 | user_data_format: RAW |
| 365 | user_data: |
| 366 | str_replace: |
| 367 | params: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 368 | __docker_proxy__: { get_param: docker_proxy } |
| 369 | __apt_proxy__: { get_param: apt_proxy } |
| 370 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 371 | template: |
| 372 | get_file: k8s_vm_entrypoint.sh |
| 373 | |
| 374 | k8s_7_private_port: |
| 375 | type: OS::Neutron::Port |
| 376 | properties: |
| 377 | network: { get_resource: oam_network } |
| 378 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 379 | security_groups: |
| 380 | - { get_resource: onap_sg } |
| 381 | |
| 382 | k8s_7_floating_ip: |
| 383 | type: OS::Neutron::FloatingIP |
| 384 | properties: |
| 385 | floating_network_id: { get_param: public_net_id } |
| 386 | port_id: { get_resource: k8s_7_private_port } |
| 387 | |
| 388 | k8s_7_vm: |
| 389 | type: OS::Nova::Server |
| 390 | properties: |
| 391 | name: k8s_7 |
| 392 | image: { get_param: ubuntu_1604_image } |
| 393 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 394 | key_name: { get_param: key_name } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 395 | networks: |
| 396 | - port: { get_resource: k8s_7_private_port } |
| 397 | user_data_format: RAW |
| 398 | user_data: |
| 399 | str_replace: |
| 400 | params: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 401 | __docker_proxy__: { get_param: docker_proxy } |
| 402 | __apt_proxy__: { get_param: apt_proxy } |
| 403 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | 1ff5667 | 2018-01-17 20:51:45 -0800 | [diff] [blame] | 404 | template: |
| 405 | get_file: k8s_vm_entrypoint.sh |
Gary Wu | 7b41639 | 2018-01-19 13:16:49 -0800 | [diff] [blame] | 406 | |
Gary Wu | 7d03458 | 2018-05-12 09:08:20 -0700 | [diff] [blame] | 407 | k8s_8_private_port: |
| 408 | type: OS::Neutron::Port |
| 409 | properties: |
| 410 | network: { get_resource: oam_network } |
| 411 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 412 | security_groups: |
| 413 | - { get_resource: onap_sg } |
| 414 | |
| 415 | k8s_8_floating_ip: |
| 416 | type: OS::Neutron::FloatingIP |
| 417 | properties: |
| 418 | floating_network_id: { get_param: public_net_id } |
| 419 | port_id: { get_resource: k8s_8_private_port } |
| 420 | |
| 421 | k8s_8_vm: |
| 422 | type: OS::Nova::Server |
| 423 | properties: |
| 424 | name: k8s_8 |
| 425 | image: { get_param: ubuntu_1604_image } |
| 426 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 427 | key_name: { get_param: key_name } |
Gary Wu | 7d03458 | 2018-05-12 09:08:20 -0700 | [diff] [blame] | 428 | networks: |
| 429 | - port: { get_resource: k8s_8_private_port } |
| 430 | user_data_format: RAW |
| 431 | user_data: |
| 432 | str_replace: |
| 433 | params: |
| 434 | __docker_proxy__: { get_param: docker_proxy } |
| 435 | __apt_proxy__: { get_param: apt_proxy } |
| 436 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 437 | template: |
| 438 | get_file: k8s_vm_entrypoint.sh |
| 439 | |
| 440 | k8s_9_private_port: |
| 441 | type: OS::Neutron::Port |
| 442 | properties: |
| 443 | network: { get_resource: oam_network } |
| 444 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 445 | security_groups: |
| 446 | - { get_resource: onap_sg } |
| 447 | |
| 448 | k8s_9_floating_ip: |
| 449 | type: OS::Neutron::FloatingIP |
| 450 | properties: |
| 451 | floating_network_id: { get_param: public_net_id } |
| 452 | port_id: { get_resource: k8s_9_private_port } |
| 453 | |
| 454 | k8s_9_vm: |
| 455 | type: OS::Nova::Server |
| 456 | properties: |
| 457 | name: k8s_9 |
| 458 | image: { get_param: ubuntu_1604_image } |
| 459 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 460 | key_name: { get_param: key_name } |
Gary Wu | 7d03458 | 2018-05-12 09:08:20 -0700 | [diff] [blame] | 461 | networks: |
| 462 | - port: { get_resource: k8s_9_private_port } |
| 463 | user_data_format: RAW |
| 464 | user_data: |
| 465 | str_replace: |
| 466 | params: |
| 467 | __docker_proxy__: { get_param: docker_proxy } |
| 468 | __apt_proxy__: { get_param: apt_proxy } |
| 469 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 470 | template: |
| 471 | get_file: k8s_vm_entrypoint.sh |
| 472 | |
Gary Wu | 276d5a4 | 2018-06-05 11:26:44 -0700 | [diff] [blame] | 473 | k8s_10_private_port: |
| 474 | type: OS::Neutron::Port |
| 475 | properties: |
| 476 | network: { get_resource: oam_network } |
| 477 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 478 | security_groups: |
| 479 | - { get_resource: onap_sg } |
| 480 | |
| 481 | k8s_10_floating_ip: |
| 482 | type: OS::Neutron::FloatingIP |
| 483 | properties: |
| 484 | floating_network_id: { get_param: public_net_id } |
| 485 | port_id: { get_resource: k8s_10_private_port } |
| 486 | |
| 487 | k8s_10_vm: |
| 488 | type: OS::Nova::Server |
| 489 | properties: |
| 490 | name: k8s_10 |
| 491 | image: { get_param: ubuntu_1604_image } |
| 492 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 493 | key_name: { get_param: key_name } |
Gary Wu | 276d5a4 | 2018-06-05 11:26:44 -0700 | [diff] [blame] | 494 | networks: |
| 495 | - port: { get_resource: k8s_10_private_port } |
| 496 | user_data_format: RAW |
| 497 | user_data: |
| 498 | str_replace: |
| 499 | params: |
| 500 | __docker_proxy__: { get_param: docker_proxy } |
| 501 | __apt_proxy__: { get_param: apt_proxy } |
| 502 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 503 | template: |
| 504 | get_file: k8s_vm_entrypoint.sh |
| 505 | |
| 506 | k8s_11_private_port: |
| 507 | type: OS::Neutron::Port |
| 508 | properties: |
| 509 | network: { get_resource: oam_network } |
| 510 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 511 | security_groups: |
| 512 | - { get_resource: onap_sg } |
| 513 | |
| 514 | k8s_11_floating_ip: |
| 515 | type: OS::Neutron::FloatingIP |
| 516 | properties: |
| 517 | floating_network_id: { get_param: public_net_id } |
| 518 | port_id: { get_resource: k8s_11_private_port } |
| 519 | |
| 520 | k8s_11_vm: |
| 521 | type: OS::Nova::Server |
| 522 | properties: |
| 523 | name: k8s_11 |
| 524 | image: { get_param: ubuntu_1604_image } |
| 525 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 526 | key_name: { get_param: key_name } |
Gary Wu | 276d5a4 | 2018-06-05 11:26:44 -0700 | [diff] [blame] | 527 | networks: |
| 528 | - port: { get_resource: k8s_11_private_port } |
| 529 | user_data_format: RAW |
| 530 | user_data: |
| 531 | str_replace: |
| 532 | params: |
| 533 | __docker_proxy__: { get_param: docker_proxy } |
| 534 | __apt_proxy__: { get_param: apt_proxy } |
| 535 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 536 | template: |
| 537 | get_file: k8s_vm_entrypoint.sh |
| 538 | |
Gary Wu | 14ee41d | 2018-01-19 15:03:59 -0800 | [diff] [blame] | 539 | outputs: |
Gary Wu | 6103408 | 2018-01-22 12:48:50 -0800 | [diff] [blame] | 540 | rancher_vm_ip: |
| 541 | description: The IP address of the rancher instance |
Gary Wu | 5d325d0 | 2018-02-06 21:21:31 -0800 | [diff] [blame] | 542 | value: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | 6103408 | 2018-01-22 12:48:50 -0800 | [diff] [blame] | 543 | |
Gary Wu | 36e42dd | 2018-05-03 07:29:53 -0700 | [diff] [blame] | 544 | k8s_1_vm_ip: |
| 545 | description: The IP address of the k8s_1 instance |
| 546 | value: { get_attr: [k8s_1_floating_ip, floating_ip_address] } |
| 547 | |
| 548 | k8s_2_vm_ip: |
| 549 | description: The IP address of the k8s_2 instance |
| 550 | value: { get_attr: [k8s_2_floating_ip, floating_ip_address] } |
| 551 | |
| 552 | k8s_3_vm_ip: |
| 553 | description: The IP address of the k8s_3 instance |
| 554 | value: { get_attr: [k8s_3_floating_ip, floating_ip_address] } |
| 555 | |
| 556 | k8s_4_vm_ip: |
| 557 | description: The IP address of the k8s_4 instance |
| 558 | value: { get_attr: [k8s_4_floating_ip, floating_ip_address] } |
| 559 | |
| 560 | k8s_5_vm_ip: |
| 561 | description: The IP address of the k8s_5 instance |
| 562 | value: { get_attr: [k8s_5_floating_ip, floating_ip_address] } |
| 563 | |
| 564 | k8s_6_vm_ip: |
| 565 | description: The IP address of the k8s_6 instance |
| 566 | value: { get_attr: [k8s_6_floating_ip, floating_ip_address] } |
| 567 | |
| 568 | k8s_7_vm_ip: |
| 569 | description: The IP address of the k8s_7 instance |
| 570 | value: { get_attr: [k8s_7_floating_ip, floating_ip_address] } |
| 571 | |
Gary Wu | 7d03458 | 2018-05-12 09:08:20 -0700 | [diff] [blame] | 572 | k8s_8_vm_ip: |
| 573 | description: The IP address of the k8s_8 instance |
| 574 | value: { get_attr: [k8s_8_floating_ip, floating_ip_address] } |
| 575 | |
| 576 | k8s_9_vm_ip: |
| 577 | description: The IP address of the k8s_9 instance |
| 578 | value: { get_attr: [k8s_9_floating_ip, floating_ip_address] } |
| 579 | |
Gary Wu | 276d5a4 | 2018-06-05 11:26:44 -0700 | [diff] [blame] | 580 | k8s_10_vm_ip: |
| 581 | description: The IP address of the k8s_10 instance |
| 582 | value: { get_attr: [k8s_10_floating_ip, floating_ip_address] } |
| 583 | |
| 584 | k8s_11_vm_ip: |
| 585 | description: The IP address of the k8s_11 instance |
| 586 | value: { get_attr: [k8s_11_floating_ip, floating_ip_address] } |
| 587 | |