1 heat_template_version: 2013-05-23
3 description: Heat template to deploy a vDNS for ONAP (scaling-up scenario)
8 label: Image name or ID
9 description: Image to be used for compute instance
13 description: Type of instance (flavor) to be used
16 label: Public network name or ID
17 description: Public network that enables remote connection to VNF
20 label: vLoadBalancer private network name or ID
21 description: Private network that connects vLoadBalancer with vDNSs
24 label: ONAP management network name or ID
25 description: Private network that connects ONAP components and the VNF
26 onap_private_subnet_id:
28 label: ONAP management sub-network name or ID
29 description: Private sub-network that connects ONAP components and the VNF
32 label: vLoadBalancer private IP address towards the private network
33 description: Private IP address that is assigned to the vLoadBalancer to communicate with the vDNSs
36 label: vLoadBalancer private IP address towards the ONAP management network
37 description: Private IP address that is assigned to the vLoadBalancer to communicate with ONAP components
40 label: vDNS private IP address towards the private network
41 description: Private IP address that is assigned to the vDNS to communicate with the vLoadBalancer
44 label: vDNS private IP address towards the ONAP management network
45 description: Private IP address that is assigned to the vDNS to communicate with ONAP components
49 description: Name of the vDNS
53 description: The VNF ID is provided by ONAP
56 label: vFirewall module ID
57 description: The vLoadBalancer Module ID is provided by ONAP
61 description: Public/Private key pair name
65 description: Public key to be installed on the compute instance
69 description: URL of the repository that hosts the demo packages
73 description: URL of the repository that hosts the demo packages
74 install_script_version:
76 label: Installation script version number
77 description: Version number of the scripts that install the vFW demo app
78 demo_artifacts_version:
80 label: Artifacts version used in demo vnfs
81 description: Artifacts (jar, tar.gz) version used in demo vnfs
84 label: Cloud environment
85 description: Cloud environment (e.g., openstack, rackspace)
90 type: OS::Heat::RandomString
95 type: OS::Nova::KeyPair
101 base: { get_param: key_name }
102 rand: { get_resource: random-str }
103 public_key: { get_param: pub_key }
104 save_private_key: false
106 # Virtual DNS Instantiation
108 type: OS::Neutron::Port
110 network: { get_param: vlb_private_net_id }
111 fixed_ips: [{"subnet": { get_param: vlb_private_net_id }, "ip_address": { get_param: vdns_private_ip_0 }}]
114 type: OS::Neutron::Port
116 network: { get_param: onap_private_net_id }
117 fixed_ips: [{"subnet": { get_param: onap_private_subnet_id }, "ip_address": { get_param: vdns_private_ip_1 }}]
120 type: OS::Nova::Server
122 image: { get_param: vlb_image_name }
123 flavor: { get_param: vlb_flavor_name }
124 name: { get_param: vdns_name_0 }
125 key_name: { get_resource: my_keypair }
127 - network: { get_param: public_net_id }
128 - port: { get_resource: vdns_private_0_port }
129 - port: { get_resource: vdns_private_1_port }
130 metadata: {vnf_id: { get_param: vnf_id }, vf_module_id: { get_param: vf_module_id }}
131 user_data_format: RAW
135 __lb_oam_int__ : { get_param: vlb_private_ip_1 }
136 __lb_private_ipaddr__: { get_param: vlb_private_ip_0 }
137 __local_private_ipaddr__: { get_param: vdns_private_ip_0 }
138 __repo_url_blob__ : { get_param: repo_url_blob }
139 __repo_url_artifacts__ : { get_param: repo_url_artifacts }
140 __demo_artifacts_version__ : { get_param: demo_artifacts_version }
141 __install_script_version__ : { get_param: install_script_version }
142 __cloud_env__ : { get_param: cloud_env }
146 # Create configuration files
148 echo "__lb_oam_int__" > /opt/config/lb_oam_int.txt
149 echo "__lb_private_ipaddr__" > /opt/config/lb_private_ipaddr.txt
150 echo "__local_private_ipaddr__" > /opt/config/local_private_ipaddr.txt
151 echo "__repo_url_blob__" > /opt/config/repo_url_blob.txt
152 echo "__repo_url_artifacts__" > /opt/config/repo_url_artifacts.txt
153 echo "__demo_artifacts_version__" > /opt/config/demo_artifacts_version.txt
154 echo "__install_script_version__" > /opt/config/install_script_version.txt
155 echo "__cloud_env__" > /opt/config/cloud_env.txt
157 # Download and run install script
158 curl -k __repo_url_blob__/org.openecomp.demo/vnfs/vlb/__install_script_version__/v_dns_install.sh -o /opt/v_dns_install.sh
160 chmod +x v_dns_install.sh