diff --git a/manifests/master/report_processor.pp b/manifests/master/report_processor.pp index 4fd1f42..f97130b 100644 --- a/manifests/master/report_processor.pp +++ b/manifests/master/report_processor.pp @@ -12,11 +12,13 @@ class puppetdb::master::report_processor ( $puppet_conf_section = 'master' } + $puppetdb_ensure = $enable ? { + true => present, + default => absent, + } + ini_subsetting { 'puppet.conf/reports/puppetdb': - ensure => $enable ? { - true => present, - default => absent - }, + ensure => $puppetdb_ensure, path => $puppet_conf, section => $puppet_conf_section, setting => 'reports',