69236b289add059a055b97bfe8f1331216084bca
[apex-tripleo-heat-templates.git] / swift-storage-source.yaml
1 HeatTemplateFormatVersion: '2012-12-12'
2 Description: 'Common Swift Storage Configuration'
3 Parameters:
4   SwiftStorageImage:
5     Type: String
6     Default: overcloud-swift-storage
7   OvercloudSwiftStorageFlavor:
8     Default: baremetal
9     Description: Flavor for Swift storage nodes to request when deploying.
10     Type: String
11   NeutronNetworkType:
12     Type: String
13     Default: 'gre'
14   NeutronEnableTunnelling:
15     Type: String
16     Default: True
17 Resources:
18   SwiftStorage0:
19     Type: OS::Nova::Server
20     Properties:
21       image:
22         {Ref: SwiftStorageImage}
23       flavor: {Ref: OvercloudSwiftStorageFlavor}
24       key_name: {Ref: KeyName}
25   SwiftStorage0Deploy:
26     Type: OS::Heat::StructuredDeployment
27     Properties:
28       server: {Ref: SwiftStorage0}
29       config: {Ref: SwiftConfig}
30       input_values:
31         neutron_local_ip: {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [SwiftStorage0, networks]} ]} ] }
32         swift_devices:
33           Fn::Join:
34           - ', '
35           - - Fn::Join:
36               - ''
37               - - 'r1z1-'
38                 - {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [controller0, networks]} ]} ] }
39                 - ':%PORT%/d1'
40             - Fn::Join:
41               - ', '
42               Merge::Map:
43                 SwiftStorage0:
44                   Fn::Join:
45                   - ''
46                   - - 'r1z1-'
47                     - Fn::Select:
48                       - 0
49                       - Fn::Select:
50                         - 'ctlplane'
51                         - Fn::GetAtt:
52                           - SwiftStorage0
53                           - networks
54                     - ':%PORT%/d1'