Skip to content

Commit af70d0f

Browse files
Merge pull request #84 from netmanagers/dont-force-default-plugin
Performing "selfie-merge", in line with community conventions:- https://github.com/saltstack/salt/blob/develop/doc/topics/development/conventions/formulas.rst#get-involved-creating-new-formulas
2 parents f937dca + 70dafdd commit af70d0f

File tree

6 files changed

+12
-17
lines changed

6 files changed

+12
-17
lines changed

docs/README.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ If `use_package` is `False` it installs and configures the letsencrypt cli from
6565
** WARNING **
6666
If you set `use_package` to `True`, it will:
6767

68-
* Default to Python3's certbot package (where possible), with Apache as the default Webserver to manage.
6968
* Delete all certbot's crons if they exist from a previous git-based installation (as the package uses a
7069
systemd's timer unit to renew all the certs)
7170
* Delete git-based installation's scripts (usually installed under /usr/local/bin) if they still exist declared in

letsencrypt/defaults.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
---
44
letsencrypt:
55
use_package: true
6+
pkgs: []
67
git_pkg: git
7-
pkgs:
8-
- python3-certbot-apache
98
service: certbot.timer
109
# Only used for the pkg install method (use_package: true), internal var
1110
_cli_path: /usr/bin/certbot
11+
# Only used for the pkg install method (use_package: true), internal var
12+
_default_pkg: certbot
1213
# Only used for the git install method (use_package: false)
1314
cli_install_dir: /opt/letsencrypt
1415
# Only used for the git install method (use_package: false). If you want to

letsencrypt/install.sls

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ letsencrypt_external_repo:
2121
2222
letsencrypt-client:
2323
{%- if letsencrypt.use_package %}
24+
{%- set pkgs = letsencrypt.pkgs or [letsencrypt._default_pkg] %}
2425
pkg.installed:
25-
- pkgs: {{ letsencrypt.pkgs | json }}
26+
- pkgs: {{ pkgs | json }}
2627
{%- else %}
2728
pkg.installed:
2829
- name: {{ letsencrypt.git_pkg }}

letsencrypt/osfingermap.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,4 @@
1010
# you will need to provide at least an empty dict in this file, e.g.
1111
# osfingermap: {}
1212
---
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: {}

letsencrypt/osmap.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,4 @@
1010
# you will need to provide at least an empty dict in this file, e.g.
1111
# osmap: {}
1212
---
13-
# os_family: RedHat
14-
Amazon:
15-
pkgs:
16-
- python2-certbot-apache
13+
osmap: {}

pillar.example

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@ letsencrypt:
77
# A list of package/s to install. To find the correct name for the variant
88
# you want to use, check https://certbot.eff.org/all-instructions
99
# 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
1012
pkgs:
11-
- python-certbot-apache
13+
- python3-certbot-apache
14+
# - python3-certbot-nginx
15+
# - python3-dns-route53
1216
# Only used for the git install method (use_package: false)
1317
cli_install_dir: /opt/letsencrypt
1418
# Only used for the git install method (use_package: false). If you want to

0 commit comments

Comments
 (0)