puppet-swift/manifests/ringsync.pp
Dan 6fed9719ed Add code for ring syncing
This commit adds puppet code to handle syncing of the ring
databases.

The class swift::ringserver is used to set up an rsync server
that serve out the ring databases.

The define swift::ringsync is used to rsync these ring databases
to the other hosts.
2012-03-14 05:45:17 +00:00

11 lines
196 B
Puppet

define swift::ringsync(
$ring_server
) {
Exec { path => '/usr/bin' }
rsync::get { "/etc/swift/${name}.ring.gz":
source => "rsync://${ring_server}/swift_server/${name}.ring.gz",
}
}