Puppet Class: puppetdb::master::report_processor
- Inherits:
- puppetdb::params
- Defined in:
- manifests/master/report_processor.pp
Overview
Manage the installation of the report processor on the master. See README.md for more details.
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'manifests/master/report_processor.pp', line 3
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 => ',',
}
}
|