109cd356de
... because the latest lint no longer allows usage of legacy facts and top scope fact. Change-Id: I4c0a9357fcc4184df852024e1f6f36c0ed2e1440
33 lines
833 B
Puppet
33 lines
833 B
Puppet
#
|
|
# Configure Swift Container Sync
|
|
#
|
|
# == Parameters
|
|
#
|
|
# [*allow_full_urls*]
|
|
# (Optional) Allow full URL values to be set for new X-Container-Sync-To
|
|
# headers.
|
|
# Defaults to $facts['os_service_default']
|
|
#
|
|
# [*current*]
|
|
# (Optional) Set this to specify this clusters //realm/cluster as "current" in
|
|
# /info.
|
|
# Defaults to $facts['os_service_default']
|
|
#
|
|
# == Authors
|
|
#
|
|
# Denis Egorenko <degorenko@mirantis.com>
|
|
#
|
|
class swift::proxy::container_sync(
|
|
$allow_full_urls = $facts['os_service_default'],
|
|
$current = $facts['os_service_default'],
|
|
) {
|
|
|
|
include swift::deps
|
|
|
|
swift_proxy_config {
|
|
'filter:container_sync/use': value => 'egg:swift#container_sync';
|
|
'filter:container_sync/allow_full_urls': value => $allow_full_urls;
|
|
'filter:container_sync/current': value => $current;
|
|
}
|
|
}
|