Port all templates to HOT
[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     hidden: 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     hidden: true
13 resources:
14   controller0Swift:
15     type: OS::Heat::StructuredDeployment
16     properties:
17       config: {get_resource: SwiftConfig}
18       server: {get_resource: controller0}
19       signal_transport: NO_SIGNAL
20       input_values:
21         swift_hash_suffix: {get_param: SwiftHashSuffix}
22         swift_password: {get_param: SwiftPassword}
23         swift_devices:
24           list_join:
25           - ', '
26           - Merge::Map:
27               controller0:
28                 list_join:
29                 - ''
30                 - - 'r1z1-'
31                   - {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {get_attr: [controller0, networks]} ]} ] }
32                   - ':%PORT%/d1'
33               SwiftStorage0:
34                 list_join:
35                 - ''
36                 - - 'r1z1-'
37                   - Fn::Select:
38                     - 0
39                     - Fn::Select:
40                       - 'ctlplane'
41                       - get_attr:
42                         - SwiftStorage0
43                         - networks
44                   - ':%PORT%/d1'
45         swift_proxy_memcache:
46           list_join:
47             - ','
48             - Merge::Map:
49                 controller0:
50                   list_join:
51                     - ', '
52                     - - list_join:
53                         - ''
54                         - - {"Fn::Select": [ 0, {"Fn::Select": [ "ctlplane", {get_attr: [controller0, networks]} ]} ] }
55                           - ':11211'