
Previously the anchors and dependencies that allow external hooks were all in the main ::heat class. However, if you wanted to include just ::heat::db::mysql, then it would fail, since it assumed the main heat class was included. This moves all of those resources and relationships into a new class, ::heat::deps. All of the classes will now include this class so that the anchors and deps are always evaluated even if only a portion of the classes are used, and even if ::heat isn't pulled in. Change-Id: I4297df160a7afae2b66c1ac76e37de313fa4fb09 Closes-Bug: #1507934
33 lines
785 B
Puppet
33 lines
785 B
Puppet
# == Class: heat::config
|
|
#
|
|
# This class is used to manage arbitrary Heat configurations.
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*heat_config*]
|
|
# (optional) Allow configuration of arbitrary Heat configurations.
|
|
# The value is an hash of heat_config resources. Example:
|
|
# { 'DEFAULT/foo' => { value => 'fooValue'},
|
|
# 'DEFAULT/bar' => { value => 'barValue'}
|
|
# }
|
|
# In yaml format, Example:
|
|
# heat_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 heat::config (
|
|
$heat_config = {},
|
|
) {
|
|
|
|
include ::heat::deps
|
|
|
|
validate_hash($heat_config)
|
|
|
|
create_resources('heat_config', $heat_config)
|
|
}
|