ab6c6648f1a07077fefaf1ec38f8319a793c7624
[apex-tripleo-heat-templates.git] / puppet / services / swift-ringbuilder.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Swift Ringbuilder
5
6 parameters:
7   ServiceNetMap:
8     default: {}
9     description: Mapping of service_name -> network name. Typically set
10                  via parameter_defaults in the resource registry.  This
11                  mapping overrides those in ServiceNetMapDefaults.
12     type: json
13   EndpointMap:
14     default: {}
15     description: Mapping of service endpoint -> protocol. Typically set
16                  via parameter_defaults in the resource registry.
17     type: json
18   SwiftMinPartHours:
19     type: number
20     default: 1
21     description: The minimum time (in hours) before a partition in a ring can be moved following a rebalance.
22   SwiftPartPower:
23     default: 10
24     description: Partition Power to use when building Swift rings
25     type: number
26   SwiftRingBuild:
27     default: true
28     description: Whether to manage Swift rings or not
29     type: boolean
30   SwiftReplicas:
31     type: number
32     default: 3
33     description: How many replicas to use in the swift rings.
34
35 outputs:
36   role_data:
37     description: Role data for Swift Ringbuilder configuration.
38     value:
39       service_name: swift_ringbuilder
40       config_settings:
41         tripleo::profile::base::swift::ringbuilder::build_ring: {get_param: SwiftRingBuild}
42         tripleo::profile::base::swift::ringbuilder::replicas: {get_param: SwiftReplicas}
43         swift::ringbuilder::part_power: {get_param: SwiftPartPower}
44         swift::ringbuilder::min_part_hours: {get_param: SwiftMinPartHours}
45       step_config: |
46         include ::tripleo::profile::base::swift::ringbuilder