Last active
September 8, 2016 07:43
-
-
Save jbatalle/a57e278c2e7752ab0abcda622aebcfdc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| heat_template_version: 2015-04-30 | |
| description: HOT template to deploy redirect servers into an existing external network subnet. | |
| parameters: | |
| image: | |
| type: string | |
| description: Name of image to use for servers | |
| flavor: | |
| type: string | |
| description: Flavor to use for servers | |
| private_net_id: | |
| type: string | |
| description: ID of private network into which servers get deployed | |
| private_subnet_id: | |
| type: string | |
| description: ID of private sub network into which servers get deployed | |
| resources: | |
| server_port: | |
| type: OS::Neutron::Port | |
| properties: | |
| network_id: { get_param: private_net_id } | |
| fixed_ips: | |
| - subnet_id: { get_param: private_subnet_id } | |
| server: | |
| type: OS::Nova::Server | |
| properties: | |
| flavor: { get_param: flavor } | |
| image: { get_param: image } | |
| networks: | |
| - port: { get_resource: server_port } | |
| floating_ip: | |
| type: OS::Nova::FloatingIP | |
| floating_ip_association: | |
| type: OS::Nova::FloatingIPAssociation | |
| properties: | |
| floating_ip: {get_resource: floating_ip} | |
| server_id: {get_resource: server} | |
| outputs: | |
| server_private_ip: | |
| description: IP address of server in private network | |
| value: { get_attr: [ server, first_address ] } | |
| ip: | |
| value: {get_attr: [floating_ip, ip]} | |
| server_id: | |
| value: {get_resource: server} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment