Hello Guys, I have today around 200 machines under Puppet 0.24.5 (very nice software!) but I can understood how can I get one "node exclusion". I''m seeing this one, but I''m sure if this its already done: http://reductivelabs.com/trac/puppet/ticket/1107 What I need: # /etc/puppet/manifests/site.pp import "classes/*" node default { include dst include aide include cfg2html include tcpwrappers include shorewall } node excludsion dcrs5001, dcrs5002, dcrs5003 { exclude tcpwrappers } Some like this... it it possible today? :-) Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Is there some way to "exclude" a list of nodes from the "default" rule? Thanks On Oct 20, 6:42 pm, Tiago Cruz <tiago.tuxkil...@gmail.com> wrote:> Hello Guys, > > I have today around 200 machines under Puppet 0.24.5 (very nice > software!) but I can understood how can I get one "node exclusion". > > I''m seeing this one, but I''m sure if this its already done:http://reductivelabs.com/trac/puppet/ticket/1107 > > What I need: > > # /etc/puppet/manifests/site.pp > > import "classes/*" > > node default { > include dst > include aide > include cfg2html > include tcpwrappers > include shorewall > > } > > node excludsion dcrs5001, dcrs5002, dcrs5003 { > exclude tcpwrappers > > } > > Some like this... it it possible today? :-) > > Thanks!--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Hi> Is there some way to "exclude" a list of nodes from the "default" > rule?by defining an explicit node entry for them? greets pete --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Hi! On Wed, Oct 22, 2008 at 10:44 AM, Peter Meier <peter.meier@immerda.ch>wrote:> > Is there some way to "exclude" a list of nodes from the "default" > > rule? > > by defining an explicit node entry for them? >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... Thanks!! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, I think you could do: node default { case $fqdn { "server01": { include bla } "default": { include dst include aide include cfg2html include tcpwrappers include shorewall } } } ...although I''m not sure if it would work... On Oct 22, 2008, at 17:15 , Tiago Cruz wrote:> node default { > include dst > include aide > include cfg2html > include tcpwrappers > include shorewall > } > > node server01 { > exclude tcpwrappers > }-- Med venlig hilsen/Best regards Juri Rischel Jensen Fab:IT ApS Vesterbrogade 50 DK-1620 København Tlf: +45 70 202 407 www.fab-it.dk --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
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 <peter.meier@immerda.ch> 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 puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---