blob: 000ef6a64e6ac214a7f732cf0057cd9d5000f157 [file] [log] [blame]
Gary Wu14a6b302018-05-01 15:59:28 -07001heat_template_version: 2015-10-15
2description: ONAP on Kubernetes using OOM
3
4parameters:
Gary Wu14a6b302018-05-01 15:59:28 -07005 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 Wu14a6b302018-05-01 15:59:28 -070015 oam_network_cidr:
16 type: string
17 description: CIDR of the OAM ONAP network
18
Gary Wu14a6b302018-05-01 15:59:28 -070019 ubuntu_1604_image:
20 type: string
21 description: Name of the Ubuntu 16.04 image
22
23 rancher_vm_flavor:
24 type: string
Gary Wu11c98742018-05-02 16:19:04 -070025 description: VM flavor for Rancher
Gary Wu14a6b302018-05-01 15:59:28 -070026
27 k8s_vm_flavor:
28 type: string
Gary Wu11c98742018-05-02 16:19:04 -070029 description: VM flavor for k8s hosts
30
31 integration_override_yaml:
32 type: string
33 description: Content for integration_override.yaml
Gary Wu14a6b302018-05-01 15:59:28 -070034
Gary Wuc4749702018-06-26 14:27:41 -070035 gerrit_branch:
36 type: string
37 default: "master"
38
39 gerrit_refspec:
40 type: string
41 default: "refs/heads/master"
42
43 docker_manifest:
44 type: string
45 default: "docker-manifest.csv"
46
gwu10db4622018-07-17 22:11:39 -070047 key_name:
48 type: string
49 default: "onap_key"
50
Gary Wu14a6b302018-05-01 15:59:28 -070051resources:
52 random-str:
53 type: OS::Heat::RandomString
54 properties:
55 length: 4
56
57 # ONAP security group
58 onap_sg:
59 type: OS::Neutron::SecurityGroup
60 properties:
61 name:
62 str_replace:
63 template: base_rand
64 params:
65 base: onap_sg
66 rand: { get_resource: random-str }
67 description: security group used by ONAP
68 rules:
69 # All egress traffic
70 - direction: egress
71 ethertype: IPv4
72 - direction: egress
73 ethertype: IPv6
74 # ingress traffic
75 # ICMP
76 - protocol: icmp
77 - protocol: udp
78 port_range_min: 1
79 port_range_max: 65535
80 - protocol: tcp
81 port_range_min: 1
82 port_range_max: 65535
83
84
85 # ONAP management private network
86 oam_network:
87 type: OS::Neutron::Net
88 properties:
89 name:
90 str_replace:
91 template: oam_network_rand
92 params:
93 rand: { get_resource: random-str }
94
95 oam_subnet:
96 type: OS::Neutron::Subnet
97 properties:
98 name:
99 str_replace:
100 template: oam_network_rand
101 params:
102 rand: { get_resource: random-str }
103 network_id: { get_resource: oam_network }
104 cidr: { get_param: oam_network_cidr }
105 dns_nameservers: [ "8.8.8.8" ]
106
107 router:
108 type: OS::Neutron::Router
109 properties:
110 external_gateway_info:
111 network: { get_param: public_net_id }
112
113 router_interface:
114 type: OS::Neutron::RouterInterface
115 properties:
116 router_id: { get_resource: router }
117 subnet_id: { get_resource: oam_subnet }
118
119 rancher_private_port:
120 type: OS::Neutron::Port
121 properties:
122 network: { get_resource: oam_network }
123 fixed_ips: [{"subnet": { get_resource: oam_subnet }}]
124 security_groups:
125 - { get_resource: onap_sg }
126
127 rancher_floating_ip:
128 type: OS::Neutron::FloatingIP
129 properties:
130 floating_network_id: { get_param: public_net_id }
131 port_id: { get_resource: rancher_private_port }
132