rlex / puppet-dnsmasq

Advanced Dnsmasq management module for puppet CFM
http://forge.puppetlabs.com/lex/dnsmasq
13 stars 47 forks source link

the dnsmasq::dnsserver can't handle more that one dns server at time #49

Closed c4m4 closed 8 years ago

c4m4 commented 9 years ago

For my use, I fixed the problem in this in the template "modules/dnsmasq/templates/dnsserver.erb", Now I can call the class in this way "dnsmasq::dnsserver { 'dns': ip => ['8.8.8.8', '8.8.4.4'] }"

Now the template looks like:

<% if @name != '' -%> <% domain_int = "/#{@domain}/" if @domain -%> <% if @ip != '' -%> <% @ip.each { |x| -%> <%= "server=#{domain_int}#{x}" %> <% } -%> <% end -%> <% end -%>

rlex commented 9 years ago

yea, the idea was to use it like

dnsmasq::dnsserver { 'dns1':
  ip => '192.168.1.1',
}
dnsmasq::dnsserver { 'dns2':
  ip => '192.168.1.2',
}

and etc can't recall ticket where it was discussed.

rlex commented 8 years ago

if i understood correctly, this is not an issue