Add SwiftMinPartHours parameter
[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   SwiftMinPartHours:
18     type: number
19     default: 1
20     description: The minimum time (in hours) before a partition in a ring can be moved following a rebalance.
21 resources:
22   controller0Swift:
23     type: OS::Heat::StructuredDeployment
24     properties:
25       config: {get_resource: SwiftConfig}
26       server: {get_resource: controller0}
27       signal_transport: NO_SIGNAL
28       input_values:
29         swift_hash_suffix: {get_param: SwiftHashSuffix}
30         swift_password: {get_param: SwiftPassword}
31         swift_devices:
32           Fn::Join:
33           - ', '
34           - Merge::Map:
35               controller0:
36                 Fn::Join:
37                 - ''
38                 - - 'r1z1-'
39                   - {get_attr: [controller0, networks, ctlplane, 0]}
40                   - ':%PORT%/d1'
41               SwiftStorage0:
42                 Fn::Join:
43                 - ''
44                 - - 'r1z1-'
45                   - {get_attr: [SwiftStorage0, networks, ctlplane, 0]}
46                   - ':%PORT%/d1'
47         swift_proxy_memcache:
48           Fn::Join:
49             - ','
50             - Merge::Map:
51                 controller0:
52                   Fn::Join:
53                     - ', '
54                     - - Fn::Join:
55                         - ''
56                         - - {get_attr: [controller0, networks, ctlplane, 0]}
57                           - ':11211'
58         swift_replicas: { get_param: SwiftReplicas}
59         swift_min_part_hours: { get_param: SwiftMinPartHours}