Skip to content

Commit

Permalink
fix(gentoo): use correct git package name
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Feb 15, 2021
1 parent e45257f commit 1054e0d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions letsencrypt/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
---
letsencrypt:
use_package: true
git_pkg: git
pkgs:
- python3-certbot-apache
service: certbot.timer
Expand Down
5 changes: 2 additions & 3 deletions letsencrypt/install.sls
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ letsencrypt-client:
- pkgs: {{ letsencrypt.pkgs | json }}
{%- else %}
pkg.installed:
- name: git
- name: {{ letsencrypt.git_pkg }}
{%- if letsencrypt.version is defined and letsencrypt.version|length %}
# Note: `git.cloned` is unavailable in `2017.7`
git.cloned:
- name: https://github.com/certbot/certbot
- branch: {{ letsencrypt.version }}
Expand All @@ -39,4 +38,4 @@ letsencrypt-client:
- force_reset: True
{%- endif %}
{%- endif %}
- reload_modules: True
- reload_modules: True
2 changes: 2 additions & 0 deletions letsencrypt/osfamilymap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ RedHat:
FreeBSD:
# Only used for the pkg install method (use_package: true), internal var
_cli_path: /usr/local/bin/certbot
Gentoo:
git_pkg: dev-vcs/git

0 comments on commit 1054e0d

Please sign in to comment.