Files
puppet-nova/manifests/config.pp
Mathieu Gagné 4018835632 Introduce nova::config
Add a new class nova::config which allows the creation and
management of arbitrary nova_config and nova_api_paste_ini resources.

This will add the ability for the end user to use Hiera to manage
those resources.

Change-Id: Iad7a2b764884887a75f5f6db3e1660644e07c5c0
Closes-bug: #1290634
2014-03-22 00:19:59 -04:00

26 lines
742 B
Puppet

# == Class: nova::config
#
# This class is used to manage arbitrary Nova configurations.
#
# === Parameters
#
# [*nova_config*]
# (optional) Allow configuration of arbitrary Nova configurations.
# The value is an hash of nova_config resources. Example:
# { '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 nova::config (
$nova_config = {},
$nova_paste_api_ini = {},
) {
validate_hash($nova_config)
validate_hash($nova_paste_api_ini)
create_resources('nova_config', $nova_config)
create_resources('nova_paste_api_ini', $nova_paste_api_ini)
}