Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 1 | heat_template_version: 2015-10-15 |
| 2 | description: ONAP on Kubernetes using OOM |
| 3 | |
| 4 | parameters: |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 5 | docker_proxy: |
| 6 | type: string |
| 7 | |
| 8 | apt_proxy: |
| 9 | type: string |
| 10 | |
| 11 | public_net_id: |
| 12 | type: string |
| 13 | description: The ID of the Public network for floating IP address allocation |
| 14 | |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 15 | oam_network_cidr: |
| 16 | type: string |
| 17 | description: CIDR of the OAM ONAP network |
| 18 | |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 19 | ubuntu_1604_image: |
| 20 | type: string |
| 21 | description: Name of the Ubuntu 16.04 image |
| 22 | |
| 23 | rancher_vm_flavor: |
| 24 | type: string |
Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 25 | description: VM flavor for Rancher |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 26 | |
| 27 | k8s_vm_flavor: |
| 28 | type: string |
Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 29 | description: VM flavor for k8s hosts |
| 30 | |
| 31 | integration_override_yaml: |
| 32 | type: string |
| 33 | description: Content for integration_override.yaml |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 34 | |
| 35 | resources: |
| 36 | random-str: |
| 37 | type: OS::Heat::RandomString |
| 38 | properties: |
| 39 | length: 4 |
| 40 | |
| 41 | # ONAP security group |
| 42 | onap_sg: |
| 43 | type: OS::Neutron::SecurityGroup |
| 44 | properties: |
| 45 | name: |
| 46 | str_replace: |
| 47 | template: base_rand |
| 48 | params: |
| 49 | base: onap_sg |
| 50 | rand: { get_resource: random-str } |
| 51 | description: security group used by ONAP |
| 52 | rules: |
| 53 | # All egress traffic |
| 54 | - direction: egress |
| 55 | ethertype: IPv4 |
| 56 | - direction: egress |
| 57 | ethertype: IPv6 |
| 58 | # ingress traffic |
| 59 | # ICMP |
| 60 | - protocol: icmp |
| 61 | - protocol: udp |
| 62 | port_range_min: 1 |
| 63 | port_range_max: 65535 |
| 64 | - protocol: tcp |
| 65 | port_range_min: 1 |
| 66 | port_range_max: 65535 |
| 67 | |
| 68 | |
| 69 | # ONAP management private network |
| 70 | oam_network: |
| 71 | type: OS::Neutron::Net |
| 72 | properties: |
| 73 | name: |
| 74 | str_replace: |
| 75 | template: oam_network_rand |
| 76 | params: |
| 77 | rand: { get_resource: random-str } |
| 78 | |
| 79 | oam_subnet: |
| 80 | type: OS::Neutron::Subnet |
| 81 | properties: |
| 82 | name: |
| 83 | str_replace: |
| 84 | template: oam_network_rand |
| 85 | params: |
| 86 | rand: { get_resource: random-str } |
| 87 | network_id: { get_resource: oam_network } |
| 88 | cidr: { get_param: oam_network_cidr } |
| 89 | dns_nameservers: [ "8.8.8.8" ] |
| 90 | |
| 91 | router: |
| 92 | type: OS::Neutron::Router |
| 93 | properties: |
| 94 | external_gateway_info: |
| 95 | network: { get_param: public_net_id } |
| 96 | |
| 97 | router_interface: |
| 98 | type: OS::Neutron::RouterInterface |
| 99 | properties: |
| 100 | router_id: { get_resource: router } |
| 101 | subnet_id: { get_resource: oam_subnet } |
| 102 | |
| 103 | rancher_private_port: |
| 104 | type: OS::Neutron::Port |
| 105 | properties: |
| 106 | network: { get_resource: oam_network } |
| 107 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 108 | security_groups: |
| 109 | - { get_resource: onap_sg } |
| 110 | |
| 111 | rancher_floating_ip: |
| 112 | type: OS::Neutron::FloatingIP |
| 113 | properties: |
| 114 | floating_network_id: { get_param: public_net_id } |
| 115 | port_id: { get_resource: rancher_private_port } |
| 116 | |