Files
puppet-nova/manifests/config.pp
Takashi Kajinami 414830e48b Remove the deprecated nova_api_paste_ini resource type
Change-Id: I7868ad180e5691b94507b09fc5b61459ed7265e0
2021-10-15 13:57:01 +09:00

43 lines
1.2 KiB
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'}
# }
# In yaml format, Example:
# nova_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.
#
# [*nova_api_paste_ini*]
# (optional) Allow configuration of arbitrary Nova paste api configurations.
# The value is an hash of nova_api_paste_ini resources. Example:
# { 'DEFAULT/foo' => { value => 'fooValue'},
# 'DEFAULT/bar' => { value => 'barValue'}
# }
#
class nova::config (
$nova_config = {},
$nova_api_paste_ini = {},
) {
include nova::deps
validate_legacy(Hash, 'validate_hash', $nova_config)
validate_legacy(Hash, 'validate_hash', $nova_api_paste_ini)
create_resources('nova_config', $nova_config)
create_resources('nova_api_paste_ini', $nova_api_paste_ini)
}