Skip to content

Commit

Permalink
feat(map): add FreeBSD support for certbot
Browse files Browse the repository at this point in the history
  • Loading branch information
sticky-note committed Jul 29, 2020
1 parent c40262b commit 911a443
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions letsencrypt/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ letsencrypt:
pkgs:
- python3-certbot-apache
service: certbot.timer
# Only used for the pkg install method (use_package: true), internal var
_cli_path: /usr/bin/certbot
# Only used for the git install method (use_package: false)
cli_install_dir: /opt/letsencrypt
# Only used for the git install method (use_package: false). If you want to
Expand Down
6 changes: 3 additions & 3 deletions letsencrypt/domains.sls
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
{% if letsencrypt.use_package %}
# Renew checks if the cert exists and needs to be renewed
{% set check_cert_cmd = '/usr/bin/certbot renew --dry-run --no-random-sleep-on-renew --cert-name' %}
{% set renew_cert_cmd = '/usr/bin/certbot renew' %}
{% set check_cert_cmd = letsencrypt._cli_path ~ ' renew --dry-run --no-random-sleep-on-renew --cert-name' %}
{% set renew_cert_cmd = letsencrypt._cli_path ~ ' renew' %}
{% set old_check_cert_cmd_state = 'absent' %}
{% set old_renew_cert_cmd_state = 'absent' %}
{% set old_cron_state = 'absent' %}
{% set create_cert_cmd = '/usr/bin/certbot' %}
{% set create_cert_cmd = letsencrypt._cli_path %}
{% else %}
{% set check_cert_cmd = '/usr/local/bin/check_letsencrypt_cert.sh' %}
Expand Down
3 changes: 3 additions & 0 deletions letsencrypt/osfamilymap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
---
RedHat:
service: certbot-renew.timer
FreeBSD:
# Only used for the pkg install method (use_package: true), internal var
_cli_path: /usr/local/bin/certbot

0 comments on commit 911a443

Please sign in to comment.