Files
openstack-ansible-haproxy_s…/templates/letsencrypt_renew_certbot_distro.j2
Jonathan Rosser 1d386a57f5 Add option to use distro provided certbot package
This patch allows a certbot package from a distro repository to be
used instead of the certbot-auto script. For ubuntu the distro package
takes care of setting up all the necessary directories in /etc/letsencrypt
and creates a systemd service for running the renewal. This avoids
needing to manage those aspects of the installation in this ansible role.

Change-Id: If7c5bcde299362bb3d2a136db659ca319e22e35b
2020-05-07 13:13:47 +00:00

8 lines
213 B
Django/Jinja

#!/bin/bash
# renew cert if required and copy to haproxy destination
cat /etc/letsencrypt/live/{{ external_lb_vip_address }}/{fullchain,privkey}.pem \
> /etc/ssl/private/haproxy.pem
systemctl reload haproxy