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

  include vigie::deps

  create_resources('vigie_config', $vigie_config)
}
