7bf0e24007
this path aims to add designate_rootwrap_config in designate::config. use designate config resources to manage custom configurations in rootwrap config files. Change-Id: Iee8aa66ff6464f387664d2a0571f6e6ad685dc2b
46 lines
1.3 KiB
Puppet
46 lines
1.3 KiB
Puppet
# == Class: designate::config
|
|
#
|
|
# This class is used to manage arbitrary designate configurations.
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*xxx_config*]
|
|
# (optional) Allow configuration of arbitrary designate 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
|
|
#
|
|
# [*designate_config*]
|
|
# (optional) Allow configuration of designate.conf configurations.
|
|
#
|
|
# [*api_paste_ini_config*]
|
|
# (optional) Allow configuration of /etc/designate/api-paste.ini configurations.
|
|
#
|
|
# NOTE: The configuration MUST NOT be already handled by this module
|
|
# or Puppet catalog compilation will fail with duplicate resources.
|
|
#
|
|
# [*rootwrap_config*]
|
|
# (optional) Allow configuration of /etc/designate/rootwrap.conf.
|
|
#
|
|
class designate::config (
|
|
$designate_config = {},
|
|
$api_paste_ini_config = {},
|
|
$rootwrap_config = {},
|
|
) {
|
|
validate_hash($designate_config)
|
|
validate_hash($api_paste_ini_config)
|
|
validate_hash($rootwrap_config)
|
|
|
|
create_resources('designate_config', $designate_config)
|
|
create_resources('designate_api_paste_ini', $api_paste_ini_config)
|
|
create_resources('designate_rootwrap_config', $rootwrap_config)
|
|
}
|