Puppet Class: glance::config

Defined in:
manifests/config.pp

Overview

Class: glance::config

This class is used to manage arbitrary glance configurations.

example xxx_config

(optional) Allow configuration of arbitrary glance configurations.
The value is an hash of glance_config resources. Example:
{ 'DEFAULT/foo' => { value => 'fooValue'},
  'DEFAULT/bar' => { value => 'barValue'}
}
In yaml format, Example:
glance_config:
  DEFAULT/foo:
    value: fooValue
  DEFAULT/bar:
    value: barValue

Parameters

api_config

(optional) Allow configuration of glance-api.conf configurations.

api_paste_ini_config

(optional) Allow configuration of glance-api-paste.ini configurations.

cache_config

(optional) Allow configuration of glance-cache.conf configurations.

image_import_config

(optional) Allow configuration of glance-image-import.conf configurations.

rootwrap_config

(optional) Allow configuration of rootwrap.conf configurations.

NOTE: The configuration MUST NOT be already handled by this module or Puppet catalog compilation will fail with duplicate resources.

Parameters:

  • api_config (Any) (defaults to: {})
  • api_paste_ini_config (Any) (defaults to: {})
  • cache_config (Any) (defaults to: {})
  • image_import_config (Any) (defaults to: {})
  • rootwrap_config (Any) (defaults to: {})


38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'manifests/config.pp', line 38

class glance::config (
  $api_config           = {},
  $api_paste_ini_config = {},
  $cache_config         = {},
  $image_import_config  = {},
  $rootwrap_config      = {},
) {

  include glance::deps

  validate_legacy(Hash, 'validate_hash', $api_config)
  validate_legacy(Hash, 'validate_hash', $api_paste_ini_config)
  validate_legacy(Hash, 'validate_hash', $cache_config)
  validate_legacy(Hash, 'validate_hash', $image_import_config)
  validate_legacy(Hash, 'validate_hash', $rootwrap_config)

  create_resources('glance_api_config', $api_config)
  create_resources('glance_api_paste_ini', $api_paste_ini_config)
  create_resources('glance_cache_config', $cache_config)
  create_resources('glance_image_import_config', $image_import_config)
  create_resources('glance_rootwrap_config', $rootwrap_config)
}