c659733d39
This adds defined anchor points for external modules to hook into the software install, config and service dependency chain. This allows external modules to manage software installation (virtualenv, containers, etc) and service management (pacemaker) without needing rely on resources that may change or be renamed. Change-Id: I00cf4846bb933291469be94c9debed425eddf798
32 lines
803 B
Puppet
32 lines
803 B
Puppet
# == 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.
|
|
#
|
|
class swift::config (
|
|
$swift_config = {},
|
|
) {
|
|
|
|
include ::swift::deps
|
|
validate_hash($swift_config)
|
|
|
|
create_resources('swift_config', $swift_config)
|
|
}
|