Skip to content
Snippets Groups Projects
Unverified Commit 242f0637 authored by Imran Iqbal's avatar Imran Iqbal
Browse files

fix(native): use EPEL repo for `amazonlinux-2`

parent 41edff6c
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,18 @@ include: ...@@ -4,6 +4,18 @@ include:
- tomcat.config - tomcat.config
tomcat {{ tomcat.native_pkg }}: tomcat {{ tomcat.native_pkg }}:
{%- if grains.get('osfinger', '') == 'Amazon Linux-2' %}
pkgrepo.managed:
- name: epel
- humanname: Extra Packages for Enterprise Linux 7 - $basearch
- mirrorlist: https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
- enabled: 1
- gpgcheck: 1
- gpgkey: https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
- failovermethod: priority
- require_in:
- pkg: tomcat {{ tomcat.native_pkg }}
{%- endif %}
pkg.installed: pkg.installed:
- name: {{ tomcat.native_pkg }} - name: {{ tomcat.native_pkg }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment