summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2012-06-14 12:00:43 -0300
committermh <mh@immerda.ch>2012-06-14 12:00:43 -0300
commitc7eca077fdda063edc96d3bea02c4774569e4b10 (patch)
tree8217668d89cc6c58e3988bf18ec062076e924c60 /templates
parent22b82fc14911b4d3f15ecb9b763816bc2c1790fb (diff)
downloadpuppet-resolvconf-c7eca077fdda063edc96d3bea02c4774569e4b10.tar.gz
puppet-resolvconf-c7eca077fdda063edc96d3bea02c4774569e4b10.tar.bz2
take hiera out of the params
Diffstat (limited to 'templates')
-rw-r--r--templates/resolvconf.OpenBSD.erb3
-rw-r--r--templates/resolvconf.erb7
2 files changed, 4 insertions, 6 deletions
diff --git a/templates/resolvconf.OpenBSD.erb b/templates/resolvconf.OpenBSD.erb
index be19f8e..48daf27 100644
--- a/templates/resolvconf.OpenBSD.erb
+++ b/templates/resolvconf.OpenBSD.erb
@@ -1,6 +1,5 @@
# managed by puppet
lookup file bind
-<% Puppet::Parser::Functions.function('hiera') -%>
-<% scope.function_hiera('resolvconf_nameservers',['8.8.8.8']).each do |nameserver| -%>
+<% scope.lookupvar('resolvconf::nameservers').each do |nameserver| -%>
nameserver <%= nameserver %>
<% end -%>
diff --git a/templates/resolvconf.erb b/templates/resolvconf.erb
index dc98aea..d8136bf 100644
--- a/templates/resolvconf.erb
+++ b/templates/resolvconf.erb
@@ -1,8 +1,7 @@
# managed by puppet
-<% Puppet::Parser::Functions.function('hiera') -%>
-domain <%= scope.function_hiera('resolvconf_domain',domain) %>
-search <%= scope.function_hiera('resolvconf_search',domain) %>
+domain <%= scope.lookupvar('resolvconf::domain') %>
+search <%= scope.lookupvar('resolvconf::search') %>
-<% scope.function_hiera('resolvconf_nameservers',['8.8.8.8']).each do |nameserver| -%>
+<% scope.lookupvar('resolvconf::nameservers').each do |nameserver| -%>
nameserver <%= nameserver %>
<% end -%>