On Jun 24, 9:15 am, Jonathan Gazeley <jonathan.gaze...@bristol.ac.uk> wrote: > For my puppet-managed servers, I want roughly half to use nameserver1 > followed by nameserver2, and the other half to use nameserver2 in > preference to nameserver1. > > The most reliable and simplest way I can think of doing this is to look > at the last octet of the IP address, test whether it is even or odd, and > apply different nameservers accordingly. > > Two questions: how would this be easily achieved in a manifest, and is > there a better way? :)
If your name resolver supports it then you could put options rotate into every /etc/resolv.conf (or add 'rotate' to the existing options) so that all hosts alternate which name server they query first. If that works for you at all then it should do a better job of spreading out the name service load than would tweaking the name server listing order on some of your machines. It's also a lot easier to code in your manifests. 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.