2014-10-07 16:06:54 +02:00
|
|
|
# Manage the installation of the report processor on the master. See README.md
|
2013-10-21 17:21:12 +02:00
|
|
|
# for more details.
|
2014-10-07 16:06:54 +02:00
|
|
|
class puppetdb::master::report_processor (
|
2013-05-23 23:21:05 +02:00
|
|
|
$puppet_conf = $puppetdb::params::puppet_conf,
|
2015-01-15 10:13:51 +01:00
|
|
|
$masterless = $puppetdb::params::masterless,
|
2013-05-23 23:21:05 +02:00
|
|
|
$enable = false
|
|
|
|
) inherits puppetdb::params {
|
2015-01-15 10:13:51 +01:00
|
|
|
|
|
|
|
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,
|
2015-01-15 10:13:51 +01:00
|
|
|
section => $puppet_conf_section,
|
2013-06-04 14:19:53 +02:00
|
|
|
setting => 'reports',
|
|
|
|
subsetting => 'puppetdb',
|
2014-10-07 16:06:54 +02:00
|
|
|
subsetting_separator => ',',
|
2013-05-23 23:21:05 +02:00
|
|
|
}
|
|
|
|
}
|