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.

пре 5 година
пре 7 година
пре 5 година
пре 7 година
пре 5 година
пре 7 година
пре 5 година
123456789101112131415161718192021222324
  1. # -*- coding: utf-8 -*-
  2. # vim: ft=jinja
  3. {#- Get the `tplroot` from `tpldir` #}
  4. {%- set tplroot = tpldir.split('/')[0] %}
  5. {#- Start imports as #}
  6. {%- import_yaml tplroot ~ "/defaults.yaml" or {} as default_settings %}
  7. {%- import_yaml tplroot ~ "/osfamilymap.yaml" or {} as osfamilymap %}
  8. {%- import_yaml tplroot ~ "/osmap.yaml" or {} as osmap %}
  9. {%- import_yaml tplroot ~ "/osfingermap.yaml" or {} as osfingermap %}
  10. {%- set defaults = salt['grains.filter_by'](default_settings,
  11. default='ufw',
  12. merge=salt['grains.filter_by'](osfamilymap, grain='os_family',
  13. merge=salt['grains.filter_by'](osmap, grain='os',
  14. merge=salt['grains.filter_by'](osfingermap, grain='osfinger',
  15. merge=salt['pillar.get']('ufw:lookup', default={})
  16. )
  17. )
  18. )
  19. ) %}
  20. {#- Merge the ufw pillar #}
  21. {%- set ufw = salt['pillar.get']('ufw', default=defaults, merge=True) %}