# == Class: glare::config # # This class is used to manage arbitrary glare configurations. # # === Parameters # # [*glare_config*] # (optional) Allow configuration of arbitrary glare configurations. # The value is an hash of glare_config resources. Example: # { 'DEFAULT/foo' => { value => 'fooValue'}, # 'DEFAULT/bar' => { value => 'barValue'} # } # In yaml format, Example: # glare_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. # # [*glare_paste_ini_config*] # (optional) Allow configuration of glance-glare-paste.ini configurations. # class glare::config ( $glare_config = {}, $glare_paste_ini_config = {} ) { include ::glare::deps validate_hash($glare_config) validate_hash($glare_paste_ini_config) create_resources('glare_config', $glare_config) create_resources('glare_paste_ini', $glare_paste_ini_config) }