1 heat_template_version: 2013-05-23
2 description: Heat template to deploy a packet generator for the vLoadBalancer/vDNS demo app for ONAP
7 label: Public network name or ID
8 description: Public network that enables remote connection to VNF
11 label: Image name or ID
12 description: Image to be used for compute instance
16 description: Type of instance (flavor) to be used
19 label: vPacketGenerator name
20 description: Name of the vPacketGenerator
24 description: Public/Private key pair name
28 description: Public key to be installed on the compute instance
32 description: URL of the repository that hosts the demo packages
36 description: URL of the repository that hosts the demo packages
39 label: Public IP of the vLoadBalancer to which we want to send traffic
40 description: Public IP of the vLoadBalancer to which we want to send traffic
41 install_script_version:
43 label: Installation script version number
44 description: Version number of the scripts that install the vFW demo app
45 demo_artifacts_version:
47 label: Artifacts version used in demo vnfs
48 description: Artifacts (jar, tar.gz) version used in demo vnfs
51 label: Cloud environment
52 description: Cloud environment (e.g., openstack, rackspace)
58 type: OS::Heat::RandomString
63 type: OS::Nova::KeyPair
69 base: { get_param: key_name }
70 rand: { get_resource: random-str }
71 public_key: { get_param: pub_key }
72 save_private_key: false
76 type: OS::Nova::Server
78 image: { get_param: vpg_image_name }
79 flavor: { get_param: vpg_flavor_name }
80 name: { get_param: vpg_name_0 }
81 key_name: { get_resource: my_keypair }
83 - network: { get_param: public_net_id }
88 __repo_url_blob__ : { get_param: repo_url_blob }
89 __repo_url_artifacts__ : { get_param: repo_url_artifacts }
90 __vlb_ipaddr__: { get_param: vlb_ipaddr }
91 __demo_artifacts_version__ : { get_param: demo_artifacts_version }
92 __install_script_version__ : { get_param: install_script_version }
93 __cloud_env__ : { get_param: cloud_env }
97 # Create configuration files
99 echo "__vlb_ipaddr__" > /opt/config/vlb_ipaddr.txt
100 echo "__repo_url_blob__" > /opt/config/repo_url_blob.txt
101 echo "__repo_url_artifacts__" > /opt/config/repo_url_artifacts.txt
102 echo "__demo_artifacts_version__" > /opt/config/demo_artifacts_version.txt
103 echo "__install_script_version__" > /opt/config/install_script_version.txt
104 echo "__cloud_env__" > /opt/config/cloud_env.txt
106 # Download and run install script
107 curl -k __repo_url_blob__/org.openecomp.demo/vnfs/vlb/__install_script_version__/v_packetgen_install.sh -o /opt/v_packetgen_install.sh
109 chmod +x v_packetgen_install.sh
110 ./v_packetgen_install.sh