1 heat_template_version: pike
4 OpenStack Swift Ringbuilder
7 DockerSwiftConfigImage:
8 description: The container image to use for the swift config_volume
10 DockerSwiftRingbuilderConfigImage:
11 description: Fake parameter to bypass config_volume yaml validation
16 description: Dictionary packing service data
20 description: Mapping of service_name -> network name. Typically set
21 via parameter_defaults in the resource registry. This
22 mapping overrides those in ServiceNetMapDefaults.
29 description: Role name on which the service is applied
33 description: Parameters specific to the role
37 description: Mapping of service endpoint -> protocol. Typically set
38 via parameter_defaults in the resource registry.
43 description: The minimum time (in hours) before a partition in a ring can be moved following a rebalance.
46 description: Partition Power to use when building Swift rings
50 description: Whether to manage Swift rings or not
55 description: How many replicas to use in the swift rings.
58 description: 'A hash of additional raw devices to use as Swift backend (eg. {sdb: {}})'
62 description: 'Use a local directory for Swift storage services when building rings'
66 description: A temporary Swift URL to download rings from.
70 description: A temporary Swift URL to upload rings to.
76 type: ../../puppet/services/swift-ringbuilder.yaml
78 EndpointMap: {get_param: EndpointMap}
79 ServiceData: {get_param: ServiceData}
80 ServiceNetMap: {get_param: ServiceNetMap}
81 DefaultPasswords: {get_param: DefaultPasswords}
82 RoleName: {get_param: RoleName}
83 RoleParameters: {get_param: RoleParameters}
87 description: Role data for Swift Ringbuilder configuration in containers.
89 service_name: {get_attr: [SwiftRingbuilderBase, role_data, service_name]}
92 - {get_attr: [SwiftRingbuilderBase, role_data, config_settings]}
93 - tripleo::profile::base::swift::ringbuilder:skip_consistency_check: true
94 logging_source: {get_attr: [SwiftRingbuilderBase, role_data, logging_source]}
95 logging_groups: {get_attr: [SwiftRingbuilderBase, role_data, logging_groups]}
96 step_config: &step_config
97 get_attr: [SwiftRingbuilderBase, role_data, step_config]
98 service_config_settings: {get_attr: [SwiftRingbuilderBase, role_data, service_config_settings]}
99 # BEGIN DOCKER SETTINGS
101 config_volume: 'swift_ringbuilder'
102 puppet_tags: exec,fetch_swift_ring_tarball,extract_swift_ring_tarball,ring_object_device,swift::ringbuilder::create,tripleo::profile::base::swift::add_devices,swift::ringbuilder::rebalance,create_swift_ring_tarball,upload_swift_ring_tarball
103 step_config: *step_config
104 config_image: &swift_ringbuilder_image {get_param: DockerSwiftConfigImage}
109 image: *swift_ringbuilder_image
113 # Use bash to run the cp command so that wildcards can be used
116 - 'cp -v -a -t /etc/swift /swift_ringbuilder/etc/swift/*.gz /swift_ringbuilder/etc/swift/*.builder /swift_ringbuilder/etc/swift/backups'
118 - /var/lib/config-data/puppet-generated/swift/etc/swift:/etc/swift:rw
119 - /var/lib/config-data/swift_ringbuilder:/swift_ringbuilder:ro