
1) Add deps to all that is needed. 2) Update releated spec tests. Change-Id: If7dffdabbb4ea57763f41b7a2a6adf9d274b29bc
33 lines
857 B
Puppet
33 lines
857 B
Puppet
# == Class: cloudkitty::config
|
|
#
|
|
# This class is used to manage arbitrary cloudkitty configurations.
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*cloudkitty_config*]
|
|
# (optional) Allow configuration of arbitrary cloudkitty configurations.
|
|
# The value is an hash of cloudkitty_config resources. Example:
|
|
# { 'DEFAULT/foo' => { value => 'fooValue'},
|
|
# 'DEFAULT/bar' => { value => 'barValue'}
|
|
# }
|
|
# In yaml format, Example:
|
|
# cloudkitty_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 cloudkitty::config (
|
|
$cloudkitty_config = {},
|
|
) {
|
|
|
|
include ::cloudkitty::deps
|
|
|
|
validate_hash($cloudkitty_config)
|
|
|
|
create_resources('cloudkitty_config', $cloudkitty_config)
|
|
}
|