mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-09-18 16:48:44 +00:00
Merge pull request #513 from jasperla/puppet_openbsd
Allow for a custom puppet directory
This commit is contained in:
commit
56573f4600
1 changed files with 2 additions and 1 deletions
|
@ -17,6 +17,7 @@
|
||||||
# [puppet*]
|
# [puppet*]
|
||||||
# env.puppet_logfile /var/log/message
|
# env.puppet_logfile /var/log/message
|
||||||
# env.puppet_logformat "^%b %d"
|
# env.puppet_logformat "^%b %d"
|
||||||
|
# env.puppet_factsdir /var/puppet/yaml/facts/
|
||||||
#
|
#
|
||||||
# the logfile is where the puppetmaster is expected to log its
|
# the logfile is where the puppetmaster is expected to log its
|
||||||
# compilation statistics. the format is the format of the date syslog
|
# compilation statistics. the format is the format of the date syslog
|
||||||
|
@ -120,7 +121,7 @@ case ARGV[0]
|
||||||
plist("puppetmasterd") if $0 =~ /puppet_mem$/
|
plist("puppetmasterd") if $0 =~ /puppet_mem$/
|
||||||
plist("puppetd") if $0 =~ /puppet_mem$/
|
plist("puppetd") if $0 =~ /puppet_mem$/
|
||||||
if $0 =~ /puppet_clients$/
|
if $0 =~ /puppet_clients$/
|
||||||
puts "known_clients.value #{Dir.entries('/var/lib/puppet/yaml/facts/').size-2}"
|
puts "known_clients.value #{Dir.entries(ENV['puppet_factsdir'] || '/var/lib/puppet/yaml/facts/').size-2}"
|
||||||
phaselog
|
phaselog
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue