6fed9719ed
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.
11 lines
196 B
Puppet
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",
|
|
}
|
|
}
|