Skip to content

Commit

Permalink
refactor(install): adapt virtualenv package to OS
Browse files Browse the repository at this point in the history
  • Loading branch information
Xeryus Stokkel committed Aug 3, 2021
1 parent ea3b3e0 commit 5b92061
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions letsencrypt/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ letsencrypt:
# Only used for the pip install method (install_method = pip). Can be used to
# install plugins for certbot.
pip_pkgs: []
# Only used for the pip install method (install_method = pip), internal var
virtualenv_pkg:
- python3-virtualenv
config:
server: https://acme-v02.api.letsencrypt.org/directory
agree-tos: true
Expand Down
4 changes: 1 addition & 3 deletions letsencrypt/install.sls
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ letsencrypt-client:
{%- endif %}
{%- elif letsencrypt.install_method == 'pip' %}
pkg.installed:
- pkgs:
- python3
- virtualenv
- pkgs: {{ letsencrypt.virtualenv_pkg | json }}
virtualenv.managed:
- name: {{ letsencrypt.cli_install_dir }}
- python: python3
Expand Down
8 changes: 8 additions & 0 deletions letsencrypt/osfamilymap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,11 @@ FreeBSD:
_cli_path: /usr/local/bin/certbot
Gentoo:
git_pkg: dev-vcs/git
virtualenv_pkg:
- dev-python/virtualenv
Debian:
virtualenv_pkg:
- virtualenv
Arch:
virtualenv_pkg:
- python-virtualenv

0 comments on commit 5b92061

Please sign in to comment.