瀏覽代碼

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

tags/v0.5.4
Imran Iqbal 4 年之前
父節點
當前提交
481c8973f7
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 12 行新增0 行删除
  1. +12
    -0
      ufw/package/install.sls

+ 12
- 0
ufw/package/install.sls 查看文件

@@ -6,6 +6,18 @@
{%- from tplroot ~ "/map.jinja" import ufw with context %}

ufw-package-install-pkg-installed:
{%- 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: ufw-package-install-pkg-installed
{%- endif %}
pkg.installed:
- name: {{ ufw.package }}


Loading…
取消
儲存