Merge "Fix spelling of controller0_VLANPort"
[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   SwiftReplicas:
14     type: number
15     default: 1
16     description: How many replicas to use in the swift rings.
17 resources:
18   controller0Swift:
19     type: OS::Heat::StructuredDeployment
20     properties:
21       config: {get_resource: SwiftConfig}
22       server: {get_resource: controller0}
23       signal_transport: NO_SIGNAL
24       input_values:
25         swift_hash_suffix: {get_param: SwiftHashSuffix}
26         swift_password: {get_param: SwiftPassword}
27         swift_devices:
28           Fn::Join:
29           - ', '
30           - Merge::Map:
31               controller0:
32                 Fn::Join:
33                 - ''
34                 - - 'r1z1-'
35                   - {get_attr: [controller0, networks, ctlplane, 0]}
36                   - ':%PORT%/d1'
37               SwiftStorage0:
38                 Fn::Join:
39                 - ''
40                 - - 'r1z1-'
41                   - {get_attr: [SwiftStorage0, networks, ctlplane, 0]}
42                   - ':%PORT%/d1'
43         swift_proxy_memcache:
44           Fn::Join:
45             - ','
46             - Merge::Map:
47                 controller0:
48                   Fn::Join:
49                     - ', '
50                     - - Fn::Join:
51                         - ''
52                         - - {get_attr: [controller0, networks, ctlplane, 0]}
53                           - ':11211'
54         swift_replicas: { get_param: SwiftReplicas}