puppet-swift/manifests/ringsync.pp
Takashi Kajinami 0f7bdd733a replace validate_legacy
the validate_legacy function is marked for deprecation in
v9.0.0 from puppetlabs-stdlib.

Change-Id: I920294342c9c2c0567796f345cbfa9e39bb1f1d3
2023-09-19 13:33:00 +00:00

21 lines
467 B
Puppet

# == Define: swift::ringsync
#
# [*ring_server*]
# (required) IP or hostname of ring servers
# [*ring_type*]
# (optional) The type of ring to create. Accepts object|container|account
#
define swift::ringsync(
String[1] $ring_server,
Swift::RingType $ring_type = $name,
) {
include swift::deps
Exec { path => '/usr/bin' }
rsync::get { "/etc/swift/${ring_type}.ring.gz":
source => "rsync://${ring_server}/swift_server/${ring_type}.ring.gz",
}
}