1 heat_template_version: pike
4 OpenStack Swift Ringbuilder
9 description: Dictionary packing service data
13 description: Mapping of service_name -> network name. Typically set
14 via parameter_defaults in the resource registry. This
15 mapping overrides those in ServiceNetMapDefaults.
22 description: Role name on which the service is applied
26 description: Parameters specific to the role
30 description: Mapping of service endpoint -> protocol. Typically set
31 via parameter_defaults in the resource registry.
36 description: The minimum time (in hours) before a partition in a ring can be moved following a rebalance.
39 description: Partition Power to use when building Swift rings
43 description: Whether to manage Swift rings or not
48 description: How many replicas to use in the swift rings.
51 description: 'A hash of additional raw devices to use as Swift backend (eg. {sdb: {}})'
55 description: 'Use a local directory for Swift storage services when building rings'
59 description: A temporary Swift URL to download rings from.
63 description: A temporary Swift URL to upload rings to.
70 - get_param: SwiftUseLocalDir
73 - get_param: SwiftRawDisks
78 description: Role data for Swift Ringbuilder configuration.
80 service_name: swift_ringbuilder
82 tripleo::profile::base::swift::ringbuilder::swift_ring_get_tempurl: {get_param: SwiftRingGetTempurl}
83 tripleo::profile::base::swift::ringbuilder::swift_ring_put_tempurl: {get_param: SwiftRingPutTempurl}
84 tripleo::profile::base::swift::ringbuilder::build_ring: {get_param: SwiftRingBuild}
85 tripleo::profile::base::swift::ringbuilder::replicas: {get_param: SwiftReplicas}
86 tripleo::profile::base::swift::ringbuilder::part_power: {get_param: SwiftPartPower}
87 tripleo::profile::base::swift::ringbuilder::min_part_hours: {get_param: SwiftMinPartHours}
88 tripleo::profile::base::swift::ringbuilder::raw_disk_prefix: 'r1z1-'
89 tripleo::profile::base::swift::ringbuilder::raw_disks:
91 expression: $.data.raw_disk_lists.flatten()
94 - {if: [swift_use_local_dir, [':%PORT%/d1'], []]}
96 template: ':%PORT%/DEVICE'
98 DEVICE: {get_param: SwiftRawDisks}
100 include ::tripleo::profile::base::swift::ringbuilder