Skip to content

Commit 9304e57

Browse files
Merge pull request #77 from sticky-note/feat/init-cmd
feat(map): add `create_init_cert_subcmd` var
2 parents eeb59e0 + 20f9b35 commit 9304e57

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

letsencrypt/defaults.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ letsencrypt:
3131
# more information, see: https://certbot.eff.org/docs/using.html#renewal
3232
post_renew:
3333
cmds: []
34+
create_init_cert_subcmd: certonly
3435
cron:
3536
minute: random
3637
hour: random

letsencrypt/domains.sls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
create-initial-cert-{{ setname }}-{{ domainlist | join('+') }}:
4343
cmd.run:
4444
- unless: {{ check_cert_cmd }} {{ setname }}
45-
- name: {{ create_cert_cmd }} certonly --quiet --cert-name {{ setname }} -d {{ domainlist|join(' -d ') }} --non-interactive
45+
- name: {{ create_cert_cmd }} {{ letsencrypt.create_init_cert_subcmd }} --quiet --cert-name {{ setname }} -d {{ domainlist|join(' -d ') }} --non-interactive
4646
{% if not letsencrypt.use_package %}
4747
- cwd: {{ letsencrypt.cli_install_dir }}
4848
{% endif %}

pillar.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ letsencrypt:
1515
# have specific version of certbot you can enable it. The version value
1616
# should match a certbot/certbot branch.
1717
version: 0.30.x
18+
# Subcommand used for certificates' first generation cmd ( run | certonly | renew )
19+
create_init_cert_subcmd: certonly
1820
# Any parameter from the cli can be specified in the config file
1921
# check https://certbot.eff.org/docs/using.html#configuration-file
2022
config:

0 commit comments

Comments
 (0)