projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fb5c09
)
continued fight against templates, 3
author
Peter Palfrader
<peter@palfrader.org>
Sat, 5 Mar 2011 12:53:11 +0000
(13:53 +0100)
committer
Peter Palfrader
<peter@palfrader.org>
Sat, 5 Mar 2011 12:53:11 +0000
(13:53 +0100)
modules/resolv/templates/resolv.conf.erb
patch
|
blob
|
history
diff --git
a/modules/resolv/templates/resolv.conf.erb
b/modules/resolv/templates/resolv.conf.erb
index
e7ecf53
..
ac15f47
100644
(file)
--- a/
modules/resolv/templates/resolv.conf.erb
+++ b/
modules/resolv/templates/resolv.conf.erb
@@
-21,7
+21,7
@@
searchpaths << "debian.org"
resolvconf = ''
resolvconf += "search " + searchpaths.join(" ") + "\n"
-if
defined?(unbound
) and unbound and unbound == "true"
+if
has_variable?('unbound'
) and unbound and unbound == "true"
resolvconf += "nameserver 127.0.0.1\n"
else
if nameservers.empty?