
This adds defined anchor points for external modules to hook into the software install, config and service dependency chain. This allows external modules to manage software installation (virtualenv, containers, etc) and service management (pacemaker) without needing rely on resources that may change or be renamed. Change-Id: I0b524e354b095f2642fd38a2f88536d15bcdf855
43 lines
1.2 KiB
Puppet
43 lines
1.2 KiB
Puppet
# == Class: nova::config
|
|
#
|
|
# This class is used to manage arbitrary Nova configurations.
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*nova_config*]
|
|
# (optional) Allow configuration of arbitrary Nova configurations.
|
|
# The value is an hash of nova_config resources. Example:
|
|
# { 'DEFAULT/foo' => { value => 'fooValue'},
|
|
# 'DEFAULT/bar' => { value => 'barValue'}
|
|
# }
|
|
# In yaml format, Example:
|
|
# nova_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.
|
|
#
|
|
# [*nova_paste_api_ini*]
|
|
# (optional) Allow configuration of arbitrary Nova paste api configurations.
|
|
# The value is an hash of nova_paste_api_ini resources. Example:
|
|
# { 'DEFAULT/foo' => { value => 'fooValue'},
|
|
# 'DEFAULT/bar' => { value => 'barValue'}
|
|
# }
|
|
#
|
|
class nova::config (
|
|
$nova_config = {},
|
|
$nova_paste_api_ini = {},
|
|
) {
|
|
|
|
include ::nova::deps
|
|
|
|
validate_hash($nova_config)
|
|
validate_hash($nova_paste_api_ini)
|
|
|
|
create_resources('nova_config', $nova_config)
|
|
create_resources('nova_paste_api_ini', $nova_paste_api_ini)
|
|
}
|