Invalid Parameter type "list"
[apex-tripleo-heat-templates.git] / keystone.yaml
1 HeatTemplateFormatVersion: '2012-12-12'
2 Description: 'HEAT Template - Keystone'
3 Parameters:
4   KeyName: 
5     Description: Name of an existing EC2 KeyPair to enable SSH access to the instances
6     Type: String
7     Default: default
8   InstanceType:
9     Description: Use this flavor
10     Type: String
11     Default: bm.small
12   KeystoneDSN:
13     Description: DSN for connecting to keystone
14     Type: String
15   KeystoneImage:
16     Type: String
17   AdminToken:
18     Type: String
19 Resources:
20   ApiAccessPolicy:
21     Type: OS::Heat::AccessPolicy
22     Properties:
23       AllowedResources: [ KeystoneLaunch, Keystone ]
24   ApiUser:
25     Type: AWS::IAM::User
26     Properties:
27       Policies: [ { Ref: ApiAccessPolicy } ]
28   ApiKey:
29     Type: AWS::IAM::AccessKey
30     Properties:
31       UserName:
32         Ref: ApiUser
33   KeystoneLaunch:
34     Type: AWS::AutoScaling::LaunchConfiguration
35     Properties:
36       ImageId:
37         {Ref: KeystoneImage}
38       InstanceType: {Ref: InstanceType}
39       KeyName: {Ref: KeyName}
40     Metadata:
41       OpenStack::ImageBuilder::Elements: [ keystone ]
42       heat: 
43         access_key_id:
44           Ref: ApiKey
45         secret_key:
46           Fn::GetAtt: [ ApiKey, SecretAccessKey ]
47         stack:
48           name: {Ref: 'AWS::StackName'}
49           region: {Ref: 'AWS::Region'}
50         refresh:
51           - resource: Keystone
52       admin-token: {Ref: AdminToken}
53       keystone:
54         db: {Ref: KeystoneDSN}
55   Keystone:
56     Type: OS::Heat::InstanceGroup
57     Properties:
58       LaunchConfigurationName: { Ref: KeystoneLaunch }
59       AvailabilityZones: [ 1 ]
60       Size: '1'