puppet-magnum/manifests/config.pp
Takashi Kajinami 33a84b2602 replace validate_legacy with proper data types
the validate_legacy function is marked for deprecation in
v9.0.0 from puppetlabs-stdlib.

Change-Id: Icdd88de21e43fc645303a96fe36995d8652fcb6d
2023-06-20 22:23:40 +09:00

36 lines
989 B
Puppet

# == Class: magnum::config
#
# This class is used to manage arbitrary magnum configurations.
#
# === Parameters
#
# [*magnum_config*]
# (optional) Allow configuration of arbitrary magnum configurations.
# The value is an hash of magnum_config resources. Example:
# { 'DEFAULT/foo' => { value => 'fooValue'},
# 'DEFAULT/bar' => { value => 'barValue'}
# }
# In yaml format, Example:
# magnum_config:
# DEFAULT/foo:
# value: fooValue
# DEFAULT/bar:
# value: barValue
#
# [*magnum_api_paste_ini*]
# (optional) Allow configuration of /etc/magnum/api-paste.ini options.
#
# NOTE: The configuration MUST NOT be already handled by this module
# or Puppet catalog compilation will fail with duplicate resources.
#
class magnum::config (
Hash $magnum_config = {},
Hash $magnum_api_paste_ini = {},
) {
include magnum::deps
create_resources('magnum_config', $magnum_config)
create_resources('magnum_api_paste_ini', $magnum_api_paste_ini)
}