puppet-murano/manifests/config.pp
ZhongShengping 9412a6f45a Add hooks for external install & svc management
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: If27e91cee37d816bfc7b577a154c71a9e5a48324
2016-12-07 10:51:35 +08:00

51 lines
1.5 KiB
Puppet

# == Class: murano::config
#
# This class is used to manage arbitrary murano configurations.
#
# === Parameters
#
# [*murano_config*]
# (optional) Allow configuration of arbitrary murano configurations.
# The value is an hash of murano_config resources. Example:
# { 'DEFAULT/foo' => { value => 'fooValue'},
# 'DEFAULT/bar' => { value => 'barValue'}
# }
# In yaml format, Example:
# murano_config:
# DEFAULT/foo:
# value: fooValue
# DEFAULT/bar:
# value: barValue
#
# [*murano_cfapi_config*]
# (optional) Allow configuration of CFAPI Murano service
#
# [*murano_paste_config*]
# (optional) Allow configuration of arbitrary murano paste configurations.
#
# [*murano_cfapi_paste_config*]
# (optional) Allow configuration of CFAPI Murano paste configurations.
#
# NOTE: The configuration MUST NOT be already handled by this module
# or Puppet catalog compilation will fail with duplicate resources.
#
class murano::config (
$murano_config = {},
$murano_cfapi_config = {},
$murano_paste_config = {},
$murano_cfapi_paste_config = {}
) {
include ::murano::deps
validate_hash($murano_config)
validate_hash($murano_cfapi_config)
validate_hash($murano_paste_config)
validate_hash($murano_cfapi_paste_config)
create_resources('murano_config', $murano_config)
create_resources('murano_cfapi_config', $murano_cfapi_config)
create_resources('murano_paste_ini_config', $murano_paste_config)
create_resources('murano_cfapi_paste_ini_config', $murano_cfapi_paste_config)
}