From 1e9411602b8f3f47d94c3b9be409bf977eaf24a9 Mon Sep 17 00:00:00 2001 From: Ewoud Kohl van Wijngaarden Date: Thu, 19 Dec 2024 12:56:00 +0100 Subject: [PATCH] Update NodeJS to 18.x on Ubuntu with Foreman 3.14+ As part of dropping NodeJS 14 this updates nodesource to NodeJS 18. That's also the version included in Ubuntu 24.04. It drops the conditionals for Foreman < 3.9 since those are gone now. --- .../jenkins_node/files/pbuilder_F66-add-nodesource-repos | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/puppet/modules/jenkins_node/files/pbuilder_F66-add-nodesource-repos b/puppet/modules/jenkins_node/files/pbuilder_F66-add-nodesource-repos index fe923d8a8..d15f695e6 100644 --- a/puppet/modules/jenkins_node/files/pbuilder_F66-add-nodesource-repos +++ b/puppet/modules/jenkins_node/files/pbuilder_F66-add-nodesource-repos @@ -1,10 +1,10 @@ #!/bin/bash # Nodesource -if [[ $FOREMAN_VERSION == 3.[0-8] ]]; then - nodesrcv="12.x" -else +if [[ $FOREMAN_VERSION == 3.1[0-3] ]]; then nodesrcv="14.x" +else + nodesrcv="18.x" fi echo "deb http://deb.nodesource.com/node_${nodesrcv} ${DISTRIBUTION} main" >> /etc/apt/sources.list