Do NOT install `ntp` to Ubuntu 20.04.
This commit is contained in:
parent
4a9e3d6286
commit
4b911ce98a
|
@ -54,17 +54,18 @@ include_recipe './fortune.rb'
|
||||||
# timezone configurations:
|
# timezone configurations:
|
||||||
include_recipe './timezone.rb'
|
include_recipe './timezone.rb'
|
||||||
|
|
||||||
# ntp configurations:
|
|
||||||
include_recipe './ntp.rb'
|
|
||||||
|
|
||||||
# kernel configurations:
|
# kernel configurations:
|
||||||
include_recipe './kernel.rb'
|
include_recipe './kernel.rb'
|
||||||
|
|
||||||
# Install mc command:
|
# Install mc command:
|
||||||
include_recipe './mc.rb'
|
include_recipe './mc.rb'
|
||||||
|
|
||||||
# unnecessary configurations:
|
# recipes for Ubuntu 16.04
|
||||||
if node['platform_version'].to_f == 16.04
|
if node['platform_version'].to_f == 16.04
|
||||||
|
# ntp configurations
|
||||||
|
include_recipe './ntp.rb'
|
||||||
|
|
||||||
|
# misc recipe
|
||||||
include_recipe './unnecessary.rb'
|
include_recipe './unnecessary.rb'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,18 +1,13 @@
|
||||||
case run_command('grep VERSION_ID /etc/os-release | awk -F\" \'{print $2}\'').stdout.chomp
|
package 'ntp'
|
||||||
when "18.04"
|
|
||||||
# do nothing
|
|
||||||
else
|
|
||||||
package 'ntp'
|
|
||||||
|
|
||||||
remote_file '/etc/ntp.conf' do
|
remote_file '/etc/ntp.conf' do
|
||||||
owner 'root'
|
owner 'root'
|
||||||
group 'root'
|
group 'root'
|
||||||
mode '644'
|
mode '644'
|
||||||
|
|
||||||
notifies :restart, 'service[ntp]'
|
notifies :restart, 'service[ntp]'
|
||||||
end
|
end
|
||||||
|
|
||||||
service 'ntp' do
|
service 'ntp' do
|
||||||
action :nothing
|
action :nothing
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue