18d681943e
This commit adds some initial inline documentation of the manifests. It also performs some basic whitespace cleanup.
19 lines
542 B
Puppet
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,
|
|
}
|
|
}
|