File tree Expand file tree Collapse file tree 6 files changed +12
-17
lines changed Expand file tree Collapse file tree 6 files changed +12
-17
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,6 @@ If `use_package` is `False` it installs and configures the letsencrypt cli from
65
65
** WARNING **
66
66
If you set `use_package ` to `True `, it will:
67
67
68
- * Default to Python3's certbot package (where possible), with Apache as the default Webserver to manage.
69
68
* Delete all certbot's crons if they exist from a previous git-based installation (as the package uses a
70
69
systemd's timer unit to renew all the certs)
71
70
* Delete git-based installation's scripts (usually installed under /usr/local/bin) if they still exist declared in
Original file line number Diff line number Diff line change 3
3
---
4
4
letsencrypt :
5
5
use_package : true
6
+ pkgs : []
6
7
git_pkg : git
7
- pkgs :
8
- - python3-certbot-apache
9
8
service : certbot.timer
10
9
# Only used for the pkg install method (use_package: true), internal var
11
10
_cli_path : /usr/bin/certbot
11
+ # Only used for the pkg install method (use_package: true), internal var
12
+ _default_pkg : certbot
12
13
# Only used for the git install method (use_package: false)
13
14
cli_install_dir : /opt/letsencrypt
14
15
# Only used for the git install method (use_package: false). If you want to
Original file line number Diff line number Diff line change @@ -21,8 +21,9 @@ letsencrypt_external_repo:
21
21
22
22
letsencrypt- client:
23
23
{%- if letsencrypt.use_package % }
24
+ {%- set pkgs = letsencrypt.pkgs or [letsencrypt._default_pkg] % }
24
25
pkg.installed:
25
- - pkgs: {{ letsencrypt. pkgs | json }}
26
+ - pkgs: {{ pkgs | json }}
26
27
{%- else % }
27
28
pkg.installed:
28
29
- name: {{ letsencrypt.git_pkg }}
Original file line number Diff line number Diff line change 10
10
# you will need to provide at least an empty dict in this file, e.g.
11
11
# osfingermap: {}
12
12
---
13
- # os: CentOS
14
- CentOS Linux-7 :
15
- pkgs :
16
- - python2-certbot-apache
17
- # os: OEL
18
- Oracle Linux Server-7 :
19
- pkgs :
20
- - python2-certbot-apache
13
+ osfingermap : {}
Original file line number Diff line number Diff line change 10
10
# you will need to provide at least an empty dict in this file, e.g.
11
11
# osmap: {}
12
12
---
13
- # os_family: RedHat
14
- Amazon :
15
- pkgs :
16
- - python2-certbot-apache
13
+ osmap : {}
Original file line number Diff line number Diff line change @@ -7,8 +7,12 @@ letsencrypt:
7
7
# A list of package/s to install. To find the correct name for the variant
8
8
# you want to use, check https://certbot.eff.org/all-instructions
9
9
# Usually, you'll need a single one, but you can also add other plugins here.
10
+ # It defaults to installing the `certbot` package, but you can add other
11
+ # plugins for authentication/install
10
12
pkgs :
11
- - python-certbot-apache
13
+ - python3-certbot-apache
14
+ # - python3-certbot-nginx
15
+ # - python3-dns-route53
12
16
# Only used for the git install method (use_package: false)
13
17
cli_install_dir : /opt/letsencrypt
14
18
# Only used for the git install method (use_package: false). If you want to
You can’t perform that action at this time.
0 commit comments