On Jun 4, 4:26 pm, Thomas Bellman <bell...@nsc.liu.se> wrote:
>  However, a "real"
> custom fact is probably cleaner.)
>

I'm working on a "real" fact by following these steps:
   http://reductivelabs.com/trac/puppet/wiki/AddingFacts

I verified that the custom fact works when run locally on the server.
On the client when I run:
   puppetd --server hostname --test --factsync

I see the custom fact being retrieved and stored in /var/lib/puppet/
facts on the client. But the custom fact does not seem to run and the
value is not sent to the server. I never see the "info: Loading fact
nodetype" message on the client, and the $nodetype substitution fails
on the server.

I am running 0.24.5 on client and server. Both client and server are
Ubuntu. Here is the custom fact:

#!/usr/bin/ruby -w

Facter.add("nodetype") do
        setcode do
                f = File.open('/var/ec2/nodetype')
                f.gets.chomp
        end
end

Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to