Commit 098a7d6e authored by Holger Levsen's avatar Holger Levsen
Browse files

modify rc.local on hb0|bpi0|profitbricks-build2 to run the system 400 days in...

modify rc.local on hb0|bpi0|profitbricks-build2 to run the system 400 days in the future (so far only manually deployed on bpi0)
parent 550638c4
...@@ -248,24 +248,14 @@ properties: ...@@ -248,24 +248,14 @@ properties:
==== reproducible Debian armhf ==== reproducible Debian armhf
* make systems send mail * make systems send mail
* change date on 2nd build hosts (and disable systemd-timesyncd), done on bpi0 manually for testing: * change date on 2nd build hosts, 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...
----
* make sure proxy on local network is used properly * 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 ==== status of new remote build nodes for amd64
* make systems send mail
* make sure local squid is used properly
* profitbricks-build2-amd64 * 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 ** needs to be moved to a different Profitbricks datacenter, to run with a different cpu type
==== reproducible Debian installation ==== reproducible Debian installation
......
...@@ -11,6 +11,13 @@ ...@@ -11,6 +11,13 @@
# #
# By default this script does nothing. # 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 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 exit 0
...@@ -11,6 +11,13 @@ ...@@ -11,6 +11,13 @@
# #
# By default this script does nothing. # 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 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 exit 0
...@@ -11,6 +11,13 @@ ...@@ -11,6 +11,13 @@
# #
# By default this script does nothing. # 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 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 exit 0
...@@ -109,7 +109,8 @@ if [ -f /etc/debian_version ] ; then ...@@ -109,7 +109,8 @@ if [ -f /etc/debian_version ] ; then
if [ ./$0 -nt $STAMP ] || [ ! -f $STAMP ] ; then if [ ./$0 -nt $STAMP ] || [ ! -f $STAMP ] ; then
DEBS=" DEBS="
bash-completion bash-completion
bc bc
bsd-mailx
curl curl
debootstrap debootstrap
devscripts devscripts
...@@ -136,6 +137,11 @@ if [ -f /etc/debian_version ] ; then ...@@ -136,6 +137,11 @@ if [ -f /etc/debian_version ] ; then
jenkins|profitbricks-build?-amd64) DEBS="$DEBS squid3" ;; jenkins|profitbricks-build?-amd64) DEBS="$DEBS squid3" ;;
*) ;; *) ;;
esac 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 if [ "$HOSTNAME" = "jenkins" ] ; then
MASTERDEBS=" MASTERDEBS="
apache2 apache2
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment