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 | |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 34 | etcd_vm_flavor: |
| 35 | type: string |
| 36 | description: VM flavor for etcd hosts |
| 37 | |
| 38 | orch_vm_flavor: |
| 39 | type: string |
| 40 | description: VM flavor for orch hosts |
| 41 | |
Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 42 | integration_override_yaml: |
| 43 | type: string |
| 44 | description: Content for integration_override.yaml |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame] | 45 | |
Gary Wu | 87aa8b5 | 2018-08-09 08:10:24 -0700 | [diff] [blame] | 46 | integration_gerrit_branch: |
Gary Wu | 81836d2 | 2018-06-22 13:48:50 -0700 | [diff] [blame] | 47 | type: string |
| 48 | default: "master" |
| 49 | |
Gary Wu | 87aa8b5 | 2018-08-09 08:10:24 -0700 | [diff] [blame] | 50 | integration_gerrit_refspec: |
| 51 | type: string |
| 52 | default: "refs/heads/master" |
| 53 | |
| 54 | oom_gerrit_branch: |
| 55 | type: string |
| 56 | default: "master" |
| 57 | |
| 58 | oom_gerrit_refspec: |
Gary Wu | 81836d2 | 2018-06-22 13:48:50 -0700 | [diff] [blame] | 59 | type: string |
| 60 | default: "refs/heads/master" |
| 61 | |
| 62 | docker_manifest: |
| 63 | type: string |
Gary Wu | 87aa8b5 | 2018-08-09 08:10:24 -0700 | [diff] [blame] | 64 | default: "" |
Gary Wu | 81836d2 | 2018-06-22 13:48:50 -0700 | [diff] [blame] | 65 | |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 66 | key_name: |
| 67 | type: string |
| 68 | default: "onap_key" |
| 69 | |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 70 | docker_version: |
| 71 | type: string |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 72 | default: "17.03.2" |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 73 | |
| 74 | rancher_version: |
| 75 | type: string |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 76 | default: "1.6.22" |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 77 | |
| 78 | rancher_agent_version: |
| 79 | type: string |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 80 | default: "1.2.11" |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 81 | |
| 82 | kubectl_version: |
| 83 | type: string |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 84 | default: "1.11.2" |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 85 | |
| 86 | helm_version: |
| 87 | type: string |
| 88 | default: "2.9.1" |
| 89 | |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 90 | resources: |
Gary Wu | c98156d | 2018-01-18 12:03:26 -0800 | [diff] [blame] | 91 | random-str: |
| 92 | type: OS::Heat::RandomString |
| 93 | properties: |
| 94 | length: 4 |
| 95 | |
Gary Wu | bc11e5d | 2018-02-07 10:23:27 -0800 | [diff] [blame] | 96 | # ONAP security group |
| 97 | onap_sg: |
| 98 | type: OS::Neutron::SecurityGroup |
| 99 | properties: |
| 100 | name: |
| 101 | str_replace: |
| 102 | template: base_rand |
| 103 | params: |
| 104 | base: onap_sg |
| 105 | rand: { get_resource: random-str } |
| 106 | description: security group used by ONAP |
| 107 | rules: |
| 108 | # All egress traffic |
| 109 | - direction: egress |
| 110 | ethertype: IPv4 |
| 111 | - direction: egress |
| 112 | ethertype: IPv6 |
| 113 | # ingress traffic |
| 114 | # ICMP |
| 115 | - protocol: icmp |
| 116 | - protocol: udp |
| 117 | port_range_min: 1 |
| 118 | port_range_max: 65535 |
| 119 | - protocol: tcp |
| 120 | port_range_min: 1 |
| 121 | port_range_max: 65535 |
| 122 | |
| 123 | |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 124 | # ONAP management private network |
| 125 | oam_network: |
| 126 | type: OS::Neutron::Net |
| 127 | properties: |
| 128 | name: |
| 129 | str_replace: |
| 130 | template: oam_network_rand |
| 131 | params: |
| 132 | rand: { get_resource: random-str } |
| 133 | |
| 134 | oam_subnet: |
| 135 | type: OS::Neutron::Subnet |
| 136 | properties: |
| 137 | name: |
| 138 | str_replace: |
| 139 | template: oam_network_rand |
| 140 | params: |
| 141 | rand: { get_resource: random-str } |
| 142 | network_id: { get_resource: oam_network } |
| 143 | cidr: { get_param: oam_network_cidr } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 144 | dns_nameservers: [ "8.8.8.8" ] |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 145 | |
| 146 | router: |
| 147 | type: OS::Neutron::Router |
| 148 | properties: |
eHanan | 97b7a9c | 2018-09-05 14:09:19 +0100 | [diff] [blame] | 149 | name: |
| 150 | list_join: ['-', [{ get_param: 'OS::stack_name' }, 'router']] |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 151 | external_gateway_info: |
| 152 | network: { get_param: public_net_id } |
| 153 | |
| 154 | router_interface: |
| 155 | type: OS::Neutron::RouterInterface |
| 156 | properties: |
| 157 | router_id: { get_resource: router } |
| 158 | subnet_id: { get_resource: oam_subnet } |
| 159 | |
Gary Wu | 374498a | 2018-02-06 17:31:04 -0800 | [diff] [blame] | 160 | rancher_private_port: |
| 161 | type: OS::Neutron::Port |
| 162 | properties: |
| 163 | network: { get_resource: oam_network } |
| 164 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
Gary Wu | bc11e5d | 2018-02-07 10:23:27 -0800 | [diff] [blame] | 165 | security_groups: |
| 166 | - { get_resource: onap_sg } |
Gary Wu | 374498a | 2018-02-06 17:31:04 -0800 | [diff] [blame] | 167 | |
| 168 | rancher_floating_ip: |
| 169 | type: OS::Neutron::FloatingIP |
| 170 | properties: |
| 171 | floating_network_id: { get_param: public_net_id } |
| 172 | port_id: { get_resource: rancher_private_port } |
| 173 | |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 174 | rancher_vm: |
| 175 | type: OS::Nova::Server |
| 176 | properties: |
eHanan | 97b7a9c | 2018-09-05 14:09:19 +0100 | [diff] [blame] | 177 | name: |
| 178 | list_join: ['-', [{ get_param: 'OS::stack_name' }, 'rancher']] |
Gary Wu | 558ac6e | 2018-01-19 14:53:12 -0800 | [diff] [blame] | 179 | image: { get_param: ubuntu_1604_image } |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame] | 180 | flavor: { get_param: rancher_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 181 | key_name: { get_param: key_name } |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 182 | networks: |
Gary Wu | 374498a | 2018-02-06 17:31:04 -0800 | [diff] [blame] | 183 | - port: { get_resource: rancher_private_port } |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 184 | user_data_format: RAW |
| 185 | user_data: |
| 186 | str_replace: |
Gary Wu | 1ff5667 | 2018-01-17 20:51:45 -0800 | [diff] [blame] | 187 | template: |
| 188 | get_file: rancher_vm_entrypoint.sh |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 189 | params: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 190 | __docker_proxy__: { get_param: docker_proxy } |
| 191 | __apt_proxy__: { get_param: apt_proxy } |
| 192 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame] | 193 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 194 | __integration_override_yaml__: { get_param: integration_override_yaml } |
Gary Wu | 87aa8b5 | 2018-08-09 08:10:24 -0700 | [diff] [blame] | 195 | __integration_gerrit_branch__: { get_param: integration_gerrit_branch } |
| 196 | __integration_gerrit_refspec__: { get_param: integration_gerrit_refspec } |
| 197 | __oom_gerrit_branch__: { get_param: oom_gerrit_branch } |
| 198 | __oom_gerrit_refspec__: { get_param: oom_gerrit_refspec } |
Gary Wu | 81836d2 | 2018-06-22 13:48:50 -0700 | [diff] [blame] | 199 | __docker_manifest__: { get_param: docker_manifest } |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 200 | __docker_version__: { get_param: docker_version } |
| 201 | __rancher_version__: { get_param: rancher_version } |
| 202 | __rancher_agent_version__: { get_param: rancher_agent_version } |
| 203 | __kubectl_version__: { get_param: kubectl_version } |
| 204 | __helm_version__: { get_param: helm_version } |
Gary Wu | 978171e | 2018-07-24 11:56:01 -0700 | [diff] [blame] | 205 | __public_net_id__: { get_param: public_net_id } |
| 206 | __oam_network_cidr__: { get_param: oam_network_cidr } |
Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 207 | __oam_network_id__: { get_resource: oam_network } |
| 208 | __oam_subnet_id__: { get_resource: oam_subnet } |
Gary Wu | 17440fe | 2018-10-22 15:12:07 -0700 | [diff] [blame] | 209 | __sec_group__: { get_resource: onap_sg } |
Gary Wu | 0a67162 | 2018-05-14 12:59:03 -0700 | [diff] [blame] | 210 | __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] | 211 | __k8s_vm_ips__: [ |
| 212 | get_attr: [k8s_1_floating_ip, floating_ip_address], |
| 213 | get_attr: [k8s_2_floating_ip, floating_ip_address], |
| 214 | get_attr: [k8s_3_floating_ip, floating_ip_address], |
| 215 | get_attr: [k8s_4_floating_ip, floating_ip_address], |
Gary Wu | 4d2cfb6 | 2018-09-07 09:05:33 -0700 | [diff] [blame] | 216 | get_attr: [k8s_5_floating_ip, floating_ip_address], |
Gary Wu | 0bf673e | 2018-09-18 08:24:33 -0700 | [diff] [blame] | 217 | get_attr: [k8s_6_floating_ip, floating_ip_address], |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 218 | get_attr: [k8s_7_floating_ip, floating_ip_address], |
| 219 | get_attr: [k8s_8_floating_ip, floating_ip_address], |
| 220 | get_attr: [k8s_9_floating_ip, floating_ip_address], |
| 221 | get_attr: [k8s_10_floating_ip, floating_ip_address], |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 222 | ] |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame] | 223 | __k8s_private_ips__: [ |
| 224 | get_attr: [k8s_1_floating_ip, fixed_ip_address], |
| 225 | get_attr: [k8s_2_floating_ip, fixed_ip_address], |
| 226 | get_attr: [k8s_3_floating_ip, fixed_ip_address], |
| 227 | get_attr: [k8s_4_floating_ip, fixed_ip_address], |
Gary Wu | 4d2cfb6 | 2018-09-07 09:05:33 -0700 | [diff] [blame] | 228 | get_attr: [k8s_5_floating_ip, fixed_ip_address], |
Gary Wu | 0bf673e | 2018-09-18 08:24:33 -0700 | [diff] [blame] | 229 | get_attr: [k8s_6_floating_ip, fixed_ip_address], |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 230 | get_attr: [k8s_7_floating_ip, fixed_ip_address], |
| 231 | get_attr: [k8s_8_floating_ip, fixed_ip_address], |
| 232 | get_attr: [k8s_9_floating_ip, fixed_ip_address], |
| 233 | get_attr: [k8s_10_floating_ip, fixed_ip_address], |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame] | 234 | ] |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 235 | k8s_1_private_port: |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 236 | type: OS::Neutron::Port |
| 237 | properties: |
| 238 | network: { get_resource: oam_network } |
| 239 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
Gary Wu | bc11e5d | 2018-02-07 10:23:27 -0800 | [diff] [blame] | 240 | security_groups: |
| 241 | - { get_resource: onap_sg } |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 242 | |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 243 | k8s_1_floating_ip: |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 244 | type: OS::Neutron::FloatingIP |
| 245 | properties: |
| 246 | floating_network_id: { get_param: public_net_id } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 247 | port_id: { get_resource: k8s_1_private_port } |
Gary Wu | 52dfdcb | 2018-01-25 11:02:48 -0800 | [diff] [blame] | 248 | |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 249 | k8s_1_vm: |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 250 | type: OS::Nova::Server |
| 251 | properties: |
eHanan | 97b7a9c | 2018-09-05 14:09:19 +0100 | [diff] [blame] | 252 | name: |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 253 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '1' ] ] |
Gary Wu | 558ac6e | 2018-01-19 14:53:12 -0800 | [diff] [blame] | 254 | image: { get_param: ubuntu_1604_image } |
Gary Wu | 60dd0d8 | 2018-01-18 14:54:47 -0800 | [diff] [blame] | 255 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 256 | key_name: { get_param: key_name } |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 257 | networks: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 258 | - port: { get_resource: k8s_1_private_port } |
Gary Wu | ccd529b | 2018-01-16 18:31:01 -0800 | [diff] [blame] | 259 | user_data_format: RAW |
| 260 | user_data: |
| 261 | str_replace: |
| 262 | params: |
| 263 | __docker_proxy__: { get_param: docker_proxy } |
| 264 | __apt_proxy__: { get_param: apt_proxy } |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 265 | __docker_version__: { get_param: docker_version } |
Gary Wu | 5d325d0 | 2018-02-06 21:21:31 -0800 | [diff] [blame] | 266 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame] | 267 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 268 | __host_label__: 'compute' |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 269 | template: |
| 270 | get_file: k8s_vm_entrypoint.sh |
| 271 | |
| 272 | k8s_2_private_port: |
| 273 | type: OS::Neutron::Port |
| 274 | properties: |
| 275 | network: { get_resource: oam_network } |
| 276 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 277 | security_groups: |
| 278 | - { get_resource: onap_sg } |
| 279 | |
| 280 | k8s_2_floating_ip: |
| 281 | type: OS::Neutron::FloatingIP |
| 282 | properties: |
| 283 | floating_network_id: { get_param: public_net_id } |
| 284 | port_id: { get_resource: k8s_2_private_port } |
| 285 | |
| 286 | k8s_2_vm: |
| 287 | type: OS::Nova::Server |
| 288 | properties: |
eHanan | 97b7a9c | 2018-09-05 14:09:19 +0100 | [diff] [blame] | 289 | name: |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 290 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '2' ] ] |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 291 | image: { get_param: ubuntu_1604_image } |
| 292 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 293 | key_name: { get_param: key_name } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 294 | networks: |
| 295 | - port: { get_resource: k8s_2_private_port } |
| 296 | user_data_format: RAW |
| 297 | user_data: |
| 298 | str_replace: |
| 299 | params: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 300 | __docker_proxy__: { get_param: docker_proxy } |
| 301 | __apt_proxy__: { get_param: apt_proxy } |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 302 | __docker_version__: { get_param: docker_version } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 303 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame] | 304 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 305 | __host_label__: 'compute' |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 306 | template: |
| 307 | get_file: k8s_vm_entrypoint.sh |
| 308 | |
| 309 | k8s_3_private_port: |
| 310 | type: OS::Neutron::Port |
| 311 | properties: |
| 312 | network: { get_resource: oam_network } |
| 313 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 314 | security_groups: |
| 315 | - { get_resource: onap_sg } |
| 316 | |
| 317 | k8s_3_floating_ip: |
| 318 | type: OS::Neutron::FloatingIP |
| 319 | properties: |
| 320 | floating_network_id: { get_param: public_net_id } |
| 321 | port_id: { get_resource: k8s_3_private_port } |
| 322 | |
| 323 | k8s_3_vm: |
| 324 | type: OS::Nova::Server |
| 325 | properties: |
eHanan | 97b7a9c | 2018-09-05 14:09:19 +0100 | [diff] [blame] | 326 | name: |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 327 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '3' ] ] |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 328 | image: { get_param: ubuntu_1604_image } |
| 329 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 330 | key_name: { get_param: key_name } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 331 | networks: |
| 332 | - port: { get_resource: k8s_3_private_port } |
| 333 | user_data_format: RAW |
| 334 | user_data: |
| 335 | str_replace: |
| 336 | params: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 337 | __docker_proxy__: { get_param: docker_proxy } |
| 338 | __apt_proxy__: { get_param: apt_proxy } |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 339 | __docker_version__: { get_param: docker_version } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 340 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame] | 341 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 342 | __host_label__: 'compute' |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 343 | template: |
| 344 | get_file: k8s_vm_entrypoint.sh |
| 345 | |
| 346 | k8s_4_private_port: |
| 347 | type: OS::Neutron::Port |
| 348 | properties: |
| 349 | network: { get_resource: oam_network } |
| 350 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 351 | security_groups: |
| 352 | - { get_resource: onap_sg } |
| 353 | |
| 354 | k8s_4_floating_ip: |
| 355 | type: OS::Neutron::FloatingIP |
| 356 | properties: |
| 357 | floating_network_id: { get_param: public_net_id } |
| 358 | port_id: { get_resource: k8s_4_private_port } |
| 359 | |
| 360 | k8s_4_vm: |
| 361 | type: OS::Nova::Server |
| 362 | properties: |
eHanan | 97b7a9c | 2018-09-05 14:09:19 +0100 | [diff] [blame] | 363 | name: |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 364 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '4' ] ] |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 365 | image: { get_param: ubuntu_1604_image } |
| 366 | flavor: { get_param: k8s_vm_flavor } |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 367 | key_name: { get_param: key_name } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 368 | networks: |
| 369 | - port: { get_resource: k8s_4_private_port } |
| 370 | user_data_format: RAW |
| 371 | user_data: |
| 372 | str_replace: |
| 373 | params: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 374 | __docker_proxy__: { get_param: docker_proxy } |
| 375 | __apt_proxy__: { get_param: apt_proxy } |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 376 | __docker_version__: { get_param: docker_version } |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 377 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | ad51372 | 2018-07-26 13:08:47 -0700 | [diff] [blame] | 378 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 379 | __host_label__: 'compute' |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 380 | template: |
| 381 | get_file: k8s_vm_entrypoint.sh |
| 382 | |
Gary Wu | 4d2cfb6 | 2018-09-07 09:05:33 -0700 | [diff] [blame] | 383 | k8s_5_private_port: |
| 384 | type: OS::Neutron::Port |
| 385 | properties: |
| 386 | network: { get_resource: oam_network } |
| 387 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 388 | security_groups: |
| 389 | - { get_resource: onap_sg } |
| 390 | |
| 391 | k8s_5_floating_ip: |
| 392 | type: OS::Neutron::FloatingIP |
| 393 | properties: |
| 394 | floating_network_id: { get_param: public_net_id } |
| 395 | port_id: { get_resource: k8s_5_private_port } |
| 396 | |
| 397 | k8s_5_vm: |
| 398 | type: OS::Nova::Server |
| 399 | properties: |
eHanan | 97b7a9c | 2018-09-05 14:09:19 +0100 | [diff] [blame] | 400 | name: |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 401 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '5' ] ] |
Gary Wu | 4d2cfb6 | 2018-09-07 09:05:33 -0700 | [diff] [blame] | 402 | image: { get_param: ubuntu_1604_image } |
| 403 | flavor: { get_param: k8s_vm_flavor } |
| 404 | key_name: { get_param: key_name } |
| 405 | networks: |
| 406 | - port: { get_resource: k8s_5_private_port } |
| 407 | user_data_format: RAW |
| 408 | user_data: |
| 409 | str_replace: |
| 410 | params: |
| 411 | __docker_proxy__: { get_param: docker_proxy } |
| 412 | __apt_proxy__: { get_param: apt_proxy } |
| 413 | __docker_version__: { get_param: docker_version } |
| 414 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 415 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 416 | __host_label__: 'compute' |
Gary Wu | 4d2cfb6 | 2018-09-07 09:05:33 -0700 | [diff] [blame] | 417 | template: |
| 418 | get_file: k8s_vm_entrypoint.sh |
| 419 | |
Gary Wu | 0bf673e | 2018-09-18 08:24:33 -0700 | [diff] [blame] | 420 | k8s_6_private_port: |
| 421 | type: OS::Neutron::Port |
| 422 | properties: |
| 423 | network: { get_resource: oam_network } |
| 424 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 425 | security_groups: |
| 426 | - { get_resource: onap_sg } |
| 427 | |
| 428 | k8s_6_floating_ip: |
| 429 | type: OS::Neutron::FloatingIP |
| 430 | properties: |
| 431 | floating_network_id: { get_param: public_net_id } |
| 432 | port_id: { get_resource: k8s_6_private_port } |
| 433 | |
| 434 | k8s_6_vm: |
| 435 | type: OS::Nova::Server |
| 436 | properties: |
| 437 | name: |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 438 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '6' ] ] |
Gary Wu | 0bf673e | 2018-09-18 08:24:33 -0700 | [diff] [blame] | 439 | image: { get_param: ubuntu_1604_image } |
| 440 | flavor: { get_param: k8s_vm_flavor } |
| 441 | key_name: { get_param: key_name } |
| 442 | networks: |
| 443 | - port: { get_resource: k8s_6_private_port } |
| 444 | user_data_format: RAW |
| 445 | user_data: |
| 446 | str_replace: |
| 447 | params: |
| 448 | __docker_proxy__: { get_param: docker_proxy } |
| 449 | __apt_proxy__: { get_param: apt_proxy } |
| 450 | __docker_version__: { get_param: docker_version } |
| 451 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 452 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 453 | __host_label__: 'compute' |
Gary Wu | 0bf673e | 2018-09-18 08:24:33 -0700 | [diff] [blame] | 454 | template: |
| 455 | get_file: k8s_vm_entrypoint.sh |
| 456 | |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 457 | k8s_7_private_port: |
| 458 | type: OS::Neutron::Port |
| 459 | properties: |
| 460 | network: { get_resource: oam_network } |
| 461 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 462 | security_groups: |
| 463 | - { get_resource: onap_sg } |
| 464 | |
| 465 | k8s_7_floating_ip: |
| 466 | type: OS::Neutron::FloatingIP |
| 467 | properties: |
| 468 | floating_network_id: { get_param: public_net_id } |
| 469 | port_id: { get_resource: k8s_7_private_port } |
| 470 | |
| 471 | k8s_7_vm: |
| 472 | type: OS::Nova::Server |
| 473 | properties: |
| 474 | name: |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 475 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '7' ] ] |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 476 | image: { get_param: ubuntu_1604_image } |
| 477 | flavor: { get_param: k8s_vm_flavor } |
| 478 | key_name: { get_param: key_name } |
| 479 | networks: |
| 480 | - port: { get_resource: k8s_7_private_port } |
| 481 | user_data_format: RAW |
| 482 | user_data: |
| 483 | str_replace: |
| 484 | params: |
| 485 | __docker_proxy__: { get_param: docker_proxy } |
| 486 | __apt_proxy__: { get_param: apt_proxy } |
| 487 | __docker_version__: { get_param: docker_version } |
| 488 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 489 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 490 | __host_label__: 'compute' |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 491 | template: |
| 492 | get_file: k8s_vm_entrypoint.sh |
| 493 | |
| 494 | k8s_8_private_port: |
| 495 | type: OS::Neutron::Port |
| 496 | properties: |
| 497 | network: { get_resource: oam_network } |
| 498 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 499 | security_groups: |
| 500 | - { get_resource: onap_sg } |
| 501 | |
| 502 | k8s_8_floating_ip: |
| 503 | type: OS::Neutron::FloatingIP |
| 504 | properties: |
| 505 | floating_network_id: { get_param: public_net_id } |
| 506 | port_id: { get_resource: k8s_8_private_port } |
| 507 | |
| 508 | k8s_8_vm: |
| 509 | type: OS::Nova::Server |
| 510 | properties: |
| 511 | name: |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 512 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '8' ] ] |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 513 | image: { get_param: ubuntu_1604_image } |
| 514 | flavor: { get_param: k8s_vm_flavor } |
| 515 | key_name: { get_param: key_name } |
| 516 | networks: |
| 517 | - port: { get_resource: k8s_8_private_port } |
| 518 | user_data_format: RAW |
| 519 | user_data: |
| 520 | str_replace: |
| 521 | params: |
| 522 | __docker_proxy__: { get_param: docker_proxy } |
| 523 | __apt_proxy__: { get_param: apt_proxy } |
| 524 | __docker_version__: { get_param: docker_version } |
| 525 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 526 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 527 | __host_label__: 'compute' |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 528 | template: |
| 529 | get_file: k8s_vm_entrypoint.sh |
| 530 | |
| 531 | k8s_9_private_port: |
| 532 | type: OS::Neutron::Port |
| 533 | properties: |
| 534 | network: { get_resource: oam_network } |
| 535 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 536 | security_groups: |
| 537 | - { get_resource: onap_sg } |
| 538 | |
| 539 | k8s_9_floating_ip: |
| 540 | type: OS::Neutron::FloatingIP |
| 541 | properties: |
| 542 | floating_network_id: { get_param: public_net_id } |
| 543 | port_id: { get_resource: k8s_9_private_port } |
| 544 | |
| 545 | k8s_9_vm: |
| 546 | type: OS::Nova::Server |
| 547 | properties: |
| 548 | name: |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 549 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '9' ] ] |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 550 | image: { get_param: ubuntu_1604_image } |
| 551 | flavor: { get_param: k8s_vm_flavor } |
| 552 | key_name: { get_param: key_name } |
| 553 | networks: |
| 554 | - port: { get_resource: k8s_9_private_port } |
| 555 | user_data_format: RAW |
| 556 | user_data: |
| 557 | str_replace: |
| 558 | params: |
| 559 | __docker_proxy__: { get_param: docker_proxy } |
| 560 | __apt_proxy__: { get_param: apt_proxy } |
| 561 | __docker_version__: { get_param: docker_version } |
| 562 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 563 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 564 | __host_label__: 'compute' |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 565 | template: |
| 566 | get_file: k8s_vm_entrypoint.sh |
| 567 | |
| 568 | k8s_10_private_port: |
| 569 | type: OS::Neutron::Port |
| 570 | properties: |
| 571 | network: { get_resource: oam_network } |
| 572 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 573 | security_groups: |
| 574 | - { get_resource: onap_sg } |
| 575 | |
| 576 | k8s_10_floating_ip: |
| 577 | type: OS::Neutron::FloatingIP |
| 578 | properties: |
| 579 | floating_network_id: { get_param: public_net_id } |
| 580 | port_id: { get_resource: k8s_10_private_port } |
| 581 | |
| 582 | k8s_10_vm: |
| 583 | type: OS::Nova::Server |
| 584 | properties: |
| 585 | name: |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 586 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'k8s', '10' ] ] |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 587 | image: { get_param: ubuntu_1604_image } |
| 588 | flavor: { get_param: k8s_vm_flavor } |
| 589 | key_name: { get_param: key_name } |
| 590 | networks: |
| 591 | - port: { get_resource: k8s_10_private_port } |
| 592 | user_data_format: RAW |
| 593 | user_data: |
| 594 | str_replace: |
| 595 | params: |
| 596 | __docker_proxy__: { get_param: docker_proxy } |
| 597 | __apt_proxy__: { get_param: apt_proxy } |
| 598 | __docker_version__: { get_param: docker_version } |
| 599 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 600 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 601 | __host_label__: 'compute' |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 602 | template: |
| 603 | get_file: k8s_vm_entrypoint.sh |
| 604 | |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 605 | etcd_1_private_port: |
Gary Wu | 61db1be | 2018-09-25 08:12:33 -0700 | [diff] [blame] | 606 | type: OS::Neutron::Port |
| 607 | properties: |
| 608 | network: { get_resource: oam_network } |
| 609 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 610 | security_groups: |
| 611 | - { get_resource: onap_sg } |
| 612 | |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 613 | etcd_1_floating_ip: |
Gary Wu | 61db1be | 2018-09-25 08:12:33 -0700 | [diff] [blame] | 614 | type: OS::Neutron::FloatingIP |
| 615 | properties: |
| 616 | floating_network_id: { get_param: public_net_id } |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 617 | port_id: { get_resource: etcd_1_private_port } |
Gary Wu | 61db1be | 2018-09-25 08:12:33 -0700 | [diff] [blame] | 618 | |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 619 | etcd_1_vm: |
Gary Wu | 61db1be | 2018-09-25 08:12:33 -0700 | [diff] [blame] | 620 | type: OS::Nova::Server |
| 621 | properties: |
| 622 | name: |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 623 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'etcd', '1' ] ] |
Gary Wu | 61db1be | 2018-09-25 08:12:33 -0700 | [diff] [blame] | 624 | image: { get_param: ubuntu_1604_image } |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 625 | flavor: { get_param: etcd_vm_flavor } |
Gary Wu | 61db1be | 2018-09-25 08:12:33 -0700 | [diff] [blame] | 626 | key_name: { get_param: key_name } |
| 627 | networks: |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 628 | - port: { get_resource: etcd_1_private_port } |
Gary Wu | 61db1be | 2018-09-25 08:12:33 -0700 | [diff] [blame] | 629 | user_data_format: RAW |
| 630 | user_data: |
| 631 | str_replace: |
| 632 | params: |
| 633 | __docker_proxy__: { get_param: docker_proxy } |
| 634 | __apt_proxy__: { get_param: apt_proxy } |
| 635 | __docker_version__: { get_param: docker_version } |
| 636 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 637 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 638 | __host_label__: 'etcd' |
| 639 | template: |
| 640 | get_file: k8s_vm_entrypoint.sh |
| 641 | |
| 642 | etcd_2_private_port: |
| 643 | type: OS::Neutron::Port |
| 644 | properties: |
| 645 | network: { get_resource: oam_network } |
| 646 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 647 | security_groups: |
| 648 | - { get_resource: onap_sg } |
| 649 | |
| 650 | etcd_2_floating_ip: |
| 651 | type: OS::Neutron::FloatingIP |
| 652 | properties: |
| 653 | floating_network_id: { get_param: public_net_id } |
| 654 | port_id: { get_resource: etcd_2_private_port } |
| 655 | |
| 656 | etcd_2_vm: |
| 657 | type: OS::Nova::Server |
| 658 | properties: |
| 659 | name: |
| 660 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'etcd', '2' ] ] |
| 661 | image: { get_param: ubuntu_1604_image } |
| 662 | flavor: { get_param: etcd_vm_flavor } |
| 663 | key_name: { get_param: key_name } |
| 664 | networks: |
| 665 | - port: { get_resource: etcd_2_private_port } |
| 666 | user_data_format: RAW |
| 667 | user_data: |
| 668 | str_replace: |
| 669 | params: |
| 670 | __docker_proxy__: { get_param: docker_proxy } |
| 671 | __apt_proxy__: { get_param: apt_proxy } |
| 672 | __docker_version__: { get_param: docker_version } |
| 673 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 674 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
| 675 | __host_label__: 'etcd' |
| 676 | template: |
| 677 | get_file: k8s_vm_entrypoint.sh |
| 678 | |
| 679 | etcd_3_private_port: |
| 680 | type: OS::Neutron::Port |
| 681 | properties: |
| 682 | network: { get_resource: oam_network } |
| 683 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 684 | security_groups: |
| 685 | - { get_resource: onap_sg } |
| 686 | |
| 687 | etcd_3_floating_ip: |
| 688 | type: OS::Neutron::FloatingIP |
| 689 | properties: |
| 690 | floating_network_id: { get_param: public_net_id } |
| 691 | port_id: { get_resource: etcd_3_private_port } |
| 692 | |
| 693 | etcd_3_vm: |
| 694 | type: OS::Nova::Server |
| 695 | properties: |
| 696 | name: |
| 697 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'etcd', '3' ] ] |
| 698 | image: { get_param: ubuntu_1604_image } |
| 699 | flavor: { get_param: etcd_vm_flavor } |
| 700 | key_name: { get_param: key_name } |
| 701 | networks: |
| 702 | - port: { get_resource: etcd_3_private_port } |
| 703 | user_data_format: RAW |
| 704 | user_data: |
| 705 | str_replace: |
| 706 | params: |
| 707 | __docker_proxy__: { get_param: docker_proxy } |
| 708 | __apt_proxy__: { get_param: apt_proxy } |
| 709 | __docker_version__: { get_param: docker_version } |
| 710 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 711 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
| 712 | __host_label__: 'etcd' |
| 713 | template: |
| 714 | get_file: k8s_vm_entrypoint.sh |
| 715 | |
Gary Wu | 89f6723 | 2018-11-01 13:45:31 -0700 | [diff] [blame] | 716 | orch_1_private_port: |
| 717 | type: OS::Neutron::Port |
| 718 | properties: |
| 719 | network: { get_resource: oam_network } |
| 720 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 721 | security_groups: |
| 722 | - { get_resource: onap_sg } |
| 723 | |
| 724 | orch_1_floating_ip: |
| 725 | type: OS::Neutron::FloatingIP |
| 726 | properties: |
| 727 | floating_network_id: { get_param: public_net_id } |
| 728 | port_id: { get_resource: orch_1_private_port } |
| 729 | |
| 730 | orch_1_vm: |
| 731 | type: OS::Nova::Server |
| 732 | properties: |
| 733 | name: |
| 734 | list_join: ['-', [ { get_param: 'OS::stack_name' }, 'orch', '1' ] ] |
| 735 | image: { get_param: ubuntu_1604_image } |
| 736 | flavor: { get_param: orch_vm_flavor } |
| 737 | key_name: { get_param: key_name } |
| 738 | networks: |
| 739 | - port: { get_resource: orch_1_private_port } |
| 740 | user_data_format: RAW |
| 741 | user_data: |
| 742 | str_replace: |
| 743 | params: |
| 744 | __docker_proxy__: { get_param: docker_proxy } |
| 745 | __apt_proxy__: { get_param: apt_proxy } |
| 746 | __docker_version__: { get_param: docker_version } |
| 747 | __rancher_ip_addr__: { get_attr: [rancher_floating_ip, floating_ip_address] } |
| 748 | __rancher_private_ip_addr__: { get_attr: [rancher_floating_ip, fixed_ip_address] } |
| 749 | __host_label__: 'orchestration' |
| 750 | template: |
| 751 | get_file: k8s_vm_entrypoint.sh |
| 752 | |
Gary Wu | 14ee41d | 2018-01-19 15:03:59 -0800 | [diff] [blame] | 753 | outputs: |
Gary Wu | 6103408 | 2018-01-22 12:48:50 -0800 | [diff] [blame] | 754 | rancher_vm_ip: |
| 755 | description: The IP address of the rancher instance |
Gary Wu | 5d325d0 | 2018-02-06 21:21:31 -0800 | [diff] [blame] | 756 | value: { get_attr: [rancher_floating_ip, floating_ip_address] } |
Gary Wu | 6103408 | 2018-01-22 12:48:50 -0800 | [diff] [blame] | 757 | |
Gary Wu | 36e42dd | 2018-05-03 07:29:53 -0700 | [diff] [blame] | 758 | k8s_1_vm_ip: |
| 759 | description: The IP address of the k8s_1 instance |
| 760 | value: { get_attr: [k8s_1_floating_ip, floating_ip_address] } |
| 761 | |
| 762 | k8s_2_vm_ip: |
| 763 | description: The IP address of the k8s_2 instance |
| 764 | value: { get_attr: [k8s_2_floating_ip, floating_ip_address] } |
| 765 | |
| 766 | k8s_3_vm_ip: |
| 767 | description: The IP address of the k8s_3 instance |
| 768 | value: { get_attr: [k8s_3_floating_ip, floating_ip_address] } |
| 769 | |
| 770 | k8s_4_vm_ip: |
| 771 | description: The IP address of the k8s_4 instance |
| 772 | value: { get_attr: [k8s_4_floating_ip, floating_ip_address] } |
| 773 | |
Gary Wu | 4d2cfb6 | 2018-09-07 09:05:33 -0700 | [diff] [blame] | 774 | k8s_5_vm_ip: |
| 775 | description: The IP address of the k8s_5 instance |
| 776 | value: { get_attr: [k8s_5_floating_ip, floating_ip_address] } |
| 777 | |
Gary Wu | 0bf673e | 2018-09-18 08:24:33 -0700 | [diff] [blame] | 778 | k8s_6_vm_ip: |
| 779 | description: The IP address of the k8s_6 instance |
| 780 | value: { get_attr: [k8s_6_floating_ip, floating_ip_address] } |
| 781 | |
Gary Wu | dc2351b | 2018-09-24 13:37:53 -0700 | [diff] [blame] | 782 | k8s_7_vm_ip: |
| 783 | description: The IP address of the k8s_7 instance |
| 784 | value: { get_attr: [k8s_7_floating_ip, floating_ip_address] } |
| 785 | |
| 786 | k8s_8_vm_ip: |
| 787 | description: The IP address of the k8s_8 instance |
| 788 | value: { get_attr: [k8s_8_floating_ip, floating_ip_address] } |
| 789 | |
| 790 | k8s_9_vm_ip: |
| 791 | description: The IP address of the k8s_9 instance |
| 792 | value: { get_attr: [k8s_9_floating_ip, floating_ip_address] } |
| 793 | |
| 794 | k8s_10_vm_ip: |
| 795 | description: The IP address of the k8s_10 instance |
| 796 | value: { get_attr: [k8s_10_floating_ip, floating_ip_address] } |
| 797 | |