An option that hasn't been mentioned yet is hiera. It's great to use for
data, but you can also use it to say what classes get applied to what
nodes. You define some variable in your hierarchy, say 'classes', which is
an array of class names to be included, and then in your default node
definition, you use hiera_include('classes'), which will get the names from
all 'classes' variable in the hierarchy that matches the node checking in
and include them.
On Thursday, December 20, 2012 8:11:42 AM UTC-8, Steve Button wrote:
>
> Hi,
>
> I've written a new resolv class, but I only want it to get pushed out (for
> instance) UAT servers for now. Or perhaps just servers which have apache
> installed, or just the ones which are part of project xyz.
>
> I've been searching through the docs, but I think I'm looking in the wrong
> place. Also, I get the feeling that there's several ways to achieve this
> and some of the docs refer to the older ways.
>
> What's the current method of limiting certain manifests to certain classes
> of machines? (have I got my terminology wrong here?)
>
> Perhaps someone could put a link in to the best place in the docs that
> explains this to me? I'm sure I've read about this in the past, but I can't
> seem to find it again.
>
> Thanks in advance!
>
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/M6v-9rMzbj0J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.