LXC用のレシピを作成 #29
@ -8,9 +8,11 @@ end
|
|||||||
|
|
||||||
case run_command('grep VERSION_ID /etc/os-release | awk -F\" \'{print $2}\'').stdout.chomp
|
case run_command('grep VERSION_ID /etc/os-release | awk -F\" \'{print $2}\'').stdout.chomp
|
||||||
when "24.04"
|
when "24.04"
|
||||||
|
unless node['base']['lxc']
|
||||||
execute "change link to /etc/resolv.conf" do
|
execute "change link to /etc/resolv.conf" do
|
||||||
command "ln -fs /run/systemd/resolve/resolv.conf /etc/resolv.conf"
|
command "ln -fs /run/systemd/resolve/resolv.conf /etc/resolv.conf"
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
directory "/etc/systemd/resolved.conf.d/" do
|
directory "/etc/systemd/resolved.conf.d/" do
|
||||||
mode "0755"
|
mode "0755"
|
||||||
|
Loading…
Reference in New Issue
Block a user