5
0
Derivar 0
module-puppetdb/manifests/master/report_processor.pp
2016-02-08 11:57:23 +11:00

28 linhas
790 B
Puppet

# Manage the installation of the report processor on the master. See README.md
# for more details.
class puppetdb::master::report_processor (
$puppet_conf = $puppetdb::params::puppet_conf,
$masterless = $puppetdb::params::masterless,
$enable = false
) inherits puppetdb::params {
if $masterless {
$puppet_conf_section = 'main'
} else {
$puppet_conf_section = 'master'
}
$puppetdb_ensure = $enable ? {
true => present,
default => absent,
}
ini_subsetting { 'puppet.conf/reports/puppetdb':
ensure => $puppetdb_ensure,
path => $puppet_conf,
section => $puppet_conf_section,
setting => 'reports',
subsetting => 'puppetdb',
subsetting_separator => ',',
}
}