diff options
author | mh <mh@immerda.ch> | 2011-09-06 23:00:03 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2011-09-06 23:00:03 +0200 |
commit | 65bab32e5860c4409737dc01035299a9d4a98a62 (patch) | |
tree | 55f2dd18ec024a7b4a8491e42cd91bb31f3594af /templates | |
parent | 5fa34ec0c8d3c996c4bf36fc685433e24a99e1d3 (diff) | |
download | puppet-resolvconf-65bab32e5860c4409737dc01035299a9d4a98a62.tar.gz puppet-resolvconf-65bab32e5860c4409737dc01035299a9d4a98a62.tar.bz2 |
use hiera for variables
Diffstat (limited to 'templates')
-rw-r--r-- | templates/resolvconf.erb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/resolvconf.erb b/templates/resolvconf.erb index 0c274a6..dc98aea 100644 --- a/templates/resolvconf.erb +++ b/templates/resolvconf.erb @@ -1,7 +1,8 @@ # managed by puppet -domain <%= resolvconf_domain %> -search <%= resolvconf_search %> +<% Puppet::Parser::Functions.function('hiera') -%> +domain <%= scope.function_hiera('resolvconf_domain',domain) %> +search <%= scope.function_hiera('resolvconf_search',domain) %> -<% resolvconf_nameservers.split(':').each do |nameserver| -%> +<% scope.function_hiera('resolvconf_nameservers',['8.8.8.8']).each do |nameserver| -%> nameserver <%= nameserver %> <% end -%> |