diff options
author | blsaws <bryan.sullivan@att.com> | 2016-05-11 21:22:03 -0700 |
---|---|---|
committer | blsaws <bs3131@att.com> | 2016-05-11 21:27:35 -0700 |
commit | 2928ffc921af0ec26ccfda1b973f7eebbc64d88f (patch) | |
tree | 7b38060b2e1e19f48c3f3eb4c92465b3e71735e3 /components/congress/puppet/manifests/config.pp | |
parent | 2f9c61889d640dce26a9d0350caa43bb2faae82e (diff) |
Add baseline puppet module
JIRA: COPPER-2
Change-Id: Ieb773594917aeca48ceca4250de9b4aede9961a8
Signed-off-by: blsaws <bs3131@att.com>
Diffstat (limited to 'components/congress/puppet/manifests/config.pp')
-rw-r--r-- | components/congress/puppet/manifests/config.pp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/components/congress/puppet/manifests/config.pp b/components/congress/puppet/manifests/config.pp new file mode 100644 index 0000000..0a59d07 --- /dev/null +++ b/components/congress/puppet/manifests/config.pp @@ -0,0 +1,30 @@ +# == Class: congress::config +# +# This class is used to manage arbitrary congress configurations. +# +# === Parameters +# +# [*congress_config*] +# (optional) Allow configuration of arbitrary congress configurations. +# The value is an hash of congress_config resources. Example: +# { 'DEFAULT/foo' => { value => 'fooValue'}, +# 'DEFAULT/bar' => { value => 'barValue'} +# } +# In yaml format, Example: +# congress_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 congress::config ( + $congress_config = {}, +) { + + validate_hash($congress_config) + + create_resources('congress_config', $congress_config) +} |