puppet-placement/manifests/config.pp
Benedikt Trefzer f6ba76c00b replace validate_legacy with proper data types
the validate_legacy function is marked for deprecation in
v9.0.0 from puppetlabs-stdlib.

Change-Id: If29a88bdb31e26a6e95cca854385ae0960a5e05f
2023-06-06 08:09:15 +02:00

31 lines
812 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 (
Hash $placement_config = {},
) {
include placement::deps
create_resources('placement_config', $placement_config)
}