On Nov 24, 5:07 am, Denmat <tu2bg...@gmail.com> wrote: > 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
Or make your classes smarter, either by 1) putting the needed conditional logic there, or 2) having them use external data via extlookup() or hiera. Or use class inheritance to create a class that overrides the needed properties. Such a class can be included on the node(s) that needs to be different, regardless of whether its parent class is also included (not compatible with parameterized parent classes). John -- 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.