From b8d3cf105e88fcde1f94392206f62a9f68763fe3 Mon Sep 17 00:00:00 2001 From: mh Date: Thu, 15 Sep 2011 11:06:59 +0200 Subject: lookup nameserver for openbsdserver also in hiera --- templates/resolvconf.OpenBSD.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/resolvconf.OpenBSD.erb b/templates/resolvconf.OpenBSD.erb index 12598b3..be19f8e 100644 --- a/templates/resolvconf.OpenBSD.erb +++ b/templates/resolvconf.OpenBSD.erb @@ -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 -%> -- cgit v1.2.3