James E. Blair fc572bdcb5 Initial commit
Change-Id: I380308eb96024792f416c1bf0bf0062bf143b923
2015-09-16 08:17:13 -07:00

31 lines
783 B
Puppet

# == Class: odsreg::config
#
# This class is used to manage arbitrary odsreg configurations.
#
# === Parameters
#
# [*odsreg_config*]
# (optional) Allow configuration of arbitrary odsreg configurations.
# The value is an hash of odsreg_config resources. Example:
# { 'DEFAULT/foo' => { value => 'fooValue'},
# 'DEFAULT/bar' => { value => 'barValue'}
# }
# In yaml format, Example:
# odsreg_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 odsreg::config (
$odsreg_config = {},
) {
validate_hash($odsreg_config)
create_resources('odsreg_config', $odsreg_config)
}