diff options
author | am <am@d66ca3ae-40d7-4aa7-90d4-87d79ca94279> | 2008-04-28 10:19:54 +0000 |
---|---|---|
committer | am <am@d66ca3ae-40d7-4aa7-90d4-87d79ca94279> | 2008-04-28 10:19:54 +0000 |
commit | a0bc9552fc601a8c92fa6ae75870c646e851bad1 (patch) | |
tree | 49167fc654eace51e0ff89fc528e64b7d259988e /templates/resolvconf.erb | |
parent | 3a774db0deb373f6c171a0b58538da3e0129bd6f (diff) | |
download | puppet-resolvconf-a0bc9552fc601a8c92fa6ae75870c646e851bad1.tar.gz puppet-resolvconf-a0bc9552fc601a8c92fa6ae75870c646e851bad1.tar.bz2 |
nameservers now as string with ":" as delimiter
git-svn-id: https://svn/ipuppet/trunk/modules/resolvconf@1304 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
Diffstat (limited to 'templates/resolvconf.erb')
-rw-r--r-- | templates/resolvconf.erb | 8 |
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 -%> + |