> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-users/-/QoKjEkVulMkJ.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
> I'm having difficulty determining the best course of action how to
> implement /etc/resolv.conf on my RHEL5 hosts.
>
> Here's my requirements, IN ORDER OF PRECEDENCE:
>
> * All hosts, regardless of function, need /etc/resolv.conf
> * Dependiing upon which environment the host lives in (i.e. Facture
> $domain) this changes search paths and nameservers to use in
> /etc/resolv.conf
> * Any host defined as a 'DNS Server' should ignore environment specific
> settings and use nameserver of '127.0.0.1'
> * There are one or two one-off DNS servers that should have their own
> per-host settings which shall override all previous definitions.
We're doing something like this, although I need to expand it to be a
little bit smarter, but wouldn't setting something like
---
named_type: client # or 'caching', 'secondary', 'primary'
in your extdata/hiera/ENC and then using a selector in your class to pick
which template to use for resolv.conf essentially solve all of this?
> The only things that need to change between these rules are the values of
> the search path and the list of nameservers. So I would like to use a
> single template for /etc/resolv.conf which simply plug in data available in
> variables accessible by the template
You probably could do that, but I think the template will be more
complicated this way. Selecting different templates based on what type
of system it is makes the template simpler.
Tim
--
Tim Mooney Tim.M...@ndsu.edu
Enterprise Computing & Infrastructure 701-231-1076 (Voice)
Room 242-J6, IACC Building 701-231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
So basically you want to avoid node config customization?
You want an ultimate resolv class which will decide everything without
you defining manually something in the node conf?