module-puppetdb/manifests/master/report_processor.pp

29 lines
790 B
ObjectPascal
Raw Normal View History

# 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'
}
2016-02-08 01:57:23 +01:00
$puppetdb_ensure = $enable ? {
true => present,
default => absent,
}
2013-06-04 14:19:53 +02:00
ini_subsetting { 'puppet.conf/reports/puppetdb':
2016-02-08 01:57:23 +01:00
ensure => $puppetdb_ensure,
2013-06-04 14:19:53 +02:00
path => $puppet_conf,
section => $puppet_conf_section,
2013-06-04 14:19:53 +02:00
setting => 'reports',
subsetting => 'puppetdb',
subsetting_separator => ',',
}
}