Merge "merge.py use a class to represent template syntax"
[apex-tripleo-heat-templates.git] / swift-deploy.yaml
1 Description: 'Swift-proxy: OpenStack object storage proxy'
2 Parameters:
3   SwiftHashSuffix:
4     Default: unset
5     Description: A random string to be used as a salt when hashing to determine mappings in the ring.
6     Type: String
7     NoEcho: true
8   SwiftPassword:
9     Default: unset
10     Description: The password for the swift service account, used by the swift proxy services.
11     Type: String
12     NoEcho: true
13 Resources:
14   controller0Swift:
15     Type: OS::Heat::StructuredDeployment
16     Properties:
17       config: {Ref: SwiftConfig}
18       server: {Ref: controller0}
19       signal_transport: NO_SIGNAL
20       input_values:
21         swift_hash_suffix: {Ref: SwiftHashSuffix}
22         swift_password: {Ref: SwiftPassword}
23         swift_devices:
24           Fn::Join:
25           - ', '
26           - - Fn::Join:
27               - ''
28               - - 'r1z1-'
29                 - {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [controller0, networks]} ]} ] }
30                 - ':%PORT%/d1'
31             - Fn::Join:
32               - ', '
33               - Merge::Map:
34                   SwiftStorage0:
35                     Fn::Join:
36                     - ''
37                     - - 'r1z1-'
38                       - Fn::Select:
39                         - 0
40                         - Fn::Select:
41                           - 'ctlplane'
42                           - Fn::GetAtt:
43                             - SwiftStorage0
44                             - networks
45                       - ':%PORT%/d1'
46         swift_proxy_memcache:
47           Fn::Join:
48           - ', '
49           - - Fn::Join:
50               - ''
51               - - {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {"Fn::GetAtt": [controller0, networks]} ]} ] }
52                 - ':11211'
53             - Fn::Join:
54               - ', '
55               - Merge::Map:
56                   SwiftStorage0:
57                     Fn::Join:
58                     - ''
59                     - - Fn::Select:
60                         - 0
61                         - Fn::Select:
62                           - 'ctlplane'
63                           - Fn::GetAtt:
64                             - SwiftStorage0
65                             - networks
66                       - ':11211'
67