Hello,
I've created a class where I define some variables like $mydns, $myproxy, etc
to use everywhere (in other manifests)
The question is: Can I call these class variables inside a fact definition?
Something like:
#somemanifest.pp
class x {
$foo = "great"
}
#somefact.rb
Facter.add("foo") do
setcode do
Facter::Util::Resolution.exec('echo ${x::foo}')
end
end
Thanks in advance
--
Frank
--
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.