Defined Type: pybal::conf_file
- Defined in:
- modules/pybal/manifests/conf_file.pp
Overview
Writes the actual config file for pybal. Uses the datacenter as title
Parameters
- dc
-
The datacenter we're creating the file for
- cluster
-
The cluster we're writing the file for.
- service
-
The service we're writing the file for.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'modules/pybal/manifests/conf_file.pp', line 14
define pybal::conf_file (
$cluster,
$service,
$dc=$::site,
$ensure=present,
){
$watch_keys = ["/pools/${dc}/${cluster}/${service}/"]
confd::file { $name:
ensure => $ensure,
watch_keys => $watch_keys,
content => template('pybal/host-pool.tmpl.erb'),
check => '/usr/local/bin/pybal-eval-check',
}
}
|