Skip to content

Commit

Permalink
Mapping the master secrets to config
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Kossis committed Mar 1, 2024
1 parent aae8f65 commit 0adb340
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions readme-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions root/defaults/smokeping_secrets
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
host1:mysecret
host2:yoursecret
boomer:lkasdf93uhhfdfddf
8 changes: 8 additions & 0 deletions root/etc/s6-overlay/s6-rc.d/init-smokeping-config/run
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0adb340

Please sign in to comment.