
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: If9fa188b7dca47e6724a737d66e34c0c85668c36
30 lines
777 B
Puppet
30 lines
777 B
Puppet
# == Class: designate::pool_manager_cache::memcache
|
|
#
|
|
# Configure Memcache as caching service for the pool manager.
|
|
#
|
|
# == Parameters
|
|
#
|
|
# [*memcached_servers*]
|
|
# (optional) Memcache servers.
|
|
# Defaults to ['127.0.0.1']
|
|
#
|
|
# [*expiration*]
|
|
# Cache expiration time.
|
|
# Defaults to $::os_service_default
|
|
#
|
|
class designate::pool_manager_cache::memcache(
|
|
$memcached_servers = ['127.0.0.1'],
|
|
$expiration = $::os_service_default,
|
|
){
|
|
|
|
include ::designate::deps
|
|
|
|
validate_array($memcached_servers)
|
|
|
|
designate_config {
|
|
'service:pool_manager/cache_driver': value => 'memcache';
|
|
'pool_manager_cache:memcache/memcached_servers': value => join($memcached_servers,',');
|
|
'pool_manager_cache:memcache/expiration': value => $expiration;
|
|
}
|
|
}
|