7e48371ebf
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: Ie0fa86a383a19b272a2bdaedb61ede73cad6934f
39 lines
1.0 KiB
Puppet
39 lines
1.0 KiB
Puppet
# == Class: panko::config
|
|
#
|
|
# This class is used to manage arbitrary panko configurations.
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*panko_config*]
|
|
# (optional) Allow configuration of arbitrary panko configurations.
|
|
# The value is an hash of panko_config resources. Example:
|
|
# { 'DEFAULT/foo' => { value => 'fooValue'},
|
|
# 'DEFAULT/bar' => { value => 'barValue'}
|
|
# }
|
|
# In yaml format, Example:
|
|
# panko_config:
|
|
# DEFAULT/foo:
|
|
# value: fooValue
|
|
# DEFAULT/bar:
|
|
# value: barValue
|
|
#
|
|
# [*panko_api_paste_ini*]
|
|
# (optional) Allow configuration of /etc/panko/api-paste.ini options.
|
|
#
|
|
# NOTE: The configuration MUST NOT be already handled by this module
|
|
# or Puppet catalog compilation will fail with duplicate resources.
|
|
#
|
|
class panko::config (
|
|
$panko_config = {},
|
|
$panko_api_paste_ini = {},
|
|
) {
|
|
|
|
include ::panko::deps
|
|
|
|
validate_hash($panko_config)
|
|
validate_hash($panko_api_paste_ini)
|
|
|
|
create_resources('panko_config', $panko_config)
|
|
create_resources('panko_api_paste_ini', $panko_api_paste_ini)
|
|
}
|