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

17 行
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 }}