Thanks Guys!
It works: -)
node default {
case $hostname {
server6006,server6007,server6008,server6009,server6010: {
include dst
include aide
include cfg2html
#include tcpwrappers
include shorewall
}
default: {
include dst
include aide
include cfg2html
include tcpwrappers
include shorewall
}
}
}
Thanks a lot!
On Thu, Oct 23, 2008 at 1:28 PM, Peter Meier <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> > Some like this:
> >
> > node default {
> > include dst
> > include aide
> > include cfg2html
> > include tcpwrappers
> > include shorewall
> > }
> >
> > node server01 {
> > exclude tcpwrappers
> > }
> >
> > Did you understood? I would like to have some servers "out" of "default"
> > rules...
>
>
> I think I understood, if not I don't see what you'd like to do.
>
> So back to my suggestion: if you define an explicit node for a server,
> then default won't be taken. according to documentation:
>
> "You can also specify a node named default, which will be used if no
> directly matching node is found."
> http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial#nodes
>
> So:
>
> node default {
> include dst
> include aide
> include cfg2html
> include tcpwrappers
> include shorewall
> }
>
> node server01 {
> include dst
> include aide
> include cfg2html
> include shorewall
> }
>
> if you think this not very nice, then an external node tool or some
> other way of organising your configs for nodes might fit better.
>
> greets pete
>
> >
>
--
Tiago Cruz
Linux User #282636
Mandriva Conectiva PRO Certified Linux Instructor
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---