X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/18e12b0e123fc3e5f344682f884feabc12da0f5a..1030c86c09e9760d24c8e23fcb30d9536a94b226:/cookbooks/nodejs/recipes/default.rb diff --git a/cookbooks/nodejs/recipes/default.rb b/cookbooks/nodejs/recipes/default.rb index 0e616ea19..87af7d656 100644 --- a/cookbooks/nodejs/recipes/default.rb +++ b/cookbooks/nodejs/recipes/default.rb @@ -17,8 +17,13 @@ # limitations under the License. # -package "nodejs" -package "nodejs-legacy" -package "npm" -package "g++" -package "make" +package %w[ + nodejs + npm + g++ + make +] + +if node[:lsb][:release].to_f < 18.04 + package "nodejs-legacy" +end