[Qa-jenkins-scm] [jenkins.debian.net] 03/03: modify rc.local on hb0|bpi0|profitbricks-build2 to run the system 400 days in the future (so far only manually deployed on bpi0)

Holger Levsen holger at moszumanska.debian.org
Sun Sep 6 23:35:41 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 098a7d6efbf465ee8971a920cb373a8e41dc6f58
Author: Holger Levsen <holger at layer-acht.org>
Date:   Mon Sep 7 01:35:01 2015 +0200

    modify rc.local on hb0|bpi0|profitbricks-build2 to run the system 400 days in the future (so far only manually deployed on bpi0)
---
 TODO                                         | 16 +++-------------
 hosts/bpi0-armhf-rb/etc/rc.local             |  7 +++++++
 hosts/hb0-armhf-rb/etc/rc.local              |  7 +++++++
 hosts/profitbricks-build2-amd64/etc/rc.local |  7 +++++++
 update_jdn.sh                                |  8 +++++++-
 5 files changed, 31 insertions(+), 14 deletions(-)

diff --git a/TODO b/TODO
index 0c86d20..0703772 100644
--- a/TODO
+++ b/TODO
@@ -248,24 +248,14 @@ properties:
 ==== reproducible Debian armhf
 
 * make systems send mail
-* change date on 2nd build hosts (and disable systemd-timesyncd), done on bpi0 manually for testing:
-----
-sudo systemctl disable systemd-timesyncd
-sudo systemctl disable systemd-timedated
-sudo systemctl stop systemd-timesyncd
-sudo systemctl stop systemd-timedated
-sudo date --set="+400 days"
-# stills needs a rc.local script to set it to correct time on boot and then adding 400 days...
-----
+* change date on 2nd build hosts, done on bpi0 manually for testing…
 * make sure proxy on local network is used properly
-* monitor their temperatures via munin
+* monitor their temperatures via munin?
 
 ==== status of new remote build nodes for amd64
 
-* make systems send mail
-* make sure local squid is used properly
 * profitbricks-build2-amd64
-** should run in the future: +1d+1m+1y
+** should run in the future…
 ** needs to be moved to a different Profitbricks datacenter, to run with a different cpu type
 
 ==== reproducible Debian installation
diff --git a/hosts/bpi0-armhf-rb/etc/rc.local b/hosts/bpi0-armhf-rb/etc/rc.local
index 9493d09..d98b291 100755
--- a/hosts/bpi0-armhf-rb/etc/rc.local
+++ b/hosts/bpi0-armhf-rb/etc/rc.local
@@ -11,6 +11,13 @@
 #
 # By default this script does nothing.
 
+systemctl disable systemd-timesyncd
+systemctl disable systemd-timedated
+systemctl stop systemd-timesyncd
+systemctl stop systemd-timedated
+ntpdate -b us.pool.ntp.org
 echo "$(date) - system was rebooted" | mail -s "$(hostname -f) rebooted" root
+date --set="+400 days"
+echo "$(date) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 
 exit 0
diff --git a/hosts/hb0-armhf-rb/etc/rc.local b/hosts/hb0-armhf-rb/etc/rc.local
index 9493d09..d98b291 100755
--- a/hosts/hb0-armhf-rb/etc/rc.local
+++ b/hosts/hb0-armhf-rb/etc/rc.local
@@ -11,6 +11,13 @@
 #
 # By default this script does nothing.
 
+systemctl disable systemd-timesyncd
+systemctl disable systemd-timedated
+systemctl stop systemd-timesyncd
+systemctl stop systemd-timedated
+ntpdate -b us.pool.ntp.org
 echo "$(date) - system was rebooted" | mail -s "$(hostname -f) rebooted" root
+date --set="+400 days"
+echo "$(date) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 
 exit 0
diff --git a/hosts/profitbricks-build2-amd64/etc/rc.local b/hosts/profitbricks-build2-amd64/etc/rc.local
index 9493d09..7940adf 100755
--- a/hosts/profitbricks-build2-amd64/etc/rc.local
+++ b/hosts/profitbricks-build2-amd64/etc/rc.local
@@ -11,6 +11,13 @@
 #
 # By default this script does nothing.
 
+systemctl disable systemd-timesyncd
+systemctl disable systemd-timedated
+systemctl stop systemd-timesyncd
+systemctl stop systemd-timedated
+ntpdate -b de.pool.ntp.org
 echo "$(date) - system was rebooted" | mail -s "$(hostname -f) rebooted" root
+date --set="+400 days"
+echo "$(date) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
 
 exit 0
diff --git a/update_jdn.sh b/update_jdn.sh
index fa61af8..2c33b0f 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -109,7 +109,8 @@ if [ -f /etc/debian_version ] ; then
 	if [ ./$0 -nt $STAMP ] || [ ! -f $STAMP ] ; then
 		DEBS=" 
 			bash-completion 
-			bc 
+			bc
+			bsd-mailx
 			curl 
 			debootstrap 
 			devscripts 
@@ -136,6 +137,11 @@ if [ -f /etc/debian_version ] ; then
 			jenkins|profitbricks-build?-amd64) DEBS="$DEBS squid3" ;;
 			*) ;;
 		esac
+		# needed to run the 2nd reproducible builds nodes in the future...
+		case $HOSTNAME in
+			bpi0|hb0|profitbricks-build2-amd64) DEBS="$DEBS ntpdate" ;;
+			*) ;;
+		esac
 		if [ "$HOSTNAME" = "jenkins" ] ; then
 			MASTERDEBS=" 
 				apache2 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list