Merge "Deprecate Role and ImageBuilder metadata handling"
[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   SwiftPartPower:
14     default: 10
15     description: Partition Power to use when building Swift rings
16     type: number
17   SwiftReplicas:
18     type: number
19     default: 1
20     description: How many replicas to use in the swift rings.
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_part_power: {get_param: SwiftPartPower}
32         swift_devices:
33           Fn::Join:
34           - ', '
35           - Merge::Map:
36               controller0:
37                 Fn::Join:
38                 - ''
39                 - - 'r1z1-'
40                   - {get_attr: [controller0, networks, ctlplane, 0]}
41                   - ':%PORT%/d1'
42               SwiftStorage0:
43                 Fn::Join:
44                 - ''
45                 - - 'r1z1-'
46                   - {get_attr: [SwiftStorage0, networks, ctlplane, 0]}
47                   - ':%PORT%/d1'
48         swift_proxy_memcache:
49           Fn::Join:
50             - ','
51             - Merge::Map:
52                 controller0:
53                   Fn::Join:
54                     - ', '
55                     - - Fn::Join:
56                         - ''
57                         - - {get_attr: [controller0, networks, ctlplane, 0]}
58                           - ':11211'
59         swift_replicas: { get_param: SwiftReplicas}