Note that you can also just put the standard classes (and variables)
directly in the top scope. No real need to encapsulate them inside a node
scope (unless you are overriding the value of facts in the manifest, but
that seems like a pretty bad idea anyway).

A minor difference is also that resources that are inside a node scope will
automatically get tagged with the certname of the node, but resources and
classes in top scope won't. But that automatic tagging is mostly useless
and a waste of space in PuppetDB IMO.




On Mon Jan 12 2015 at 2:56:06 PM jcbollinger <[email protected]>
wrote:

>
>
> On Friday, January 9, 2015 at 3:34:41 PM UTC-6, RIlindo Foster wrote:
>>
>> It seems you are using this as a way to classify nodes. Your best option
>> is to use  an ENC (Foreman or Hiera) to classify your nodes, ideally using
>> the roles and profiles pattern to abstract your modules.
>>
>>
>
> I strongly disagree. If you don't otherwise need (or want) an ENC, then
> this is not a good reason to start using one.  Changing the default node to
> a class and 'include'ing it, as Peter suggested, is much easier, and mostly
> equivalent to node inheritance.  If you use node-scoped variables in the
> (original) default node, however, then you have more work to do any way
> around.
>
>
> John
>
>  --
> 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/d657abc7-35ba-4c88-84fb-0f714853aa69%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/d657abc7-35ba-4c88-84fb-0f714853aa69%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAAAzDLf8h85qCG0_UG5x-6mzULQp4MLPNNJvmEFux_eVgXsPdw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to