
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: Ibc184a50cf16b7048e0f7249f8894d8661bb76fe
39 lines
1017 B
Puppet
39 lines
1017 B
Puppet
# == Class: aodh::config
|
|
#
|
|
# This class is used to manage arbitrary aodh configurations.
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*aodh_config*]
|
|
# (optional) Allow configuration of arbitrary aodh configurations.
|
|
# The value is an hash of aodh_config resources. Example:
|
|
# { 'DEFAULT/foo' => { value => 'fooValue'},
|
|
# 'DEFAULT/bar' => { value => 'barValue'}
|
|
# }
|
|
# In yaml format, Example:
|
|
# aodh_config:
|
|
# DEFAULT/foo:
|
|
# value: fooValue
|
|
# DEFAULT/bar:
|
|
# value: barValue
|
|
#
|
|
# [*aodh_api_paste_ini*]
|
|
# (optional) Allow configuration of /etc/aodh/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 aodh::config (
|
|
$aodh_config = {},
|
|
$aodh_api_paste_ini = {},
|
|
) {
|
|
|
|
include ::aodh::deps
|
|
|
|
validate_hash($aodh_config)
|
|
validate_hash($aodh_api_paste_ini)
|
|
|
|
create_resources('aodh_config', $aodh_config)
|
|
create_resources('aodh_api_paste_ini', $aodh_api_paste_ini)
|
|
}
|