Hi Mark,

you can find that documentation & guidance 
here: https://puppet.com/docs/puppet/7/fact_overview.html

Kind regards,
Kevin

On Tuesday, January 25, 2022 at 8:28:07 AM UTC+1 [email protected] wrote:

> Hi Keven, thank fou or clearing that up.
>
> On Friday, January 21, 2022 at 12:48:14 PM UTC+1 KevinR wrote:
>
>> The cause for your issues is that there's code before the setcode do line, 
>> which will cause issues under Facter 4.
>> Having code before setcode do was a bad coding practice but didn't break 
>> things in Facter 3. In Facter 4, it does break things. 
>>
>
> Is there documentation I can/should read about this?
>
> The puppet documentation about custom facts is very shallow, mostly 
> by-example only.
> Then there is the (auto generated?) documentation for the gem itself, 
> which probably does a good job of documenting all the parts, but does not 
> go into how to properly use them together.
>
> Where could I have learned that, and why, code should be inside the 
> setcode block?
>
> Regards,
> Mark.
>  
>

-- 
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/6f779765-a254-4fdf-8e94-6314d02bbf1dn%40googlegroups.com.

Reply via email to