summaryrefslogtreecommitdiff
path: root/templates/resolvconf.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/resolvconf.erb')
-rw-r--r--templates/resolvconf.erb4
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 %>