puppet-nova/manifests/config.pp
Takashi Kajinami b5c5d7acc3 Rename nova_paste_api_ini to nova_api_paste_ini
... so that the name is consistent with the other puppet modules.

Change-Id: I8237b7760f3f7a7bf2806524b2582ef85d3bc6d5
2020-05-03 00:34:19 +09:00

62 lines
1.8 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_paste_api_ini resources. Example:
# { 'DEFAULT/foo' => { value => 'fooValue'},
# 'DEFAULT/bar' => { value => 'barValue'}
# }
#
# DEPRECATED PARAMETERS
#
# [*nova_paste_api_ini*]
# (optional) Allow configuration of arbitrary Nova paste api configurations.
# The value is an hash of nova_paste_api_ini resources. Example:
# { 'DEFAULT/foo' => { value => 'fooValue'},
# 'DEFAULT/bar' => { value => 'barValue'}
# }
#
class nova::config (
$nova_config = {},
$nova_api_paste_ini = {},
# DEPRECATED PARAMETERS
$nova_paste_api_ini = undef,
) {
include nova::deps
if $nova_paste_api_ini != undef {
warning('nova_paste_api_ini is deprecated and will be removed in a future
release. Use nova_api_paste_init')
$nova_api_paste_ini_real = $nova_paste_api_ini
} else {
$nova_api_paste_ini_real = $nova_api_paste_ini
}
validate_legacy(Hash, 'validate_hash', $nova_config)
validate_legacy(Hash, 'validate_hash', $nova_api_paste_ini_real)
create_resources('nova_config', $nova_config)
create_resources('nova_api_paste_ini', $nova_api_paste_ini_real)
}