From 8b9c58cf740bd7a78b85590e4c845a776df030be Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 29 Aug 2021 18:37:08 +0100 Subject: [PATCH] Drop some conditional support for Ubuntu 18.04 --- cookbooks/bind/recipes/default.rb | 14 ++++---------- cookbooks/php/attributes/default.rb | 7 +------ 2 files changed, 5 insertions(+), 16 deletions(-) diff --git a/cookbooks/bind/recipes/default.rb b/cookbooks/bind/recipes/default.rb index 77c777e1a..78db7466f 100644 --- a/cookbooks/bind/recipes/default.rb +++ b/cookbooks/bind/recipes/default.rb @@ -31,13 +31,7 @@ end.flatten package "bind9" -service_name = if node[:lsb][:release].to_f < 20.04 - "bind9" - else - "named" - end - -service service_name do +service "named" do action [:enable, :start] end @@ -46,7 +40,7 @@ template "/etc/bind/named.conf.local" do owner "root" group "root" mode "644" - notifies :restart, "service[#{service_name}]" + notifies :restart, "service[named]" end template "/etc/bind/named.conf.options" do @@ -55,7 +49,7 @@ template "/etc/bind/named.conf.options" do group "root" mode "644" variables :ipv4_clients => ipv4_clients, :ipv6_clients => ipv6_clients - notifies :restart, "service[#{service_name}]" + notifies :restart, "service[named]" end template "/etc/bind/db.10" do @@ -63,7 +57,7 @@ template "/etc/bind/db.10" do owner "root" group "root" mode "644" - notifies :reload, "service[#{service_name}]" + notifies :reload, "service[named]" end firewall_rule "accept-dns-udp" do diff --git a/cookbooks/php/attributes/default.rb b/cookbooks/php/attributes/default.rb index ccce26093..f7a620810 100644 --- a/cookbooks/php/attributes/default.rb +++ b/cookbooks/php/attributes/default.rb @@ -1,7 +1,2 @@ -default[:php][:version] = if node[:lsb][:release].to_f < 20.04 - "7.2" - else - "7.4" - end - +default[:php][:version] = "7.4" default[:php][:fpm][:options] = {} -- 2.39.5