Total ruby noob and first time trying to right a custom fact. It does look 
too complication and I've sort of got this working.. But one question - 
from the puppet documentation gives two ways of using a 'confine'.

This lets me custom fact produce output via facter on my gentoo box as 
expected
confine :kernel => "Linux"

But this produces no output -
confine :kernel do |value| 

value == "Linux" 

end
What am I failing to understand- the documentation would suggest both 
should work?

Am trying this on a Mint box running facter 4.4.0 and ruby 3.0.2


Thanks in advance. 
Dave

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/b872c7ac-9072-43e2-81fd-9e3a7f4fb235n%40googlegroups.com.

Reply via email to