diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-03-30 19:26:28 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-03-30 19:26:28 -0300 |
commit | 06d21bba0f73386e068815e65853eaed35b64203 (patch) | |
tree | 93c0926e67faa0bb0d4c98299e406ab87d1f8f35 | |
parent | 4b8c77eaed34e97e3aa4b5b310597a48e099a635 (diff) | |
download | puppet-resolvconf-06d21bba0f73386e068815e65853eaed35b64203.tar.gz puppet-resolvconf-06d21bba0f73386e068815e65853eaed35b64203.tar.bz2 |
Allow empty domain and search parameters
-rw-r--r-- | templates/resolvconf.erb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/resolvconf.erb b/templates/resolvconf.erb index d8136bf..bf5aef3 100644 --- a/templates/resolvconf.erb +++ b/templates/resolvconf.erb @@ -1,6 +1,10 @@ # managed by puppet +<%- if scope.lookupvar('resolvconf::domain') != '' then -%> domain <%= scope.lookupvar('resolvconf::domain') %> +<%- end -%> +<%- if scope.lookupvar('resolvconf::search') != '' then -%> search <%= scope.lookupvar('resolvconf::search') %> +<%- end -%> <% scope.lookupvar('resolvconf::nameservers').each do |nameserver| -%> nameserver <%= nameserver %> |