John Arundel
2011-Feb-09 14:34 UTC
[Puppet Users] Custom fact works in Facter but not in Puppet
Hi,
I defined a simple custom fact which just returns "Hello, world".
Following the instructions in
http://projects.puppetlabs.com/projects/1/wiki/Adding_Facts
http://docs.puppetlabs.com/guides/plugins_in_modules.html
I added the source file as modules/admin/lib/facter/hello.rb
and enabled ''pluginsync'' in puppet.conf.
If I run ''facter hello'' it correctly returns "Hello,
world."
But if I refer to it in a Puppet manifest with:
notify { "$hello": }
I just get nothing. Running Puppet shows the fact is being loaded, and
it has been synced to the fact directory on the client, but the value
is just an empty string.
Any ideas what might be wrong?
Regards,
John
--
Bitfield Consulting: we make software that makes things work
http://bitfieldconsulting.com/
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.