Write package names out to flat files
[apex-tripleo-heat-templates.git] / deprecated / block-storage.yaml
1 heat_template_version: 2013-05-23
2 description: 'Common Block Storage Configuration'
3 parameters:
4   BlockStorageImage:
5     type: string
6     default: overcloud-cinder-volume
7   OvercloudBlockStorageFlavor:
8     description: Flavor for block storage nodes to request when deploying.
9     type: string
10     constraints:
11       - custom_constraint: nova.flavor
12   BlockStorageExtraConfig:
13     default: {}
14     description: |
15       Controller specific configuration to inject into the cluster. Same
16       structure as ExtraConfig.
17     type: json
18 resources:
19   BlockStorage0:
20     type: OS::Nova::Server
21     properties:
22       image:
23         {get_param: BlockStorageImage}
24       flavor: {get_param: OvercloudBlockStorageFlavor}
25       key_name: {get_param: KeyName}
26       user_data_format: SOFTWARE_CONFIG
27   BlockStorage0AllNodesDeployment:
28     depends_on: [BlockStorage0Deployment,BlockStorage0PassthroughSpecific]
29     type: OS::Heat::StructuredDeployment
30     properties:
31       signal_transport: {get_param: DefaultSignalTransport}
32       config: {get_resource: allNodesConfig}
33       server: {get_resource: BlockStorage0}
34   BlockStorage0Deployment:
35     type: OS::Heat::StructuredDeployment
36     properties:
37       server: {get_resource: BlockStorage0}
38       config: {get_resource: BlockStorageConfig}
39       input_values:
40         controller_virtual_ip: {get_attr: [ControlVirtualIP, fixed_ips, 0, ip_address]}
41         cinder_dsn: {"Fn::Join": ['', ['mysql://cinder:unset@', {get_attr: [ControlVirtualIP, fixed_ips, 0, ip_address]} , '/cinder']]}
42       signal_transport: NO_SIGNAL
43   BlockStorage0Passthrough:
44     type: OS::Heat::StructuredDeployment
45     properties:
46       config: {get_resource: BlockStoragePassthrough}
47       server: {get_resource: BlockStorage0}
48       signal_transport: NO_SIGNAL
49       input_values:
50         passthrough_config: {get_param: ExtraConfig}
51   BlockStorage0PassthroughSpecific:
52     depends_on: [BlockStorage0Passthrough]
53     type: OS::Heat::StructuredDeployment
54     properties:
55       config: {get_resource: BlockStoragePassthroughSpecific}
56       server: {get_resource: BlockStorage0}
57       signal_transport: NO_SIGNAL
58       input_values:
59         passthrough_config_specific: {get_param: BlockStorageExtraConfig}
60   BlockStorageConfig:
61     type: OS::Heat::StructuredConfig
62     properties:
63       group: os-apply-config
64       config:
65         admin-password: {get_param: AdminPassword}
66         keystone:
67           host: {get_input: controller_virtual_ip}
68         cinder:
69           db: {get_input: cinder_dsn}
70           volume_size_mb:
71             get_param: CinderLVMLoopDeviceSize
72           service-password:
73             get_param: CinderPassword
74           iscsi-helper:
75             get_param: CinderISCSIHelper
76         rabbit:
77           host: {get_input: controller_virtual_ip}
78           username: {get_param: RabbitUserName}
79           password: {get_param: RabbitPassword}
80         glance:
81           host: {get_input: controller_virtual_ip}
82           port: {get_param: GlancePort}
83   BlockStoragePassthrough:
84     type: OS::Heat::StructuredConfig
85     properties:
86       group: os-apply-config
87       config: {get_input: passthrough_config}
88   BlockStoragePassthroughSpecific:
89     type: OS::Heat::StructuredConfig
90     properties:
91       group: os-apply-config
92       config: {get_input: passthrough_config_specific}