Hi

I have the following custom fact:

require 'facter'
Facter.add("chat_remote_port", :timeout => 5) do
  setcode do
    Facter::Util::Resolution.exec('/usr/bin/ssh -o StrictHostKeyChecking=no 
-i /vagrant/fabfile/deployment/keys/id_rsa u...@example.com \'for port in 
12321 12322 12323 12324 12325 12326; do netsta\
t -an | grep $port > /dev/null ; if [ $? -eq 1 ]; then echo $port; fi; 
done\'')
  end
end

It works fine when invoked via the 'facter' command but seems to cause a 
hang when run during 'puppet apply'. Adding 'timeout' does not cause Facter 
to move on.

Why would this fail during 'puppet apply' but work ok with 'facter'?

Thanks
Mark

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to