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 | |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 31 | etcd_vm_flavor: |
| 32 | type: string |
| 33 | description: VM flavor for etcd hosts |
| 34 | |
| 35 | orch_vm_flavor: |
| 36 | type: string |
| 37 | description: VM flavor for orch hosts |
| 38 | |
Gary Wu | 11c9874 | 2018-05-02 16:19:04 -0700 | [diff] [blame] | 39 | integration_override_yaml: |
| 40 | type: string |
| 41 | description: Content for integration_override.yaml |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 42 | |
Gary Wu | 87aa8b5 | 2018-08-09 08:10:24 -0700 | [diff] [blame] | 43 | integration_gerrit_branch: |
Gary Wu | c474970 | 2018-06-26 14:27:41 -0700 | [diff] [blame] | 44 | type: string |
| 45 | default: "master" |
| 46 | |
Gary Wu | 87aa8b5 | 2018-08-09 08:10:24 -0700 | [diff] [blame] | 47 | integration_gerrit_refspec: |
| 48 | type: string |
| 49 | default: "refs/heads/master" |
| 50 | |
| 51 | oom_gerrit_branch: |
| 52 | type: string |
| 53 | default: "master" |
| 54 | |
| 55 | oom_gerrit_refspec: |
Gary Wu | c474970 | 2018-06-26 14:27:41 -0700 | [diff] [blame] | 56 | type: string |
| 57 | default: "refs/heads/master" |
| 58 | |
| 59 | docker_manifest: |
| 60 | type: string |
Gary Wu | 87aa8b5 | 2018-08-09 08:10:24 -0700 | [diff] [blame] | 61 | default: "" |
Gary Wu | c474970 | 2018-06-26 14:27:41 -0700 | [diff] [blame] | 62 | |
gwu | 10db462 | 2018-07-17 22:11:39 -0700 | [diff] [blame] | 63 | key_name: |
| 64 | type: string |
| 65 | default: "onap_key" |
| 66 | |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 67 | docker_version: |
| 68 | type: string |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 69 | default: "17.03.2" |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 70 | |
| 71 | rancher_version: |
| 72 | type: string |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 73 | default: "1.6.22" |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 74 | |
| 75 | rancher_agent_version: |
| 76 | type: string |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 77 | default: "1.2.11" |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 78 | |
| 79 | kubectl_version: |
| 80 | type: string |
Gary Wu | 3fd6c2a | 2018-10-28 21:44:00 -0700 | [diff] [blame] | 81 | default: "1.11.2" |
Gary Wu | 7a04b3d | 2018-08-15 12:31:46 -0700 | [diff] [blame] | 82 | |
| 83 | helm_version: |
| 84 | type: string |
| 85 | default: "2.9.1" |
| 86 | |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 87 | resources: |
| 88 | random-str: |
| 89 | type: OS::Heat::RandomString |
| 90 | properties: |
| 91 | length: 4 |
| 92 | |
| 93 | # ONAP security group |
| 94 | onap_sg: |
| 95 | type: OS::Neutron::SecurityGroup |
| 96 | properties: |
| 97 | name: |
| 98 | str_replace: |
| 99 | template: base_rand |
| 100 | params: |
| 101 | base: onap_sg |
| 102 | rand: { get_resource: random-str } |
| 103 | description: security group used by ONAP |
| 104 | rules: |
| 105 | # All egress traffic |
| 106 | - direction: egress |
| 107 | ethertype: IPv4 |
| 108 | - direction: egress |
| 109 | ethertype: IPv6 |
| 110 | # ingress traffic |
| 111 | # ICMP |
| 112 | - protocol: icmp |
| 113 | - protocol: udp |
| 114 | port_range_min: 1 |
| 115 | port_range_max: 65535 |
| 116 | - protocol: tcp |
| 117 | port_range_min: 1 |
| 118 | port_range_max: 65535 |
| 119 | |
| 120 | |
| 121 | # ONAP management private network |
| 122 | oam_network: |
| 123 | type: OS::Neutron::Net |
| 124 | properties: |
| 125 | name: |
| 126 | str_replace: |
| 127 | template: oam_network_rand |
| 128 | params: |
| 129 | rand: { get_resource: random-str } |
| 130 | |
| 131 | oam_subnet: |
| 132 | type: OS::Neutron::Subnet |
| 133 | properties: |
| 134 | name: |
| 135 | str_replace: |
| 136 | template: oam_network_rand |
| 137 | params: |
| 138 | rand: { get_resource: random-str } |
| 139 | network_id: { get_resource: oam_network } |
| 140 | cidr: { get_param: oam_network_cidr } |
| 141 | dns_nameservers: [ "8.8.8.8" ] |
| 142 | |
| 143 | router: |
| 144 | type: OS::Neutron::Router |
| 145 | properties: |
eHanan | 97b7a9c | 2018-09-05 14:09:19 +0100 | [diff] [blame] | 146 | name: |
| 147 | list_join: ['-', [{ get_param: 'OS::stack_name' }, 'router']] |
Gary Wu | 14a6b30 | 2018-05-01 15:59:28 -0700 | [diff] [blame] | 148 | external_gateway_info: |
| 149 | network: { get_param: public_net_id } |
| 150 | |
| 151 | router_interface: |
| 152 | type: OS::Neutron::RouterInterface |
| 153 | properties: |
| 154 | router_id: { get_resource: router } |
| 155 | subnet_id: { get_resource: oam_subnet } |
| 156 | |
| 157 | rancher_private_port: |
| 158 | type: OS::Neutron::Port |
| 159 | properties: |
| 160 | network: { get_resource: oam_network } |
| 161 | fixed_ips: [{"subnet": { get_resource: oam_subnet }}] |
| 162 | security_groups: |
| 163 | - { get_resource: onap_sg } |
| 164 | |
| 165 | rancher_floating_ip: |
| 166 | type: OS::Neutron::FloatingIP |
| 167 | properties: |
| 168 | floating_network_id: { get_param: public_net_id } |
| 169 | port_id: { get_resource: rancher_private_port } |
| 170 | |