Saltstack Official UFW Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 satır
859B

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=sls
  3. {#- Get the `tplroot` from `tpldir` #}
  4. {%- set tplroot = tpldir.split('/')[0] %}
  5. {%- from tplroot ~ "/map.jinja" import ufw with context %}
  6. ufw-package-install-pkg-installed:
  7. {%- if grains.get('osfinger', '') == 'Amazon Linux-2' %}
  8. pkgrepo.managed:
  9. - name: epel
  10. - humanname: Extra Packages for Enterprise Linux 7 - $basearch
  11. - mirrorlist: https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
  12. - enabled: 1
  13. - gpgcheck: 1
  14. - gpgkey: https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
  15. - failovermethod: priority
  16. - require_in:
  17. - pkg: ufw-package-install-pkg-installed
  18. {%- endif %}
  19. pkg.installed:
  20. - name: {{ ufw.package }}
  21. {%- for pkg in ufw.packages %}
  22. ufw-package-{{ pkg }}-install-pkg-installed:
  23. pkg.installed:
  24. - name: {{ pkg }}
  25. {%- endfor %}