heat-templates/hot/mistral/templates/server_with_ip.yaml
Adrien Vergé 2a2fe91602 Fix linting errors in YAML
This change corrects many problems detected by the `yamllint` linter.
It's a preparation for enabling this linter in change
Ie746230f28fe3ed0cf218201d5a3810f7bc44070.

For instance, the first run of the YAML linter helped discovering a key
duplication problem in `oso_ha.yaml`: the `depends_on` key was present
twice, so the first occurence was ignored.

Other changes are cosmetic: extra spaces, extra blank lines, missing
newlines at end-of-file, etc.

Change-Id: I7f2369adfb152fd2a74b9b105e969e653e592922
2016-03-11 14:57:38 +01:00

47 lines
971 B
YAML

heat_template_version: 2015-04-30
parameters:
image:
type: string
flavor:
type: string
security_group_name:
type: string
metadata:
type: json
resources:
server:
type: OS::Nova::Server
properties:
flavor: {get_param: flavor}
image: {get_param: image}
metadata: {get_param: metadata}
security_groups:
- get_param: security_group_name
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}
security_group:
type: AWS::EC2::SecurityGroup
properties:
GroupDescription: 'Enable SSH access'
SecurityGroupIngress:
- IpProtocol: 'tcp'
FromPort: '22'
ToPort: '22'
CidrIp: '0.0.0.0/0'
outputs:
ip:
value: {get_attr: [floating_ip, ip]}
server_id:
value: {get_resource: server}