Commit 4335e4af authored by Mattia Rizzolo's avatar Mattia Rizzolo

misc fixups to the ssl deployment

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mapreri@ubuntu.com>
parent 17a1ff4f
#!/bin/bash
#!/bin/sh
#
# {{ ansible_managed }}
#
set -eu
echo "reloading nginx…"
sudo service nginx reload
......@@ -10,4 +10,6 @@ server {
return 204 "This is {{ inventory_hostname }}. If you came here there is a misconfiguration somewhere. Please inform gruppo-sistemisti@liste.ubuntu-it.org about the issue.";
add_header Content-Type text/plain;
}
include /etc/nginx/snippets/dehydrated.conf;
}
#!/bin/sh
#
# {{ ansible_managed }}
#
set -eu
if [ "$1" = "$(hostname -f)" ]; then
echo "reloading postfix…"
sudo service postfix reload
fi
......@@ -5,6 +5,7 @@
set -eu
OP=$1
shift
_log () {
echo " + ($OP) $*"
......@@ -13,7 +14,7 @@ _log () {
case "$OP" in
deploy_cert)
DOMAIN="$1"
run-parts --exit-on-error --arg="$DOMAIN" --report -- {{ ssl_home }}/hooks
run-parts --exit-on-error --arg="$DOMAIN" --verbose -- {{ ssl_home }}/hooks
;;
*)
;;
......
Markdown is supported
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