lookup nameserver for openbsdserver also in hiera
authormh <mh@immerda.ch>
Thu, 15 Sep 2011 09:06:59 +0000 (11:06 +0200)
committermh <mh@immerda.ch>
Thu, 15 Sep 2011 09:06:59 +0000 (11:06 +0200)
templates/resolvconf.OpenBSD.erb

index 12598b3..be19f8e 100644 (file)
@@ -1,5 +1,6 @@
 # managed by puppet
 lookup file bind
-<% resolvconf_nameservers.split(':').each do |nameserver| -%>
+<% Puppet::Parser::Functions.function('hiera') -%>
+<% scope.function_hiera('resolvconf_nameservers',['8.8.8.8']).each do |nameserver| -%>
 nameserver <%= nameserver %> 
 <% end -%>