1 heat_template_version: 2015-04-30
3 description: Pronghorn Openstack Heat Template for the Application Server
7 # server group and index
10 label: Server Group ID
11 description: ID of the server group
14 label: Deployment Timeout
15 description: Timeout before declaring the stack deployment as failed.
18 - range: { min: 60, max: 3600 }
25 description: Unique ID for this VF instance
29 description: Unique ID for this VF Module instance
33 description: VM Role for the application vms
40 label: Availability Zone
41 description: Name of the availability zone for this server
45 # application server networks, ips and hostnames
48 label: Application Hostnames
49 description: Hostnames of the application servers
52 label: OAM Network Name
53 description: Name of the oam network
56 label: OAM IP Addresses
57 description: OAM IP Addresses of the application servers
61 # application common server info (flavor, image, keypair)
65 description: Flavor to be used for the server
69 description: Image to be used for the server
73 description: Name of the security key for the server
80 label: Security Group IDs
81 description: IDs of the security groups for the server
82 type: comma_delimited_list
87 # software deployment wait conditions
90 type: OS::Heat::WaitCondition
92 handle: { get_resource: wait_handle }
93 timeout: { get_param: deploy_timeout }
96 type: OS::Heat::WaitConditionHandle
99 # create the application server
102 type: OS::Nova::Server
104 name: { get_attr: [wait_condition, att1] }
105 availability_zone: { get_param: availability_zone_0 }
107 group: { get_param: server_group_id }
108 key_name: { get_param: keypair_id }
109 flavor: { get_param: app_flavor_name }
110 image: { get_param: app_image_name }
111 security_groups: { get_param: security_group_ids }
113 vnf_id: { get_param: vnf_id }
114 vf_module_id: { get_param: vf_module_id }
115 vm_role: { get_param: vm_role }
117 - network: { get_param: oam_net_name }
118 fixed_ip: { get_param: app_oam_ip_0 }
119 user_data_format: RAW
123 wc_notify: { get_attr: ['wait_handle', 'curl_cli'] }
130 ) | passwd --stdin root
131 wc_notify --data-binary '{"status":"SUCCESS"}'
136 # No outputs as the base_pronghorn is the only VNF component