File tree Expand file tree Collapse file tree
ansible/roles/monitoring_agent/defaults Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,5 +48,6 @@ opensuse_repos:
4848
4949ubuntu_packages :
5050 - bc
51+ - mcelog
5152 - nagios-nrpe-server
5253 - smartmontools
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ ENV ALTITUDE="100, foot" \
1717 DB_NAME=weewx_a \
1818 DB_NAME_FORECAST=weewx_f \
1919 DB_USER=weewx \
20+ DEBUG=0 \
2021 DEVICE_PORT=/dev/ttyUSB0 \
2122 HTML_ROOT=/var/www/weewx \
2223 LOCATION="Anytown, USA" \
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ DB_PASS=$(cat /run/secrets/weewx-db-password)
44WUNDER_PASS=$( cat /run/secrets/weewx-wunderground-password)
55WUNDER_API_KEY=$( cat /run/secrets/weewx-wunderground-apikey)
66SSHKEY=weewx-rsync-sshkey
7+ WX_GROUP=dialout
78HOMEDIR=/home/$WX_USER
89PATH=$HOMEDIR /bin:$PATH
910
@@ -22,6 +23,7 @@ if [ ! -e $HOMEDIR/weewx.conf.bak ]; then
2223 sed --in-place=.bak -e " s/location = DESC/location = \" $LOCATION \" /" \
2324 -e " s/altitude = 0, foot/altitude = $ALTITUDE /" \
2425 -e " s/archive_interval =.*/archive_interval = $LOGGING_INTERVAL /" \
26+ -e " s/debug = 0/debug = $DEBUG /" \
2527 -e " s/latitude =.*/latitude = $LATITUDE /" \
2628 -e " s/longitude =.*/longitude = $LONGITUDE /" \
2729 -e " s:port = /dev/.*:port = $DEVICE_PORT :" \
@@ -62,6 +64,7 @@ if [ ! -e $HOMEDIR/weewx.conf.bak ]; then
6264 wee_device --set-tz-code=$TZ_CODE
6365fi
6466
67+ sed -i -e " s/^\$ ModLoad imklog/#\$ ModLoad imklog/" /etc/rsyslog.conf
6568rsyslogd
6669
6770cp /run/secrets/$SSHKEY /run/$SSHKEY && chmod 400 /run/$SSHKEY
7780fi
7881
7982chown -R $WX_USER $HOMEDIR $HTML_ROOT /run/$SSHKEY
83+ # Docker 18.02 changes group to root at launch
84+ chgrp $WX_GROUP /dev/ttyUSB0
8085set +e
8186su $WX_USER -c " PATH=$PATH weewxd $HOMEDIR /weewx.conf|grep -v LOOP:"
8287# Failure: attempt restart only every 2 minutes
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ version: "3"
22services :
33
44 app :
5- image : sonatype/nexus3:3.7 .0
5+ image : sonatype/nexus3:3.8 .0
66 hostname : nexus
77 environment :
88 INSTALL4J_ADD_VM_PARAMS : >
You can’t perform that action at this time.
0 commit comments