Merge "Add SSL PKI properties for keystone"
[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   SwiftMinPartHours:
9     type: number
10     default: 1
11     description: The minimum time (in hours) before a partition in a ring can be moved following a rebalance.
12   SwiftPartPower:
13     default: 10
14     description: Partition Power to use when building Swift rings
15     type: number
16   SwiftPassword:
17     default: unset
18     description: The password for the swift service account, used by the swift proxy services.
19     type: string
20     hidden: true
21   SwiftReplicas:
22     type: number
23     default: 1
24     description: How many replicas to use in the swift rings.
25 resources:
26   controller0Swift:
27     type: OS::Heat::StructuredDeployment
28     properties:
29       config: {get_resource: SwiftConfig}
30       server: {get_resource: controller0}
31       signal_transport: NO_SIGNAL
32       input_values:
33         swift_hash_suffix: {get_param: SwiftHashSuffix}
34         swift_password: {get_param: SwiftPassword}
35         swift_part_power: {get_param: SwiftPartPower}
36         swift_devices:
37           Fn::Join:
38           - ', '
39           - Merge::Map:
40               controller0:
41                 Fn::Join:
42                 - ''
43                 - - 'r1z1-'
44                   - {get_attr: [controller0, networks, ctlplane, 0]}
45                   - ':%PORT%/d1'
46               SwiftStorage0:
47                 Fn::Join:
48                 - ''
49                 - - 'r1z1-'
50                   - {get_attr: [SwiftStorage0, networks, ctlplane, 0]}
51                   - ':%PORT%/d1'
52         swift_proxy_memcache:
53           Fn::Join:
54             - ','
55             - Merge::Map:
56                 controller0:
57                   Fn::Join:
58                     - ', '
59                     - - Fn::Join:
60                         - ''
61                         - - {get_attr: [controller0, networks, ctlplane, 0]}
62                           - ':11211'
63         swift_replicas: { get_param: SwiftReplicas}
64         swift_min_part_hours: { get_param: SwiftMinPartHours}