commit
7e056f1c4c
8 changed files with 47 additions and 44 deletions
|
@ -2,7 +2,7 @@
|
||||||
#
|
#
|
||||||
# This class configures the puppet master to enable the puppetdb report
|
# This class configures the puppet master to enable the puppetdb report
|
||||||
# processor
|
# processor
|
||||||
|
#
|
||||||
# Parameters:
|
# Parameters:
|
||||||
# ['puppet_conf'] - The puppet config file (defaults to /etc/puppet/puppet.conf)
|
# ['puppet_conf'] - The puppet config file (defaults to /etc/puppet/puppet.conf)
|
||||||
#
|
#
|
||||||
|
@ -24,12 +24,15 @@ class puppetdb::master::report_processor(
|
||||||
$enable = false
|
$enable = false
|
||||||
) inherits puppetdb::params {
|
) inherits puppetdb::params {
|
||||||
|
|
||||||
ini_subsetting { "puppet.conf/reports/puppetdb":
|
ini_subsetting { 'puppet.conf/reports/puppetdb':
|
||||||
|
ensure => $enable ? {
|
||||||
|
true => present,
|
||||||
|
default => absent
|
||||||
|
},
|
||||||
path => $puppet_conf,
|
path => $puppet_conf,
|
||||||
section => 'master',
|
section => 'master',
|
||||||
setting => 'reports',
|
setting => 'reports',
|
||||||
subsetting => 'puppetdb',
|
subsetting => 'puppetdb',
|
||||||
subsetting_separator => ',',
|
subsetting_separator => ','
|
||||||
ensure => $enable ? { true => present, default => absent }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue