diff options
author | mh <mh@immerda.ch> | 2011-09-15 11:06:59 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2011-09-15 11:06:59 +0200 |
commit | b8d3cf105e88fcde1f94392206f62a9f68763fe3 (patch) | |
tree | 75e2d4418ecb803df2cf04e307095981562eb75c | |
parent | 7b371bf121d93aa4b3d4a467b186129e26493655 (diff) | |
download | puppet-resolvconf-b8d3cf105e88fcde1f94392206f62a9f68763fe3.tar.gz puppet-resolvconf-b8d3cf105e88fcde1f94392206f62a9f68763fe3.tar.bz2 |
lookup nameserver for openbsdserver also in hiera
-rw-r--r-- | templates/resolvconf.OpenBSD.erb | 3 |
1 files changed, 2 insertions, 1 deletions
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 -%> |