File: config.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 (67 lines) | stat: -rw-r--r-- 2,523 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# == Class: swift::config
#
# This class is used to manage arbitrary Swift configurations.
#
# === Parameters
#
# [*swift_config*]
#   (optional) Allow configuration of arbitrary Swift configurations.
#   The value is an hash of swift_config resources. Example:
#   { 'DEFAULT/foo' => { value => 'fooValue'},
#     'DEFAULT/bar' => { value => 'barValue'}
#   }
#   In yaml format, Example:
#   swift_config:
#     DEFAULT/foo:
#       value: fooValue
#     DEFAULT/bar:
#       value: barValue
#
#   NOTE: The configuration MUST NOT be already handled by this module
#   or Puppet catalog compilation will fail with duplicate resources.
#
# [*swift_container_sync_realms_config*]
#   (optional) Allow configuration for specifying the allowable
#   clusters and their information.
#
# [*swift_proxy_config*]
#   (optional) Allow configuration of arbitrary Swift Proxy configurations.
#   The value is an hash of swift_proxy_config resources.
#
# [*swift_account_config*]
#   (optional) Allow configuration of arbitrary Swift Account configurations.
#   The value is an hash of swift_account_config resources.
#
# [*swift_container_config*]
#   (optional) Allow configuration of arbitrary Swift Container configurations.
#   The value is an hash of swift_container_config resources.
#
# [*swift_object_config*]
#   (optional) Allow configuration of arbitrary Swift Object configurations.
#   The value is an hash of swift_object_config resources.
#
# [*swift_internal_client_config*]
#   (optional) Allow configuration of arbitrary Swift internal client
#   configurations.
#   The value is an hash of swift_internal_client_config resources.
#
class swift::config (
  Hash $swift_config                       = {},
  Hash $swift_container_sync_realms_config = {},
  Hash $swift_proxy_config                 = {},
  Hash $swift_account_config               = {},
  Hash $swift_container_config             = {},
  Hash $swift_object_config                = {},
  Hash $swift_internal_client_config       = {},
) {

  include swift::deps

  create_resources('swift_config', $swift_config)
  create_resources('swift_container_sync_realms_config', $swift_container_sync_realms_config)
  create_resources('swift_proxy_config', $swift_proxy_config)
  create_resources('swift_account_config', $swift_proxy_config)
  create_resources('swift_container_config', $swift_container_config)
  create_resources('swift_object_config', $swift_object_config)
  create_resources('swift_internal_client_config', $swift_internal_client_config)
}