1 HeatTemplateFormatVersion: '2012-12-12'
2 Description: 'HEAT Template - Dedicated MySQL server'
5 Description: Name of an existing EC2 KeyPair to enable SSH access to the instances
9 Description: Use this flavor
15 Description: Keystone database username.
19 Description: Fetch a mysql dump file from this URL and load it
23 Description: Fetch a mysql config file from this URL to setup local root with bootstrapped database
28 Type: OS::Heat::AccessPolicy
30 AllowedResources: [ MySQL ]
34 Policies: [ { Ref: ApiAccessPolicy } ]
36 Type: AWS::EC2::Instance
38 OpenStack::ImageBuilder::Elements: [ openstack-db ]
43 username: {Ref: KeystoneUser}
44 userhandle: {Ref: KeystonePasswordHandle}
45 bootstrap_url: {Ref: BootstrapUrl}
46 root_cnf_url: {Ref: BootstrapRootCnfUrl}
51 Fn::GetAtt: [ ApiKey, SecretAccessKey ]
53 name: {Ref: 'AWS::StackName'}
54 region: {Ref: 'AWS::Region'}
60 InstanceType: {Ref: InstanceType}
61 KeyName: {Ref: KeyName}
62 KeystonePasswordHandle:
63 Type: AWS::CloudFormation:WaitConditionHandle
67 Type: AWS::CloudFormation::WaitCondition
69 Handle: {Ref: KeystonePasswordHandle}
73 Fn::GetAtt: [ MySQL , PrivateIp ]
75 Fn::GetAtt: [ KeystonePassword, Data ]
76 KeystoneUser: {Ref: KeystoneUser}