1 heat_template_version: pike
4 HOT template to created resources deployed by scenario002.
8 description: Name of keypair to assign to servers
9 default: 'pingtest_key'
12 description: Name of image to use for servers
13 default: 'pingtest_image'
18 ID or name of public network for which floating IP addresses will be allocated
21 description: Name of private network to be created
22 default: 'default-net'
25 description: Private network address (CIDR notation)
26 default: '192.168.2.0/24'
29 description: Private network gateway address
30 default: '192.168.2.1'
31 private_net_pool_start:
33 description: Start of private network IP address allocation pool
34 default: '192.168.2.100'
37 default: '192.168.2.200'
38 description: End of private network IP address allocation pool
43 type: OS::Nova::KeyPair
45 save_private_key: true
46 name: {get_param: key_name }
49 type: OS::Neutron::Net
51 name: { get_param: private_net_name }
54 type: OS::Neutron::Subnet
56 network_id: { get_resource: private_net }
57 cidr: { get_param: private_net_cidr }
58 gateway_ip: { get_param: private_net_gateway }
60 - start: { get_param: private_net_pool_start }
61 end: { get_param: private_net_pool_end }
64 type: OS::Neutron::Router
66 external_gateway_info:
67 network: { get_param: public_net_name }
70 type: OS::Neutron::RouterInterface
72 router_id: { get_resource: router }
73 subnet_id: { get_resource: private_subnet }
76 type: OS::Cinder::VolumeType
80 encrypted_volume_type:
81 type: OS::Cinder::EncryptedVolumeType
83 volume_type: {get_resource: luks_volume_type}
85 cipher: aes-xts-plain64
86 control_location: front-end
90 type: OS::Cinder::Volume
91 depends_on: encrypted_volume_type
94 image: { get_param: image }
96 volume_type: {get_resource: luks_volume_type}
99 type: OS::Nova::Server
103 block_device_mapping:
105 volume_id: { get_resource: volume1 }
106 flavor: { get_resource: test_flavor }
107 key_name: { get_resource: key_pair }
109 - port: { get_resource: server1_port }
112 type: OS::Neutron::Port
114 network_id: { get_resource: private_net }
116 - subnet_id: { get_resource: private_subnet }
117 security_groups: [{ get_resource: server_security_group }]
120 type: OS::Neutron::FloatingIP
121 # TODO: investigate why we need this depends_on and if we could
122 # replace it by router_id with get_resource: router_interface
123 depends_on: router_interface
125 floating_network: { get_param: public_net_name }
126 port_id: { get_resource: server1_port }
128 server_security_group:
129 type: OS::Neutron::SecurityGroup
131 description: Add security group rules for server
132 name: pingtest-security-group
134 - remote_ip_prefix: 0.0.0.0/0
138 - remote_ip_prefix: 0.0.0.0/0
142 type: OS::Nova::Flavor
148 type: OS::Zaqar::Queue
154 description: IP address of server1 in private network
155 value: { get_attr: [ server1, first_address ] }
157 description: Floating IP address of server1 in public network
158 value: { get_attr: [ server1_floating_ip, floating_ip_address ] }