I need to write a custom fact that depends on the value of another
custom fact in a different file. For example:
# foo.rb
Facter.add("foo") do
setcode do
[...]
end
end
# bar.rb
Facter.add("bar") do
setcode do
if (Facter.value("foo") == "option1") then
[...]
else
[...]
end
end
end
Do I need to do anything to ensure that the foo fact is added before
the bar fact's block is evaluated? Or does puppet load all facts
before evaluating any of them?
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" 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-users?hl=en.