Saltstack Official FirewallD Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314151617181920
  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. %}