2014-04-03 17:44:35 +08:00
|
|
|
# == Class: keystone::config
|
|
|
|
#
|
|
|
|
# This class is used to manage arbitrary keystone configurations.
|
|
|
|
#
|
|
|
|
# === Parameters
|
|
|
|
#
|
|
|
|
# [*keystone_config*]
|
|
|
|
# (optional) Allow configuration of arbitrary keystone configurations.
|
|
|
|
# The value is an hash of keystone_config resources. Example:
|
|
|
|
# { 'DEFAULT/foo' => { value => 'fooValue'},
|
|
|
|
# 'DEFAULT/bar' => { value => 'barValue'}
|
|
|
|
# }
|
|
|
|
# In yaml format, Example:
|
|
|
|
# keystone_config:
|
|
|
|
# DEFAULT/foo:
|
|
|
|
# value: fooValue
|
|
|
|
# DEFAULT/bar:
|
|
|
|
# value: barValue
|
|
|
|
#
|
|
|
|
# NOTE: The configuration MUST NOT be already handled by this module
|
|
|
|
# or Puppet catalog compilation will fail with duplicate resources.
|
|
|
|
#
|
|
|
|
class keystone::config (
|
2019-05-10 16:42:04 +02:00
|
|
|
$keystone_config = {},
|
2014-04-03 17:44:35 +08:00
|
|
|
) {
|
|
|
|
|
2019-12-08 23:09:22 +01:00
|
|
|
include keystone::deps
|
2016-02-23 18:31:15 -07:00
|
|
|
|
2019-02-23 12:32:35 +01:00
|
|
|
validate_legacy(Hash, 'validate_hash', $keystone_config)
|
|
|
|
|
2014-04-03 17:44:35 +08:00
|
|
|
create_resources('keystone_config', $keystone_config)
|
|
|
|
}
|