Puppet Class: placement::config

Defined in:
manifests/config.pp

Overview

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.

Parameters:

  • placement_config (Any) (defaults to: {})


23
24
25
26
27
28
29
30
31
# File 'manifests/config.pp', line 23

class placement::config (
  $placement_config = {},
) {

  include placement::deps

  validate_legacy(Hash, 'validate_hash', $placement_config)
  create_resources('placement_config', $placement_config)
}