2015-07-20 10:17:47 +02:00
|
|
|
# == Class: tempest::config
|
|
|
|
#
|
|
|
|
# This class is used to manage arbitrary Tempest configurations.
|
|
|
|
#
|
|
|
|
# === Parameters
|
|
|
|
#
|
|
|
|
# [*tempest_config*]
|
|
|
|
# (optional) Allow configuration of arbitrary Tempest configurations.
|
2016-04-05 10:51:17 -06:00
|
|
|
# Note: The tempest_config provider does not hard-code the path
|
|
|
|
# of the tempest config file so that tempest can be run out of temporary
|
|
|
|
# locations (i.e. /tmp/tempest). For this reason, you MUST pass "path"
|
|
|
|
# in this hash.
|
2015-07-20 10:17:47 +02:00
|
|
|
# The value is an hash of tempest_config resources. Example:
|
2016-04-05 10:51:17 -06:00
|
|
|
# {
|
|
|
|
# 'DEFAULT/foo' => { path => '/tmp/tempest/etc/tempest.conf'; value => 'fooValue'},
|
|
|
|
# 'DEFAULT/bar' => { path => '/tmp/tempest/etc/tempest.conf'; value => 'fooValue'},
|
2015-07-20 10:17:47 +02:00
|
|
|
# }
|
|
|
|
# In yaml format, Example:
|
|
|
|
# tempest_config:
|
|
|
|
# DEFAULT/foo:
|
|
|
|
# value: fooValue
|
2016-04-05 10:51:17 -06:00
|
|
|
# path: /tmp/tempest/etc/tempest.conf
|
2015-07-20 10:17:47 +02:00
|
|
|
# DEFAULT/bar:
|
|
|
|
# value: barValue
|
2016-04-05 10:51:17 -06:00
|
|
|
# path: /tmp/tempest/etc/tempest.conf
|
2015-07-20 10:17:47 +02:00
|
|
|
#
|
|
|
|
# NOTE: The configuration MUST NOT be already handled by this module
|
|
|
|
# or Puppet catalog compilation will fail with duplicate resources.
|
|
|
|
#
|
|
|
|
class tempest::config (
|
2023-07-05 11:51:58 +09:00
|
|
|
Hash $tempest_config = {},
|
2015-07-20 10:17:47 +02:00
|
|
|
) {
|
|
|
|
|
|
|
|
create_resources('tempest_config', $tempest_config)
|
|
|
|
}
|