1 description: Heat template for deploying Mass PNF Simulator
2 heat_template_version: '2017-02-24'
5 description: Flavor name of the simulator instance. This should depend on the requested amount of simulator instances
8 description: Name or id of the image (Debian family only)
11 label: Key pair name for passwordless login to instance
14 description: ID of the network with a pool of floating IPs
15 label: Floating IP network
19 description: Id of a private network for instance interface
22 description: Number of simulator instances to run on cloud instance
25 description: VES Collector url
28 description: Username for the ftp server
31 description: Password for the ftp server
34 type: OS::Heat::SoftwareConfig
37 get_file: cloud-config.yaml
39 type: OS::Heat::SoftwareConfig
44 get_file: mass-pnf-sim_run.sh
46 $SIMULATOR_INSTANCES: { get_param: simulator_instances }
47 $VES_URL: { get_param: ves_url }
48 $FILE_SERVER: { get_attr: [simulator_floating_ip, floating_ip_address] }
49 $FTP_USER: { get_param: ftp_user }
50 $FTP_PASSWORD: { get_param: ftp_password }
52 type: OS::Heat::CloudConfig
56 - path: /root/mass-pnf-sim_run.sh
58 get_attr: [sim_script, config]
60 type: OS::Neutron::Port
63 get_param: instance_net_id
64 simulator_floating_ip:
65 type: OS::Neutron::FloatingIP
68 get_param: float_net_id
70 get_resource: simulator_port
72 type: OS::Heat::MultipartMime
78 get_resource: sim_script_file
80 type: OS::Nova::Server
82 name: mass-pnf-simulator
88 get_param: flavor_name
91 get_resource: simulator_port
94 get_resource: cloud_config
96 simulator_instance_id:
97 description: ID of the simulator instance
99 get_resource: simulator
100 simulator_instance_fip:
101 description: Floating IP address of the simulator instance
103 get_attr: [simulator_floating_ip, floating_ip_address]