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.
21 Description: Glance database username.
27 Description: Load mysqldump from this Host
30 BootstrapRootPassword:
31 Description: Root password for localhost access after bootstrap
34 BootstrapDumpPassword:
35 Description: Password to use for mysqldump from Bootstrap Host
39 Description: User to use for replication from bootstrap host
42 BootstrapSlavePassword:
43 Description: Password to use with BootstrapSlaveUser
48 Type: OS::Heat::AccessPolicy
50 AllowedResources: [ MySQL ]
54 Policies: [ { Ref: ApiAccessPolicy } ]
56 Type: AWS::IAM::AccessKey
61 Type: AWS::EC2::Instance
63 OpenStack::ImageBuilder::Elements: [ mysql-migration ]
67 username: {Ref: KeystoneUser}
68 userhandle: {Ref: KeystonePasswordHandle}
70 username: {Ref: HeatUser}
71 userhandle: {Ref: HeatPasswordHandle}
73 username: {Ref: GlanceUser}
74 userhandle: {Ref: GlancePasswordHandle}
79 password: {Ref: BootstrapRootPassword}
82 password: {Ref: BootstrapDumpPassword}
83 bootstrap_host: {Ref: BootstrapHost}
84 slave_user: {Ref: BootstrapSlaveUser}
85 slave_password: {Ref: BootstrapSlavePassword}
90 Fn::GetAtt: [ ApiKey, SecretAccessKey ]
92 name: {Ref: 'AWS::StackName'}
93 region: {Ref: 'AWS::Region'}
99 InstanceType: {Ref: InstanceType}
100 KeyName: {Ref: KeyName}
101 GlancePasswordHandle:
102 Type: AWS::CloudFormation::WaitConditionHandle
105 Type: AWS::CloudFormation::WaitCondition
107 Handle: {Ref: GlancePasswordHandle}
110 Type: AWS::CloudFormation::WaitConditionHandle
113 Type: AWS::CloudFormation::WaitCondition
115 Handle: {Ref: HeatPasswordHandle}
117 KeystonePasswordHandle:
118 Type: AWS::CloudFormation::WaitConditionHandle
121 Type: AWS::CloudFormation::WaitCondition
123 Handle: {Ref: KeystonePasswordHandle}
127 Fn::GetAtt: [ MySQL , PrivateIp ]
129 Fn::GetAtt: [ KeystonePassword, Data ]
130 KeystoneUser: {Ref: KeystoneUser}
132 Fn::GetAtt: [ HeatPassword, Data ]
133 HeatUser: {Ref: HeatUser}
135 Fn::GetAtt: [ GlancePassword, Data ]
136 GlanceUser: {Ref: GlanceUser}