Remove InstanceType and ImageId from cinder template
[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     Metadata:
43       os-collect-config:
44         cfn:
45           access_key_id:
46             Ref: BlockStorageKey
47           secret_access_key:
48             Fn::GetAtt: [ BlockStorageKey, SecretAccessKey ]
49           stack_name: {Ref: 'AWS::StackName'}
50       OpenStack::ImageBuilder::Elements: [ cinder ]
51       keystone:
52         host: {Ref: KeystoneHost}
53       cinder:
54         db: {"Fn::Join": ['', ['mysql://cinder:unset@', {Ref: MySQLHost}, '/cinder']]}
55         volume_size_mb: '5000'
56         service-password:
57           Ref: CinderPassword
58         volume: 'true'
59       admin-password: {Ref: AdminPassword}
60       rabbit:
61         host: {Ref: RabbitHost}
62         password: {Ref: RabbitPassword}
63       interfaces:
64         control: {Ref: NeutronPublicInterface}