lctp_network: set static dns settings in /etc/resolvconf/resolv.conf.d/head

This commit is contained in:
Jörg Thalheim 2014-01-27 11:37:03 +01:00
parent fd718a71aa
commit c61819bc5f
1 changed files with 1 additions and 4 deletions

View File

@ -12,10 +12,7 @@ end
network = node.lctp_network
unless network.domain_servers.empty? and network.search_domains.empty?
file "/etc/dhcp/dhclient-enter-hooks.d/resolvconf" do
action :delete
end
template "/etc/resolv.conf" do
template "/etc/resolvconf/resolv.conf.d/head" do
source "resolv.conf.erb"
variables(network: network)
end