summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-09-07 01:35:01 +0200
committerHolger Levsen <holger@layer-acht.org>2015-09-07 01:35:01 +0200
commit098a7d6efbf465ee8971a920cb373a8e41dc6f58 (patch)
treef8b6d313b5fad179236e71d6d553720f0bc99897
parent550638c47d7be6850731a9c6f228e41d0b70efad (diff)
downloadjenkins.debian.net-098a7d6efbf465ee8971a920cb373a8e41dc6f58.tar.xz
modify rc.local on hb0|bpi0|profitbricks-build2 to run the system 400 days in the future (so far only manually deployed on bpi0)
-rw-r--r--TODO16
-rwxr-xr-xhosts/bpi0-armhf-rb/etc/rc.local7
-rwxr-xr-xhosts/hb0-armhf-rb/etc/rc.local7
-rwxr-xr-xhosts/profitbricks-build2-amd64/etc/rc.local7
-rwxr-xr-xupdate_jdn.sh8
5 files changed, 31 insertions, 14 deletions
diff --git a/TODO b/TODO
index 0c86d204..07037720 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 9493d09d..d98b2916 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 9493d09d..d98b2916 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 9493d09d..7940adf5 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 fa61af8f..2c33b0ff 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