Note that exim contains tracker-specific configuration
[mirror/dsa-puppet.git] / modules / resolv / templates / resolv.conf.erb
1 ##
2 ### THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ### USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
4 ###
5
6
7 <%
8 nameservers = @ns
9
10 if nameservers.empty?
11   scope.function_warning(["Something has gone wrong writing resolv.conf.  No nameservers to use - using google's!"])
12   nameservers << '8.8.8.8'
13   nameservers << '8.8.4.4'
14 end
15
16 %>
17
18 <% if @searchpaths.size() > 0 %>
19 search <%= @searchpaths.join(" ") %>
20 <% end -%>
21
22 <%= nameservers.map{ |ns| "nameserver #{ns}"}.join("\n") %>
23
24 <% if @resolvoptions.size() > 0 %>
25 options <%= @searchpaths.join(" ") %>
26 <% end -%>