1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-09-10 04:38:41 +00:00

Merge pull request #513 from jasperla/puppet_openbsd

Allow for a custom puppet directory
This commit is contained in:
Steve Schnepp 2014-08-14 08:53:34 +02:00
commit 56573f4600

View file

@ -17,6 +17,7 @@
# [puppet*]
# env.puppet_logfile /var/log/message
# env.puppet_logformat "^%b %d"
# env.puppet_factsdir /var/puppet/yaml/facts/
#
# the logfile is where the puppetmaster is expected to log its
# 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("puppetd") if $0 =~ /puppet_mem$/
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
end
end