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