1 heat_template_version: ocata
4 OpenStack Swift Ringbuilder
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.
18 description: Mapping of service endpoint -> protocol. Typically set
19 via parameter_defaults in the resource registry.
24 description: The minimum time (in hours) before a partition in a ring can be moved following a rebalance.
27 description: Partition Power to use when building Swift rings
31 description: Whether to manage Swift rings or not
36 description: How many replicas to use in the swift rings.
39 description: 'A hash of additional raw devices to use as Swift backend (eg. {sdb: {}})'
43 description: 'Use a local directory for Swift storage services when building rings'
50 - get_param: SwiftUseLocalDir
53 - get_param: SwiftRawDisks
58 description: Role data for Swift Ringbuilder configuration.
60 service_name: swift_ringbuilder
62 tripleo::profile::base::swift::ringbuilder::build_ring: {get_param: SwiftRingBuild}
63 tripleo::profile::base::swift::ringbuilder::replicas: {get_param: SwiftReplicas}
64 tripleo::profile::base::swift::ringbuilder::part_power: {get_param: SwiftPartPower}
65 tripleo::profile::base::swift::ringbuilder::min_part_hours: {get_param: SwiftMinPartHours}
66 tripleo::profile::base::swift::ringbuilder::raw_disk_prefix: 'r1z1-'
67 tripleo::profile::base::swift::ringbuilder::raw_disks:
69 expression: $.data.raw_disk_lists.flatten()
72 - {if: [swift_use_local_dir, [':%PORT%/d1'], []]}
74 template: ':%PORT%/DEVICE'
76 DEVICE: {get_param: SwiftRawDisks}
78 include ::tripleo::profile::base::swift::ringbuilder