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
|
network = node.lctp_network
|
||||||
|
|
||||||
unless network.domain_servers.empty? and network.search_domains.empty?
|
unless network.domain_servers.empty? and network.search_domains.empty?
|
||||||
file "/etc/dhcp/dhclient-enter-hooks.d/resolvconf" do
|
template "/etc/resolvconf/resolv.conf.d/head" do
|
||||||
action :delete
|
|
||||||
end
|
|
||||||
template "/etc/resolv.conf" do
|
|
||||||
source "resolv.conf.erb"
|
source "resolv.conf.erb"
|
||||||
variables(network: network)
|
variables(network: network)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user