X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/59e4ebe405e91d048e14a794f9f7b5bd24a6c8c8..ac030de66ba404119c491c58eede68a4a3325f2d:/cookbooks/passenger/attributes/default.rb diff --git a/cookbooks/passenger/attributes/default.rb b/cookbooks/passenger/attributes/default.rb index 1c1b0c6fb..03c6b5a8d 100644 --- a/cookbooks/passenger/attributes/default.rb +++ b/cookbooks/passenger/attributes/default.rb @@ -1,8 +1,8 @@ -if node[:lsb][:release].to_f < 20.04 - default[:passenger][:ruby_version] = "2.5" -else - default[:passenger][:ruby_version] = "2.7" -end +default[:passenger][:ruby_version] = if node[:lsb][:release].to_f < 20.04 + "2.5" + else + "2.7" + end default[:passenger][:max_pool_size] = 6 default[:passenger][:pool_idle_time] = 300