[Git][qa/jenkins.debian.net][master] jenkins nodes: add support for riscv64 nodes

Holger Levsen (@holger) gitlab at salsa.debian.org
Thu Feb 13 19:35:57 GMT 2025



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
7ec06988 by Holger Levsen at 2025-02-13T20:35:46+01:00
jenkins nodes: add support for riscv64 nodes

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


2 changed files:

- + hosts/common-riscv64/riscv64-common/etc/apt/sources.list
- update_jdn.sh


Changes:

=====================================
hosts/common-riscv64/riscv64-common/etc/apt/sources.list
=====================================
@@ -0,0 +1,4 @@
+#
+# Debian trixie local mirror
+#
+deb http://mirrors.tuna.tsinghua.edu.cn/debian trixie main


=====================================
update_jdn.sh
=====================================
@@ -274,7 +274,7 @@ fi
 # deploy package configuration in /etc, /usr, /var and /opt
 #
 cd $BASEDIR
-for h in common common-amd64 common-i386 common-arm64 common-armhf "$HOSTNAME" ; do
+for h in common common-amd64 common-i386 common-arm64 common-armhf common-riscv64 "$HOSTNAME" ; do
 	if [ "$HOSTNAME" = "rb-mail1" ]; then
 		# the mail server is managed by ansible elsewhere.
 		continue
@@ -285,6 +285,7 @@ for h in common common-amd64 common-i386 common-arm64 common-armhf "$HOSTNAME" ;
 		common-i386)  [ $DPKG_ARCH = "i386" ] || continue ;;
 		common-arm64) [ $DPKG_ARCH = "arm64" ] || continue ;;
 		common-armhf) [ $DPKG_ARCH = "armhf" ] || continue ;;
+		common-riscv64) [ $DPKG_ARCH = "riscv64" ] || continue ;;
 		*) ;;
 	esac
 	if [ -d "hosts/$h/etc/sudoers.d/" ]; then
@@ -414,8 +415,8 @@ if [ -f /etc/debian_version ] ; then
 				" ;;
 		esac
 		case $DPKG_ARCH in
-			# fail2ban is not useful on all arm64 and armhf nodes as they are behind NAT
-			arm64|armhf)	;;
+			# fail2ban is not useful on any arm64, armhf or riscv64 nodes as they all are behind NAT
+			arm64|armhf|riscv64)	;;
 			*)		DEBS="$DEBS fail2ban" ;;
 		esac
 		case $HOSTNAME in
@@ -792,12 +793,12 @@ fi
 
 if ! $UP2DATE || [ $BASEDIR/hosts/$HOSTNAME/etc/munin -nt $STAMP ] ; then
 	cd /etc/munin/plugins
-	# enable fail2ban conditionally, all arm64 and armhf nodes are behind NAT
+	# enable fail2ban conditionally, all arm64, armhf, risc64 nodes are behind NAT
 	case $DPKG_ARCH in
-		arm64|armhf)	sudo rm -f fail2ban ;;
-		*)		i=fail2ban
-				[ -e $i ] || sudo ln -s /usr/share/munin/plugins/$i $i
-				;;
+		arm64|armhf|riscv64)	sudo rm -f fail2ban ;;
+		*)			i=fail2ban
+					[ -e $i ] || sudo ln -s /usr/share/munin/plugins/$i $i
+					;;
 	esac
 	# delete some everywhere
 	sudo rm -f postfix_* open_inodes interrupts irqstats threads proc_pri vmstat if_err_* exim_* netstat fw_forwarded_local fw_packets fw_conntrack forks open_files users nfs* ntp* df_abs entropy http_loadtime



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/7ec069881ab11f33f22026ffdf851137309b92d9

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/7ec069881ab11f33f22026ffdf851137309b92d9
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20250213/77ce7974/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list