[Piuparts-devel] [Git][debian/piuparts][develop] instances: add templating for the number of runners

Nicolas Dandrimont (@olasd) gitlab at salsa.debian.org
Tue Aug 20 12:42:10 BST 2024



Nicolas Dandrimont pushed to branch develop at Debian / piuparts


Commits:
36a88c35 by Nicolas Dandrimont at 2024-08-20T13:41:35+02:00
instances: add templating for the number of runners

- - - - -


2 changed files:

- instances/Makefile
- instances/piuparts.conf-template.pejacevic


Changes:

=====================================
instances/Makefile
=====================================
@@ -1,9 +1,13 @@
 ARCH				 = amd64
 MIRROR				 = http://deb.debian.org/debian/
+NUM_RUNNERS          = 4
 
 ARCH_piu-slave-1und1-01		 = i386
 MIRROR_piu-slave-1und1-01	 = http://mirror.1und1.de/debian/
 
+NUM_RUNNERS_piu-slave-conova-01	 = 8
+
+
 GENCONF		 = piuparts.conf.pejacevic
 GENCONF		+= piuparts.conf.piu-slave-1und1-01
 GENCONF		+= piuparts.conf.piu-slave-ubc-01
@@ -17,5 +21,5 @@ clean:
 piuparts.conf.%: piuparts.conf-template.pejacevic Makefile piuparts.conf-header.%
 	cat piuparts.conf-header.$* > $@.tmp
 	echo "" >> $@.tmp
-	sed 's, at MIRROR@,$(or $(MIRROR_$*),$(MIRROR)),; s, at ARCH@,$(or $(ARCH_$*),$(ARCH)),;' < $< >> $@.tmp
+	sed 's, at MIRROR@,$(or $(MIRROR_$*),$(MIRROR)),; s, at ARCH@,$(or $(ARCH_$*),$(ARCH)),; s, at NUM_RUNNERS@,$(or $(NUM_RUNNERS_$*),$(NUM_RUNNERS)),;' < $< >> $@.tmp
 	mv $@.tmp $@


=====================================
instances/piuparts.conf-template.pejacevic
=====================================
@@ -294,7 +294,7 @@ components = main
 arch = @ARCH@
 area = main
 # the slave-count setting is for the slave(s)
-slave-count = 4
+slave-count = @NUM_RUNNERS@
 slave-flush-interval = 1800
 # 3600s = 1h
 idle-sleep = 3600



View it on GitLab: https://salsa.debian.org/debian/piuparts/-/commit/36a88c3551bc9256d062886ea4f7cd9ddb9fd85f

-- 
View it on GitLab: https://salsa.debian.org/debian/piuparts/-/commit/36a88c3551bc9256d062886ea4f7cd9ddb9fd85f
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/piuparts-devel/attachments/20240820/41d1318a/attachment-0001.htm>


More information about the Piuparts-devel mailing list