Description of problem: RFE for more debug output for puppet agent -td. The customer would like to get more info with the facts being collected. So if it hangs getting info for a particular fact you can see it in the debug output. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: running puppet agent -td on forman server
This was the facter code which was hanging and causing puppet agent to hang completely with no indication of why: # cat gettarball.rb require 'facter' Facter.add("prodtarball") do setcode do Facter::Util::Resolution.exec("/usr/bin/wget -O - 2>&1 ftp://iam-utility.lab.dev.us.ml.com/forwarders/ti-infra-forwarders/ | grep Linux-x86_64 | awk -F'>' '{print $2}'|awk -F'.gz' '{print $1}'") end end Facter.add("labtarball") do setcode do Facter::Util::Resolution.exec("/usr/bin/wget -O - 2>&1 ftp://iam-utility.lab.dev.us.ml.com/forwarders/v621/ | grep Linux-x86_64 | awk -F'>' '{print $2}'|awk -F'.gz' '{print $1}'") end end
I was not able to find neither prodtarball nor labtarball fact implementation in any Puppet module we ship. Neither in Puppet or Facter such facts exist, so that has to be customer specific facts probably. Debugging output can be implemented either in facts themselves or in Puppet itself. There is nothing we can do on Puppet module level unfortunately.