Issue #6823 has been reported by John Crenshaw.
----------------------------------------
Bug #6823: Facts from plugins not working with standalone
https://projects.puppetlabs.com/issues/6823
Author: John Crenshaw
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version:
Keywords:
Branch:
1. Create a simple facter and place it in a module plugin:
`Facter.add("foobar") { setcode { "foobar" } }`
2. Add a line to dump the contents of foobar:
`notice("test: $foobar")`
3. Run puppet standalone:
`sudo puppet apply --noop --debug /etc/puppet/manifests/site.pp`
4. Output will indicate that the custom facts were loaded, but will also show
an empty foobar
I was able to work around the issue by adding a symlink in
/usr/lib/ruby/1.8/facter/ pointing to the file from the plugin. With the
symlink in place, the foobar fact is available and the notice prints the
expected value. I'm wondering if something about the plugin sync isn't fully
working for standalone?
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.