puppet-placement/manifests/config.pp
Tobias Urdin 3da70b1bbd Remove deprecated placement::config params
These were leftovers from the nova extraction that
was wrong and should not be there.

Change-Id: Ia4ded54763eecc0f2fc07fdfa92e9cc15dccd09b
2020-01-14 10:50:59 +01:00

32 lines
867 B
Puppet

# == Class: placement::config
#
# This class is used to manage arbitrary placement configurations.
#
# === Parameters
#
# [*placement_config*]
# (Optional) Allow configuration of arbitrary Placement configurations.
# The value is an hash of placement_config resources. Example:
# { 'DEFAULT/foo' => { value => 'fooValue'},
# 'DEFAULT/bar' => { value => 'barValue'}
# }
# In yaml format, Example:
# placement_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 placement::config (
$placement_config = {},
) {
include placement::deps
validate_legacy(Hash, 'validate_hash', $placement_config)
create_resources('placement_config', $placement_config)
}