Closed c4m4 closed 8 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.
if i understood correctly, this is not an issue
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 -%>