Do NOT install `ntp` to Ubuntu 20.04.

This commit is contained in:
Kazuhiro MUSASHI 2020-10-10 16:02:05 +09:00
parent 4a9e3d6286
commit 4b911ce98a
2 changed files with 15 additions and 19 deletions

View File

@ -54,17 +54,18 @@ include_recipe './fortune.rb'
# timezone configurations:
include_recipe './timezone.rb'
# ntp configurations:
include_recipe './ntp.rb'
# kernel configurations:
include_recipe './kernel.rb'
# Install mc command:
include_recipe './mc.rb'
# unnecessary configurations:
# recipes for Ubuntu 16.04
if node['platform_version'].to_f == 16.04
# ntp configurations
include_recipe './ntp.rb'
# misc recipe
include_recipe './unnecessary.rb'
end

View File

@ -1,7 +1,3 @@
case run_command('grep VERSION_ID /etc/os-release | awk -F\" \'{print $2}\'').stdout.chomp
when "18.04"
# do nothing
else
package 'ntp'
remote_file '/etc/ntp.conf' do
@ -15,4 +11,3 @@ else
service 'ntp' do
action :nothing
end
end