add script for deploying certbot replication setup

This commit is contained in:
Daniel Micay 2025-10-30 13:54:34 -04:00
parent e6db6a15e6
commit f9430a1aeb
4 changed files with 43 additions and 0 deletions

16
deploy-primary Executable file
View file

@ -0,0 +1,16 @@
#!/bin/bash
. shared.sh
. hosts.sh
for host in ${hosts_primary[@]}; do
remote=root@$host
echo
echo $host
echo
rsync --chmod=F755 certbot-replicate $remote:/usr/local/bin/
rsync etc/systemd/system/certbot-renew.service.d/replicate.conf $remote:/etc/systemd/system/certbot-renew.service.d/
ssh $remote systemctl daemon-reload
done