diff options
Diffstat (limited to 'templates/resolvconf.erb')
-rw-r--r-- | templates/resolvconf.erb | 7 |
1 files changed, 3 insertions, 4 deletions
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 -%> |