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

josh
Mon, 08 Sep 2008 20:41:16 -0000

Ah one more question which I neglected to ask.

How do I specify that if a node is not in typea or typeb that it''s
default?

i.e. I now have:

include nodes/*

and in nodes:

typea.pp:

node foo, bar, baz {
  include ipf.a
}

typeb.pp:

node bear, monkey, lion {
  include ipf.b
}

but for any other node I want it to include class ipf.other, but don''t
want to specify each of the other 600 or so hosts in a "typec.pp" file
or whatever., or will that just get covered by this statement in
site.pp:

node default {
    include ipf
    include sshd_conf
    include disable_rpcbind