Skip to content

Commit

Permalink
feat(map): add create_init_cert_subcmd var
Browse files Browse the repository at this point in the history
  • Loading branch information
sticky-note committed Oct 26, 2020
1 parent eeb59e0 commit 20f9b35
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions letsencrypt/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ letsencrypt:
# more information, see: https://certbot.eff.org/docs/using.html#renewal
post_renew:
cmds: []
create_init_cert_subcmd: certonly
cron:
minute: random
hour: random
Expand Down
2 changes: 1 addition & 1 deletion letsencrypt/domains.sls
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
create-initial-cert-{{ setname }}-{{ domainlist | join('+') }}:
cmd.run:
- unless: {{ check_cert_cmd }} {{ setname }}
- name: {{ create_cert_cmd }} certonly --quiet --cert-name {{ setname }} -d {{ domainlist|join(' -d ') }} --non-interactive
- name: {{ create_cert_cmd }} {{ letsencrypt.create_init_cert_subcmd }} --quiet --cert-name {{ setname }} -d {{ domainlist|join(' -d ') }} --non-interactive
{% if not letsencrypt.use_package %}
- cwd: {{ letsencrypt.cli_install_dir }}
{% endif %}
Expand Down
2 changes: 2 additions & 0 deletions pillar.example
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ letsencrypt:
# have specific version of certbot you can enable it. The version value
# should match a certbot/certbot branch.
version: 0.30.x
# Subcommand used for certificates' first generation cmd ( run | certonly | renew )
create_init_cert_subcmd: certonly
# Any parameter from the cli can be specified in the config file
# check https://certbot.eff.org/docs/using.html#configuration-file
config:
Expand Down

0 comments on commit 20f9b35

Please sign in to comment.