blob: 5db534471580b4a8aff2a73e7c57cc0c54754781 [file] [log] [blame]
Gary Wuccd529b2018-01-16 18:31:01 -08001heat_template_version: 2015-10-15
2description: ONAP on Kubernetes using OOM
3
4parameters:
Gary Wuccd529b2018-01-16 18:31:01 -08005 docker_proxy:
6 type: string
7
8 apt_proxy:
9 type: string
10
Gary Wuc98156d2018-01-18 12:03:26 -080011 public_net_id:
12 type: string
13 description: The ID of the Public network for floating IP address allocation
14
Gary Wu60dd0d82018-01-18 14:54:47 -080015 public_net_name:
16 type: string
17 description: The name of the Public network referred by public_net_id
18
Gary Wuc98156d2018-01-18 12:03:26 -080019 dns_list:
20 type: comma_delimited_list
21 description: List of External DNS for OAM ONAP network
22
23 oam_network_cidr:
24 type: string
25 description: CIDR of the OAM ONAP network
26
27 keystone_url:
28 type: string
29 description: URL of OpenStack Keystone
30
31 openstack_tenant_id:
32 type: string
33 description: OpenStack tenant ID
34
35 openstack_tenant_name:
36 type: string
37 description: OpenStack tenant name (matching with the openstack_tenant_id)
38
39 openstack_username:
40 type: string
41 description: OpenStack username
42
43 openstack_api_key:
44 type: string
45 description: OpenStack password or API Key
46
47 ubuntu_1404_image:
48 type: string
49 description: Name of the Ubuntu 14.04 image
50
Gary Wu60dd0d82018-01-18 14:54:47 -080051 ubuntu_1604_image:
52 type: string
53 description: Name of the Ubuntu 16.04 image
54
55 centos_7_image:
56 type: string
57 description: the id/name of the CentOS 7 VM imange
58
59 rancher_vm_flavor:
60 type: string
61 description: Name of the Ubuntu 14.04 image
62
63 k8s_vm_flavor:
64 type: string
65 description: Name of the Ubuntu 14.04 image
66
67 dcae_ip_addr:
68 type: string
69
70 dns_forwarder:
71 type: string
72 description: the forwarder address for setting up ONAP's private DNS server
73
74
Gary Wuccd529b2018-01-16 18:31:01 -080075resources:
Gary Wuc98156d2018-01-18 12:03:26 -080076 random-str:
77 type: OS::Heat::RandomString
78 properties:
79 length: 4
80
Gary Wuccd529b2018-01-16 18:31:01 -080081 rancher_vm:
82 type: OS::Nova::Server
83 properties:
84 name: rancher
85 image: xenial
Gary Wu60dd0d82018-01-18 14:54:47 -080086 flavor: { get_param: rancher_vm_flavor }
Gary Wuccd529b2018-01-16 18:31:01 -080087 key_name: onap_key
88 networks:
89 - network: { get_param: public_net_id }
90 user_data_format: RAW
91 user_data:
92 str_replace:
93 params:
94 __docker_proxy__: { get_param: docker_proxy }
95 __apt_proxy__: { get_param: apt_proxy }
Gary Wu1ff56672018-01-17 20:51:45 -080096 template:
97 get_file: rancher_vm_entrypoint.sh
Gary Wuccd529b2018-01-16 18:31:01 -080098
99 k8s_vm:
100 type: OS::Nova::Server
101 properties:
102 name: k8s
103 image: xenial
Gary Wu60dd0d82018-01-18 14:54:47 -0800104 flavor: { get_param: k8s_vm_flavor }
Gary Wuccd529b2018-01-16 18:31:01 -0800105 key_name: onap_key
106 networks:
107 - network: { get_param: public_net_id }
108 user_data_format: RAW
109 user_data:
110 str_replace:
111 params:
112 __docker_proxy__: { get_param: docker_proxy }
113 __apt_proxy__: { get_param: apt_proxy }
114 __rancher_ip_addr__: { get_attr: [rancher_vm, first_address] }
Gary Wuc98156d2018-01-18 12:03:26 -0800115 __openstack_tenant_id__: { get_param: openstack_tenant_id }
116 __openstack_tenant_name__: { get_param: openstack_tenant_name }
117 __openstack_username__: { get_param: openstack_username }
118 __openstack_api_key__: { get_param : openstack_api_key }
119 __public_net_id__: { get_param: public_net_id }
Gary Wu60dd0d82018-01-18 14:54:47 -0800120 __public_net_name__: { get_param: public_net_name }
Gary Wuc98156d2018-01-18 12:03:26 -0800121 __oam_network_cidr__: { get_param: oam_network_cidr }
122 __ubuntu_1404_image__: { get_param: ubuntu_1404_image }
Gary Wu60dd0d82018-01-18 14:54:47 -0800123 __ubuntu_1604_image__: { get_param: ubuntu_1604_image }
124 __centos_7_image__: { get_param: centos_7_image }
Gary Wuc98156d2018-01-18 12:03:26 -0800125 __keystone_url__: { get_param: keystone_url }
Gary Wu60dd0d82018-01-18 14:54:47 -0800126 __dcae_ip_addr__: { get_param: dcae_ip_addr }
127 __dns_list__: { get_param: [dns_list, 0] }
128 __dns_forwarder__: { get_param: dns_forwarder }
Gary Wu1ff56672018-01-17 20:51:45 -0800129 template:
130 get_file: k8s_vm_entrypoint.sh