Files
puppet-swift/manifests/ringbuilder.pp
Dan Bode 18d681943e Add inline docs to manifests
This commit adds some initial inline documentation
of the manifests.

It also performs some basic whitespace cleanup.
2012-02-13 15:39:18 -08:00

50 lines
1.3 KiB
Puppet

# Used to configure nodes that are responsible for managing swift rings.
# Rings are used to make decitions about how to map objects in the cluster
#
# Specifies the following relationship:
# Rings shoudl be created before any devices are added to them
# Rings should be rebalanced if anything changes
# == Parameters
# # TODO - I need to review the ringbuilder docs
# [*part_power*]
# [*replicas*]
# [*min_part_hours*]
#
# == Dependencies
#
# Class['swift']
#
# == Examples
#
# == Authors
#
# Dan Bode dan@puppetlabs.com
#
# == Copyright
#
# Copyright 2011 Puppetlabs Inc, unless otherwise noted.
#
class swift::ringbuilder(
$part_power = undef,
$replicas = undef,
$min_part_hours = undef
) {
Class['swift'] -> Class['swift::ringbuilder']
swift::ringbuilder::create{ ['object', 'account', 'container']:
part_power => $part_power,
replicas => $replicas,
min_part_hours => $min_part_hours,
}
Swift::Ringbuilder::Create['object'] -> Ring_object_device <| |> ~> Swift::Ringbuilder::Rebalance['object']
Swift::Ringbuilder::Create['container'] -> Ring_container_device <| |> ~> Swift::Ringbuilder::Rebalance['container']
Swift::Ringbuilder::Create['account'] -> Ring_account_device <| |> ~> Swift::Ringbuilder::Rebalance['account']
swift::ringbuilder::rebalance{ ['object', 'account', 'container']: }
}