On Oct 21, 12:55 pm, Andrew Thompson <netengr2...@gmail.com> wrote:
> On Oct 20, 10:18 am, "ollies...@googlemail.com"<paul.seym...@barcap.com> 
> wrote:
> > Taking a brief look at extlookup()
>
> > We have a module to setup resolv.conf based on location so we have a %
> > {domain}.csv file
>
> Can you post your $extlookup_datadir and $extlookup_precedence values?
>
Sure it's set like this so host based, datacenter, country, region
based on custom fact(s) which would out the location based on a subnet
lookup to a backend system.

#
# Global configuration
#
$extlookup_datadir = "/etc/puppetlabs/puppet/envs/legacy/extdata"
$extlookup_precedence = ["%{fqdn}", "%{datacentreid}", "%{ctryid}", "%
{rgnid}", "common"]

>
> > more /etc/puppetlabs/puppet/envs/legacy/extdata/ldt.csv
> > domainname,my.domain.com
> > resolvers,10.10.10.10 10.10.10.11
> > searchpath,sub.my.domain.com sub2.my.domain.com
>
> > class resolver::setup {
> >   $searchpath        = extlookup("searchpath")
> >   $resolvers         = extlookup("resolvers")
> >   $resolvdomainname  = extlookup("domainname")
>
> > }
>
> This looks correct.
>
>
>
> > Each value is getting set with the “domainname” value.
>
> What happens if you change the order of the values in the csv file?
>

-- 
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