2015-07-16 15:26:14 +02:00
|
|
|
# == Class: heat::config
|
|
|
|
#
|
|
|
|
# This class is used to manage arbitrary Heat configurations.
|
|
|
|
#
|
|
|
|
# === Parameters
|
|
|
|
#
|
|
|
|
# [*heat_config*]
|
|
|
|
# (optional) Allow configuration of arbitrary Heat configurations.
|
2015-12-30 20:03:02 +08:00
|
|
|
# The value is a hash of heat_config resources. Example:
|
2015-07-16 15:26:14 +02:00
|
|
|
# { 'DEFAULT/foo' => { value => 'fooValue'},
|
|
|
|
# 'DEFAULT/bar' => { value => 'barValue'}
|
|
|
|
# }
|
|
|
|
# In yaml format, Example:
|
|
|
|
# heat_config:
|
|
|
|
# DEFAULT/foo:
|
|
|
|
# value: fooValue
|
|
|
|
# DEFAULT/bar:
|
|
|
|
# value: barValue
|
|
|
|
#
|
2016-02-17 12:08:49 +08:00
|
|
|
# [*heat_api_paste_ini*]
|
|
|
|
# (optional) Allow configuration of /etc/heat/api-paste.ini options.
|
|
|
|
#
|
2015-07-16 15:26:14 +02:00
|
|
|
# NOTE: The configuration MUST NOT be already handled by this module
|
|
|
|
# or Puppet catalog compilation will fail with duplicate resources.
|
|
|
|
#
|
|
|
|
class heat::config (
|
2016-02-17 12:08:49 +08:00
|
|
|
$heat_config = {},
|
|
|
|
$heat_api_paste_ini = {},
|
2015-07-16 15:26:14 +02:00
|
|
|
) {
|
|
|
|
|
2015-10-20 09:54:12 -04:00
|
|
|
include ::heat::deps
|
|
|
|
|
2015-07-16 15:26:14 +02:00
|
|
|
validate_hash($heat_config)
|
2016-02-17 12:08:49 +08:00
|
|
|
validate_hash($heat_api_paste_ini)
|
2015-07-16 15:26:14 +02:00
|
|
|
|
|
|
|
create_resources('heat_config', $heat_config)
|
2016-02-17 12:08:49 +08:00
|
|
|
create_resources('heat_api_paste_ini', $heat_api_paste_ini)
|
2015-07-16 15:26:14 +02:00
|
|
|
}
|