Skip to content
Snippets Groups Projects
Commit ad92fd66 authored by Martin Čuchran's avatar Martin Čuchran
Browse files

Update infrastructure_init.yaml

parent 48972b28
No related branches found
No related tags found
No related merge requests found
heat_template_version: '2016-04-08'
parameters:
p_internal_net:
p_full_access_secgroup:
resources:
internal_net:
......@@ -41,8 +37,103 @@ resources:
port_range_min: 1
port_range_max: 65000
outputs:
p_internal_net:
value: { get_resource: internal_net }
p_full_access_secgroup:
value: { get_resource: full_access_secgroup }
\ No newline at end of file
instance_port_1:
type: OS::Neutron::Port
properties:
network: {get_resource: internal_net}
security_groups:
- default
- { get_resource: full_access_secgroup }
floating_ip_1:
type: OS::Nova::FloatingIP
properties:
pool: public-float-21
Server_1:
type: OS::Nova::Server
properties:
flavor: m1.medium
image: 7c24d54a-0ec9-47d3-902c-c263c81b48b4
networks:
- port: { get_resource: instance_port_1 }
association_1:
type: OS::Nova::FloatingIPAssociation
properties:
floating_ip: { get_resource: floating_ip_1 }
server_id: { get_resource: Server_1 }
instance_port_2:
type: OS::Neutron::Port
properties:
network: {get_resource: internal_net}
security_groups:
- default
- { get_resource: full_access_secgroup }
floating_ip_2:
type: OS::Nova::FloatingIP
properties:
pool: public-float-21
Server_2:
type: OS::Nova::Server
properties:
flavor: m1.medium
image: 7c24d54a-0ec9-47d3-902c-c263c81b48b4
networks:
- port: { get_resource: instance_port_2 }
association_1:
type: OS::Nova::FloatingIPAssociation
properties:
floating_ip: { get_resource: floating_ip_2 }
server_id: { get_resource: Server_2 }
instance_port_3:
type: OS::Neutron::Port
properties:
network: {get_resource: internal_net}
security_groups:
- default
- { get_resource: full_access_secgroup }
floating_ip_3:
type: OS::Nova::FloatingIP
properties:
pool: public-float-21
Server_3:
type: OS::Nova::Server
properties:
flavor: m1.medium
image: 7c24d54a-0ec9-47d3-902c-c263c81b48b4
networks:
- port: { get_resource: instance_port_3 }
association_3:
type: OS::Nova::FloatingIPAssociation
properties:
floating_ip: { get_resource: floating_ip_3 }
server_id: { get_resource: Server_3 }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment