puppet-cinder/manifests/config.pp
Takashi Kajinami c495536f9a Add support for rootwrap.conf
Change-Id: I47eb5f99377974eeb8c6fe07c4baa6b40a8af407
2021-12-27 16:02:25 +09:00

50 lines
1.4 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 api-paste.ini configurations.
#
# [*cinder_rootwrap_config*]
# (optional) Allow configuration of rootwrap.conf 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 = {},
$cinder_rootwrap_config = {},
) {
include cinder::deps
validate_legacy(Hash, 'validate_hash', $cinder_config)
validate_legacy(Hash, 'validate_hash', $api_paste_ini_config)
validate_legacy(Hash, 'validate_hash', $cinder_rootwrap_config)
create_resources('cinder_config', $cinder_config)
create_resources('cinder_api_paste_ini', $api_paste_ini_config)
create_resources('cinder_rootwrap_config', $cinder_rootwrap_config)
}