lctp_network: set static dns settings in /etc/resolvconf/resolv.conf.d/head
This commit is contained in:
parent
fd718a71aa
commit
c61819bc5f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user