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

24 行
783B

  1. {%- if pillar.salt is defined %}
  2. {%- if pillar.salt.get('master', {}).get('enabled', False) or (pillar.salt.get('minion', {}).get('enabled', False) and pillar.salt.get('minion', {}).ca is defined) %}
  3. {%- from "salt/map.jinja" import master, minion with context %}
  4. backup:
  5. salt:
  6. {%- if master.get('backup', False) %}
  7. fs_includes:
  8. {%- if master.pillar.engine == 'reclass' or (master.pillar.engine == 'composite' and master.pillar.reclass is defined) %}
  9. - /srv/salt/reclass
  10. {%- endif %}
  11. - /etc/salt/pki
  12. {%- if minion.get('backup', False) %}
  13. - /etc/pki/ca
  14. {%- endif %}
  15. {%- elif minion.get('backup', False) %}
  16. fs_includes:
  17. - /etc/pki/ca
  18. {%- else %}
  19. fs_includes: []
  20. {%- endif %}
  21. fs_excludes: []
  22. {%- endif %}
  23. {%- endif %}