Skip to content

Commit

Permalink
fix(ng): fix config for Fedora 30 & 31
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Nov 25, 2019
1 parent e593d92 commit 9ddbcd5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions varnish/ng/map.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
'config': salt['grains.filter_by']({
'6': '/etc/sysconfig/varnish',
'7': '/etc/varnish/varnish.params',
'30': '/etc/varnish/varnish.params',
'31': '/etc/varnish/varnish.params',
}, grain='osmajorrelease'),
'repo': 'varnish40',
},
Expand Down
4 changes: 4 additions & 0 deletions varnish/ng/repo.sls
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,21 @@ varnish.repo.{{ varnish_settings.repo }}_src:
{% elif salt['grains.get']('os_family') == 'RedHat' %}
{% if salt['grains.get']('osfinger', '') not in ['Fedora-31'] %}
varnish.repo.dependencies:
pkg.installed:
- pkgs:
{% if salt['grains.get']('osfinger', '') not in ['Fedora-30'] %}
- pygpgme
{% endif %}
- yum-utils
- require_in:
{% if salt['grains.get']('osfinger', '') in ['CentOS Linux-7', 'Amazon Linux-2'] %}
- pkgrepo: varnish_epel_repo
{% endif %}
- pkgrepo: varnish.repo.{{ varnish_settings.repo }}
- pkgrepo: varnish.repo.{{ varnish_settings.repo }}_source
{% endif %}
{% if salt['grains.get']('osfinger', '') in ['CentOS Linux-7', 'Amazon Linux-2'] %}
varnish_epel_repo:
Expand Down

0 comments on commit 9ddbcd5

Please sign in to comment.