To clarify, tried this on various systems - facter 4.4.0 and ruby 3.0.2 on Ubuntu Mint and facter 4.7.0 and ruby 3.1.4 on gentoo. Examples taken from the puppet documentation on writing custom facts. On Wednesday 8 May 2024 at 10:12:31 UTC+1 [email protected] wrote:
> 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/1da07872-5d29-42e8-9aa6-62c3feb4087fn%40googlegroups.com.
