According to puppet master documentation, both STDERR and STDOUT emit from the executable, which are specified by autozig = [executable path]. The setting is copied to the master log output of the puppet master, however, I can not find this product in any way.
Related bits of my puppet file:
[main] logdir = / var / log / puppet log_level = debug [master] autosine = / usr / lib / ruby / Site_ruby / 1.8 / autosign.rb
/usr/lib/ruby/site_ruby/1.8/autosign.rb:
#! / Usr / bin / env ruby is required 'etc' ENV ['HOME'] = et.jetpwyd (process.uid). DIR STDERR Input "Inside Autosense. Rb" STDERR.Pips "====================================" STDERR .puts "=== ENV ['home'} =====================" STDERR.puts "# {ENV ['HOME']}" STDERR Puts "=== STDIN ===== ======================" ARGF.Each Do | Line | STDERR.puts line if line = ~ / login / end STDERR.puts "=== ARGV [] ==========================" ARGV Do .each | B STDERR.puts b end #require 'puppet' #require 'puppet / ssl / certificate_request' #clientcert = ARGV.pop #csr = puppet :: SSL :: CertificationRequest.from_s (STDIN.read) retcode = 0 exit retcode
Has any of you been successful in logging from the autosense policy executable? ... or usually in the use of this tool?