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 ]
63 username: {Ref: KeystoneUser}
64 userhandle: {Ref: KeystonePasswordHandle}
66 username: {Ref: HeatUser}
67 userhandle: {Ref: HeatPasswordHandle}
72 password: {Ref: BootstrapRootPassword}
75 password: {Ref: BootstrapDumpPassword}
76 bootstrap_host: {Ref: BootstrapHost}
77 slave_user: {Ref: BootstrapSlaveUser}
78 slave_password: {Ref: BootstrapSlavePassword}
83 Fn::GetAtt: [ ApiKey, SecretAccessKey ]
85 name: {Ref: 'AWS::StackName'}
86 region: {Ref: 'AWS::Region'}
92 InstanceType: {Ref: InstanceType}
93 KeyName: {Ref: KeyName}
95 Type: AWS::CloudFormation::WaitConditionHandle
98 Type: AWS::CloudFormation::WaitCondition
100 Handle: {Ref: HeatPasswordHandle}
102 KeystonePasswordHandle:
103 Type: AWS::CloudFormation::WaitConditionHandle
106 Type: AWS::CloudFormation::WaitCondition
108 Handle: {Ref: KeystonePasswordHandle}
112 Fn::GetAtt: [ MySQL , PrivateIp ]
114 Fn::GetAtt: [ KeystonePassword, Data ]
115 KeystoneUser: {Ref: KeystoneUser}
117 Fn::GetAtt: [ HeatPassword, Data ]
118 HeatUser: {Ref: HeatUser}