puppet-octavia/manifests/config.pp
ZhongShengping 925794a2c9 Add hooks for external install & svc management
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: I281a300df5abfa927b8b6de54f1755ad89ccf563
2016-12-07 11:48:51 +08:00

33 lines
821 B
Puppet

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