On May 1, 2009, at 1:11 PM, Mike Renfro wrote:

>
> On 4/26/2009 5:02 PM, Allan Marcus wrote:
>> Hello,
>>
>> I'm new to puppet and facter. Initially we are planning on using
>> facter/puppet to inventory machines (Mac, Ubuntu, and RHEL). We plan
>> on writing a number of custom facts. Obviouly some of the facts will
>> only be specific to some OSs. I know there is a "confine" method, but
>> it confuses me. It seems the confine statement in some of the recipes
>> and in the Turnbull book is checked after most of the work is done.
>
> http://reductivelabs.com/trac/puppet/wiki/Recipes/HostgroupFact ,
> http://reductivelabs.com/trac/puppet/wiki/Recipes/RaidFact , and
> http://reductivelabs.com/trac/puppet/wiki/Recipes/InterfaceName , at
> least, put their confine statements very early.

OK, so in the samples you link to above, they all have the confine as  
the first line, then a setcode do block after the confine. Does the  
setcode do block get executed if the confine test fails? that would  
make sense to me, but I just want to be sure.


Thanks,

Allan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to