Hi,

You might want to try something like:

node default {
  if $hostname != 'nameserver' {
    include resolve.conf
  }
  if....
  else....
  elsif....
}

See:
http://docs.puppetlabs.com/guides/language_guide.html#conditionals

Den

On 24/11/2011, at 21:17, Hans Schou <h...@moc.net> wrote:

> Hi
> 
> I have been searching around but must give up on this one.
> 
> I have bunch of servers which all uses the same modules except for one
> single module. In the worst case I have n modules and n nodes and each
> one of them should not include one different module.
> 
> Example: all need resolv.conf but the nameserver should be a little
> different.
> 
> node default {
> include resolv.conf
>        resolv_conf { $domainname:
>                domainname  => $domainname,
>                searchpath  => $searchpath,
>                nameservers => $nameservers
>        }
> ...
> }
> 
> node 'nameserver' inherits default {
>  uninclude resolv.conf
>  ...
> }
> 
> 
> Example2: All should do rsyslog, except the syslog-server.
> 
> What is the best practice for this?
> 
> best regards
> Hans Schou
> 
> -- 
> 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+unsubscr...@googlegroups.com.
> 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 puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to