1 heat_template_version: 2013-05-23
3 description: Heat template to deploy a ubuntuCDS VM
6 # Metadata required by ONAP
10 description: The VM name
14 description: The VNF ID is provided by ONAP
18 description: The VF Module ID is provided by ONAP
20 # Server parameters, naming required by ONAP
23 label: Image name or ID
24 description: Image to be used for compute instance
25 ubuntuCDS_flavor_name:
28 description: Type of instance (flavor) to be used
32 description: Public key to be installed on the compute instance
36 description: The VM name
38 # Network parameters, naming required by ONAP
41 label: management network
42 description: The external management network
46 type: OS::Heat::RandomString
50 ubuntuCDS_instantiated_key_name:
51 type: OS::Nova::KeyPair
55 template: pre_base_rand
58 base: { get_param: vnf_name }
59 rand: { get_resource: random-str }
60 public_key: { get_param: ubuntuCDS_pub_key }
61 save_private_key: false
63 ubuntuCDS_admin_security_group:
64 type: OS::Neutron::SecurityGroup
66 description: security group
69 template: pre_base_rand
72 base: { get_param: vnf_name }
73 rand: { get_resource: random-str }
75 {remote_ip_prefix: 0.0.0.0/0, protocol: tcp, port_range_min: 22, port_range_max: 22},
76 {remote_ip_prefix: 0.0.0.0/0, protocol: icmp}]
78 ubuntuCDS_0_admin_plane_port_0:
79 type: OS::Neutron::Port
83 template: pre_base_rand
86 base: { get_param: vnf_name }
87 rand: { get_resource: random-str }
88 network: { get_param: admin_plane_net_name }
89 security_groups: [{ get_resource: ubuntuCDS_admin_security_group }]
91 ubuntuCDS_VM_settings:
92 type: OS::Heat::SoftwareConfig
99 type: OS::Nova::Server
101 image: { get_param: ubuntuCDS_image_name }
102 flavor: { get_param: ubuntuCDS_flavor_name }
103 name: { get_param: ubuntuCDS_name_0 }
104 metadata: {vnf_id: { get_param: vnf_id }, vf_module_id: { get_param: vf_module_id }, vnf_name: { get_param: vnf_name }}
105 key_name: { get_resource: ubuntuCDS_instantiated_key_name }
107 - port: { get_resource: ubuntuCDS_0_admin_plane_port_0 }
108 user_data_format: RAW
110 get_resource: ubuntuCDS_VM_settings