puppet-cinder/manifests/config.pp
Takashi Kajinami ae0372f790 Update comment to fix lint
manifests/backend/dellemc_powermax.pp:43:WARNING: No matching defined
type parameter for documentation of
cinder::backend::dellemc_powermax::volume_driver
manifests/backend/san.pp:52:WARNING: Duplicate defined type parameter
documentation for cinder::backend::san::ssh_min_pool_conn
manifests/backend/san.pp:49:WARNING: Duplicate defined type parameter
documentation for cinder::backend::san::ssh_min_pool_conn
manifests/backup/posix.pp:23:WARNING: No matching class parameter for
documentation of cinder::backup::posix::backup_enable_progress_timer
manifests/config.pp:7:WARNING: No matching class parameter for
documentation of cinder::config::xxx_config

Change-Id: I749dc975f4b8e273b5718ff893444c1c913a74db
2020-10-06 01:01:44 +00:00

44 lines
1.2 KiB
Puppet

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