Support fo Ubuntu2404 #26

Merged
kazu634 merged 29 commits from ubuntu2404 into main 2024-11-03 02:03:02 +00:00
4 changed files with 4 additions and 4 deletions
Showing only changes of commit 6fe04fdaa0 - Show all commits

View File

@ -1,5 +1,5 @@
case node['platform_version'] case node['platform_version']
when "18.04", "20.04", "22.04" when "18.04", "20.04", "22.04", "24.04"
execute 'timedatectl set-timezone Asia/Tokyo' do execute 'timedatectl set-timezone Asia/Tokyo' do
not_if 'timedatectl | grep Tokyo' not_if 'timedatectl | grep Tokyo'
end end

View File

@ -45,7 +45,7 @@ when "18.04"
not_if 'test -e /var/log/cron-apt/log' not_if 'test -e /var/log/cron-apt/log'
end end
when '20.04', '22.04' when '20.04', '22.04', '24.04'
%w(20auto-upgrades 50unattended-upgrades).each do |conf| %w(20auto-upgrades 50unattended-upgrades).each do |conf|
remote_file "/etc/apt/apt.conf.d/#{conf}" do remote_file "/etc/apt/apt.conf.d/#{conf}" do
owner 'root' owner 'root'

View File

@ -3,7 +3,7 @@
# ------------------------------------------- # -------------------------------------------
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 "20.04", "22.04" when "20.04", "22.04", "24.04"
cmd = 'LANG=C ip a | grep "inet " | grep -v -E "(127|172)" | cut -d" " -f6 | perl -pe "s/\/.+//g"' cmd = 'LANG=C ip a | grep "inet " | grep -v -E "(127|172)" | cut -d" " -f6 | perl -pe "s/\/.+//g"'
when "18.04" when "18.04"

View File

@ -2,7 +2,7 @@
# Specifying the default settings: # Specifying the default settings:
# ------------------------------------------- # -------------------------------------------
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 "20.04", "22.04" when "20.04", "22.04", "24.04"
cmd = 'LANG=C ip a | grep "inet " | grep -v -E "(127|172)" | cut -d" " -f6 | perl -pe "s/\/.+//g"' cmd = 'LANG=C ip a | grep "inet " | grep -v -E "(127|172)" | cut -d" " -f6 | perl -pe "s/\/.+//g"'
when "18.04" when "18.04"