puppet-manila/manifests/config.pp
Takashi Kajinami 022661a7b9 Update comment to fix lint
manifests/config.pp:7:WARNING: No matching class parameter for
documentation of manila::config::xxx_config

Change-Id: Ic568499178fa0c8bfb9545dc1d78ee794df5ad91
2020-10-06 00:20:07 +09:00

43 lines
1.2 KiB
Puppet

# == Class: manila::config
#
# This class is used to manage arbitrary manila configurations.
#
# example xxx_config
# (optional) Allow configuration of arbitrary manila configurations.
# The value is an 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
#
# [*manila_config*]
# (optional) Allow configuration of manila.conf configurations.
#
# [*api_paste_ini_config*]
# (optional) Allow configuration of /etc/manila/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 manila::config (
$manila_config = {},
$api_paste_ini_config = {},
) {
include manila::deps
validate_legacy(Hash, 'validate_hash', $manila_config)
validate_legacy(Hash, 'validate_hash', $api_paste_ini_config)
create_resources('manila_config', $manila_config)
create_resources('manila_api_paste_ini', $api_paste_ini_config)
}