2012-01-23 11:37:55 -08:00
|
|
|
define swift::ringbuilder::rebalance() {
|
2012-01-23 10:47:35 -08:00
|
|
|
|
2012-01-23 11:39:03 -08:00
|
|
|
validate_re($name, '^object|container|account$')
|
2012-01-23 10:47:35 -08:00
|
|
|
|
2012-01-19 18:58:37 -08:00
|
|
|
exec { "rebalance_${name}":
|
2012-01-23 10:47:35 -08:00
|
|
|
command => "swift-ring-builder /etc/swift/${name}.builder rebalance",
|
2012-01-19 18:58:37 -08:00
|
|
|
path => ['/usr/bin'],
|
|
|
|
refreshonly => true,
|
|
|
|
}
|
|
|
|
}
|