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
13 Description: Keystone database username.
17 Description: Heat database username.
23 Description: Load mysqldump from this Host
26 BootstrapRootPassword:
27 Description: Root password for localhost access after bootstrap
30 BootstrapDumpPassword:
31 Description: Password to use for mysqldump from Bootstrap Host
35 Description: User to use for replication from bootstrap host
38 BootstrapSlavePassword:
39 Description: Password to use with BootstrapSlaveUser
44 Type: OS::Heat::AccessPolicy
46 AllowedResources: [ MySQL ]
50 Policies: [ { Ref: ApiAccessPolicy } ]
52 Type: AWS::IAM::AccessKey
57 Type: AWS::EC2::Instance
59 OpenStack::ImageBuilder::Elements: [ mysql-migration ]
64 username: {Ref: KeystoneUser}
65 userhandle: {Ref: KeystonePasswordHandle}
67 username: {Ref: HeatUser}
68 userhandle: {Ref: HeatPasswordHandle}
73 password: {Ref: BootstrapRootPassword}
76 password: {Ref: BootstrapDumpPassword}
77 bootstrap_host: {Ref: BootstrapHost}
78 slave_user: {Ref: BootstrapSlaveUser}
79 slave_password: {Ref: BootstrapSlavePassword}
84 Fn::GetAtt: [ ApiKey, SecretAccessKey ]
86 name: {Ref: 'AWS::StackName'}
87 region: {Ref: 'AWS::Region'}
93 InstanceType: {Ref: InstanceType}
94 KeyName: {Ref: KeyName}
96 Type: AWS::CloudFormation::WaitConditionHandle
99 Type: AWS::CloudFormation::WaitCondition
101 Handle: {Ref: HeatPasswordHandle}
103 KeystonePasswordHandle:
104 Type: AWS::CloudFormation::WaitConditionHandle
107 Type: AWS::CloudFormation::WaitCondition
109 Handle: {Ref: KeystonePasswordHandle}
113 Fn::GetAtt: [ MySQL , PrivateIp ]
115 Fn::GetAtt: [ KeystonePassword, Data ]
116 KeystoneUser: {Ref: KeystoneUser}
118 Fn::GetAtt: [ HeatPassword, Data ]
119 HeatUser: {Ref: HeatUser}