Allow setting a single NTP Server
[apex-tripleo-heat-templates.git] / block-storage.yaml
1 HeatTemplateFormatVersion: '2012-12-12'
2 Description: 'Common Block Storage Configuration'
3 Parameters:
4   BlockStorageImage:
5     Type: String
6     Default: overcloud-cinder-volume
7   KeystoneHost:
8     Type: String
9     Default: {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [notcompute, networks]} ]} ] }
10   MySQLHost:
11     Type: String
12     Default: {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [notcompute, networks]} ]} ] }
13   RabbitHost:
14     Type: String
15     Default: {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [notcompute, networks]} ]} ] }
16   RabbitPassword:
17     Type: String
18     Default: "guest"
19     NoEcho: true
20 Resources:
21   BlockStorageAccessPolicy:
22     Type: OS::Heat::AccessPolicy
23     Properties:
24       AllowedResources:
25       - BlockStorage0
26   BlockStorageUser:
27     Type: AWS::IAM::User
28     Properties:
29       Policies: [ { Ref: BlockStorageAccessPolicy } ]
30   BlockStorageKey:
31     Type: AWS::IAM::AccessKey
32     Properties:
33       UserName:
34         Ref: BlockStorageUser
35   BlockStorage0:
36     Type: OS::Nova::Server
37     Properties:
38       image:
39         {Ref: BlockStorageImage}
40       flavor: {Ref: Flavor}
41       key_name: {Ref: KeyName}
42       InstanceType: '0'
43       ImageId: '0'
44     Metadata:
45       os-collect-config:
46         cfn:
47           access_key_id:
48             Ref: BlockStorageKey
49           secret_access_key:
50             Fn::GetAtt: [ BlockStorageKey, SecretAccessKey ]
51           stack_name: {Ref: 'AWS::StackName'}
52       OpenStack::ImageBuilder::Elements: [ cinder ]
53       keystone:
54         host: {Ref: KeystoneHost}
55       cinder:
56         db: {"Fn::Join": ['', ['mysql://cinder:unset@', {Ref: MySQLHost}, '/cinder']]}
57         volume_size_mb: '5000'
58         service-password:
59           Ref: CinderPassword
60         volume: 'true'
61       admin-password: {Ref: AdminPassword}
62       rabbit:
63         host: {Ref: RabbitHost}
64         password: {Ref: RabbitPassword}
65       interfaces:
66         control: {Ref: NeutronPublicInterface}