summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorandreas <andreas@immerda.ch>2008-04-28 10:19:54 +0000
committerandreas <andreas@immerda.ch>2008-04-28 10:19:54 +0000
commit433c0fa776449d42894ae5937a35f2bb6b53217a (patch)
tree49167fc654eace51e0ff89fc528e64b7d259988e /templates
parentbe0237d2bd0944c6673c2f95c1a6fde8a0fc1703 (diff)
downloadpuppet-resolvconf-433c0fa776449d42894ae5937a35f2bb6b53217a.tar.gz
puppet-resolvconf-433c0fa776449d42894ae5937a35f2bb6b53217a.tar.bz2
nameservers now as string with ":" as delimiter
Diffstat (limited to 'templates')
-rw-r--r--templates/resolvconf.erb8
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/resolvconf.erb b/templates/resolvconf.erb
index 5ab3888..c961fc6 100644
--- a/templates/resolvconf.erb
+++ b/templates/resolvconf.erb
@@ -2,7 +2,9 @@
domain <%= real_resolvconf_domain %>
search <%= real_resolvconf_search %>
-nameserver <%= real_resolvconf_nameserver1 %>
-nameserver <%= real_resolvconf_nameserver2 %>
-nameserver <%= real_resolvconf_nameserver3 %>
+
+<% real_resolvconf_nameservers.split(':').each do |val| -%>
+nameserver <%= val %>
+<% end -%>
+