Mapping the master secrets to config

This commit is contained in:
Jason Kossis
2024-03-01 12:56:00 -05:00
parent aae8f6505c
commit 0adb3400bb
3 changed files with 12 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ app_setup_block: |
* To reload the configuration without restarting the container, run `docker exec smokeping pkill -f -HUP '/usr/bin/perl /usr/s?bin/smokeping(_cgi)?'`, where `smokeping` is the container ID.
* To restart the container, run `docker restart smokeping`, where `smokeping` is the container ID.
* Note that the default `Targets` file includes items that may or may not work. These are simply to provide examples of configuration.
* Slave setup: modify the `Targets`, `Slaves`, and `smokeping_secrets` files on the master host, per [the documentation](https://manpages.ubuntu.com/manpages/trusty/en/man7/smokeping_master_slave.7.html).
# changelog
changelogs:

View File

@@ -0,0 +1,3 @@
host1:mysecret
host2:yoursecret
boomer:lkasdf93uhhfdfddf

View File

@@ -43,6 +43,14 @@ if [[ ! -L /etc/apache2/httpd.conf ]]; then
ln -sf /config/httpd.conf /etc/apache2/httpd.conf
fi
if [[ ! -e /config/smokeping_secrets ]]; then
cp /defaults/smokeping_secrets /config/smokeping_secrets
fi
if [[ ! -L /etc/smokeping/smokeping_secrets ]]; then
ln -sf /config/smokeping_secrets /etc/smokeping/smokeping_secrets
fi
if [[ -e /config/ssmtp.conf ]]; then
cp /config/ssmtp.conf /etc/ssmtp/ssmtp.conf
fi