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.

17 lines
448B

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=sls
  3. ---
  4. {#- Get the `tplroot` from `tpldir` #}
  5. {%- set tplroot = tpldir.split('/')[0] %}
  6. {%- from tplroot ~ "/map.jinja" import firewalld as map with context %}
  7. {%- set output_file = '/tmp/salt_yaml_dump.yaml' %}
  8. yaml-dump-{{ tplroot }}:
  9. file.managed:
  10. - name: {{ output_file }}
  11. - source: salt://{{ tplroot }}/yaml_dump/yaml_dump.jinja
  12. - template: jinja
  13. - context:
  14. map: {{ map | yaml }}