Saltstack Official FirewallD 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.

21 line
589B

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=jinja
  3. {#- Start with defaults from defaults.yaml #}
  4. {% import_yaml "firewalld/defaults.yaml" as default_settings %}
  5. {% import_yaml "firewalld/osfamilymap.yaml" as osfamilymap %}
  6. {% set platform_defaults = salt['grains.filter_by'](default_settings,
  7. default='default',
  8. merge=salt['grains.filter_by'](osfamilymap, grain='os_family',
  9. merge=salt['pillar.get']('firewalld:lookup')
  10. )
  11. ) %}
  12. {#- Merge in salt:lookup pillar #}
  13. {% set firewalld = salt['pillar.get'](
  14. 'firewalld',
  15. default=platform_defaults.firewalld,
  16. merge=True)
  17. %}