puppet-swift/manifests/ringbuilder/rebalance.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

19 lines
542 B
Puppet

# Swift::Ring::Rebalance
# Reblances the specified ring. Assumes that the ring already exists
# and is stored at /etc/swift/${name}.builder
#
# == Parameters
#
# [*name*] Type of ring to rebalance. The ring file is assumed to be at the path
# /etc/swift/${name}.builder
define swift::ringbuilder::rebalance() {
validate_re($name, '^object|container|account$')
exec { "rebalance_${name}":
command => "swift-ring-builder /etc/swift/${name}.builder rebalance",
path => ['/usr/bin'],
refreshonly => true,
}
}