File: container_sync.pp

package info (click to toggle)
puppet-module-swift 25.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,400 kB
  • sloc: ruby: 9,593; python: 38; sh: 10; makefile: 10
file content (32 lines) | stat: -rw-r--r-- 833 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#
# 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;
  }
}