Hi,
The way we do as similar kind of thing is use a 'role' class which assigns
various classes based on the fact of a node.
We created a custom fact that gives a fact that tells us the node's role. We
then use:
if $role-fact =~ role { include variousclasses }
Not as simple as that obviously but I hope that gives the point.
In your node declaration you can use similar syntax to include or exclude
classes.
Hope that helps,
Den
On 09/12/2011, at 10:05, Len Rugen <[email protected]> wrote:
> I have a group of classes (about 6 now) that I want to allow a host to use
> none or at most one of them. This just a "guard rail" for admins. :-)
>
> Basically like this:
>
> base
> base::opt1
> base::opt2
> ...
> base::opt6
>
> base is default to all nodes.
>
> We use Puppet and Foreman :-)
>
> Thanks
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> 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.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
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.