9664ea0ad79be2e68df857ca0df240e092b9d07e
[integration.git] / test / mocks / mass-pnf-sim / deployment / heat / heat.yaml
1 description: Heat template for deploying Mass PNF Simulator
2 heat_template_version: '2017-02-24'
3 parameters:
4   flavor_name:
5     description: Flavor name of the simulator instance. This should depend on the requested amount of simulator instances
6     type: string
7   image_name:
8     description: Name or id of the image (Debian family only)
9     type: string
10   key_name:
11     label: Key pair name for passwordless login to instance
12     type: string
13   float_net_id:
14     description: ID of the network with a pool of floating IPs
15     label: Floating IP network
16     type: string
17   instance_net_id:
18     type: string
19     description: Id of a private network for instance interface
20 resources:
21   config:
22     type: OS::Heat::SoftwareConfig
23     properties:
24       config:
25         get_file: cloud-config.yaml
26   simulator_floating_ip:
27     type: OS::Neutron::FloatingIP
28     properties:
29       floating_network:
30         get_param: float_net_id
31       port_id:
32         get_attr: [simulator, addresses, get_param: instance_net_id, 0, port]
33   simulator:
34     type: OS::Nova::Server
35     properties:
36       name: mass-pnf-simulator
37       key_name:
38         get_param: key_name
39       image:
40         get_param: image_name
41       flavor:
42         get_param: flavor_name
43       networks:
44         - network:
45             get_param: instance_net_id
46       user_data_format: RAW
47       user_data:
48         get_resource: config
49 outputs:
50   simulator_instance_id:
51     description: ID of the simulator instance
52     value:
53       get_resource: simulator
54   simulator_instance_fip:
55     description: Floating IP address of the simulator instance
56     value:
57       get_attr: [simulator_floating_ip, floating_ip_address]