Skip to content

Commit

Permalink
try to fix config for debian 11
Browse files Browse the repository at this point in the history
  • Loading branch information
abma committed Dec 19, 2020
1 parent c4554b4 commit 08c1cb2
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 18 deletions.
6 changes: 3 additions & 3 deletions scripts/cfg/etc/apt/sources.list
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
deb http://ftp.tu-chemnitz.de/debian/ buster contrib main non-free
deb http://ftp.tu-chemnitz.de/debian/ buster-updates contrib main non-free
deb http://deb.debian.org/debian-security/ buster/updates main
deb http://ftp.tu-chemnitz.de/debian/ bullseye contrib main non-free
deb http://ftp.tu-chemnitz.de/debian/ bullseye-updates contrib main non-free
#deb http://deb.debian.org/debian-security/ bullseye/updates main

9 changes: 9 additions & 0 deletions scripts/cfg/etc/default/buildbot-worker
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
WORKER_RUNNER=/usr/bin/buildslave

WORKER_ENABLED[1]=1
WORKER_NAME[1]="buildslave #1"
WORKER_USER[1]="buildbot"
WORKER_BASEDIR[1]="/home/buildbot"
WORKER_OPTIONS[1]=""
WORKER_PREFIXCMD[1]=""

9 changes: 0 additions & 9 deletions scripts/cfg/etc/default/buildslave

This file was deleted.

4 changes: 2 additions & 2 deletions scripts/cfg/install/install-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ apt -y install g++ make cmake p7zip-full ninja-build \
autossh \
libboost-test-dev \
chrpath \
wget
wget \
git

apt -y remove snapd
8 changes: 5 additions & 3 deletions scripts/cfg/install/setup-auth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
set -e

BUILDBOTDIR=/home/buildbot
BUILDSLAVECFG=$BUILDBOTDIR/buildbot.tac
CONFIGDIR=/var/lib/buildbot/workers/spring
BUILDSLAVECFG=$CONFIGDIR/buildbot.tac

usermod -d "$BUILDBOTDIR" buildbot

Expand All @@ -16,7 +17,7 @@ if [ -s $BUILDSLAVECFG ]; then
PASSWORD=$(grep "passwd =" $BUILDSLAVECFG)
else
PASSWORD=$(pwgen 64 1)
buildbot-worker create-worker "$BUILDBOTDIR" localhost:9999 "$HOSTNAME" "$PASSWORD"
buildbot-worker create-worker "$CONFIGDIR" localhost:9999 "$HOSTNAME" "$PASSWORD"
fi

if ! [ -s "$BUILDBOTDIR/.ssh/id_rsa" ]; then
Expand All @@ -27,8 +28,9 @@ chmod 700 "$BUILDBOTDIR/.ssh"
chown -R buildbot:buildbot $BUILDBOTDIR

systemctl enable /etc/systemd/system/autossh.service
systemctl enable buildbot-worker@spring.service

echo "Public key:"
echo -n "Public key: ssh-rsa "
cat "$BUILDBOTDIR/.ssh/id_rsa.pub"
echo "buildslave username: $HOSTNAME password: $PASSWORD"

2 changes: 1 addition & 1 deletion scripts/setup-buildslaves.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ for arch in $ARCHITECTURES; do
lxc-attach --name $b -- rm -rf /home/buildbot/lib/tmp /home/buildbot/lib/download /install
lxc-attach --name $b -- systemctl daemon-reload
lxc-attach --name $b -- systemctl start autossh
lxc-attach --name $b -- systemctl start buildslave
lxc-attach --name $b -- systemctl start buildbot-worker@spring
lxc-attach --name $b -- chown -R buildbot:buildbot /home/buildbot
done

0 comments on commit 08c1cb2

Please sign in to comment.