[Puppet Users] Re: Exclusions in site.pp?

Andrew Shafer
Mon, 08 Sep 2008 20:18:38 -0000

Josh,

If I understand you correctly, you can do exactly what you describe with the
list of nodes in your site.pp

You can get a bit more dynamic and sophisticated using an external node
script to do the classification.
http://reductivelabs.com/trac/puppet/wiki/ExternalNodes


On Mon, Sep 8, 2008 at 12:54 PM, josh <dorqus@gmail.com> wrote:

>
> So here''s the scenario, roughly 800 hosts as puppet clients,
single
> puppet master server, all running Open Solaris.
>
> Most of them are identical, I have roughly 25% or so that have
> different firewall rulesets.
>
> Currently my site.pp looks like this:
>
> # /etc/puppet/manifests/site.pp
>
> import "classes/*"
>
> node default {
>    include ipf
>    include sshd_conf
>    include disable_rpcbind
> }
>
> What I''d like to do is have some way to split up the nodes by
> classification, i.e. import nodes/typea, import nodes/typeb, import
> nodes/typec
> then have
>
> node typea {
>   include ipf-typea
> }
>
> node typeb
>  include ipf-typeb
> }
> node typec
>  include ipf-typec
> }
>
> Or something along those lines, and nodes/typea contains  a list of
> all the typea stores, nodes/typeb includes a list of the typeb hosts,
> etc.
>
> Is this possible?
>
> Thanks,
> Josh
>
>
>
> >