|
- {%- if pillar.salt is defined %}
- {%- if pillar.salt.get('master', {}).get('enabled', False) or (pillar.salt.get('minion', {}).get('enabled', False) and pillar.salt.get('minion', {}).ca is defined) %}
- {%- from "salt/map.jinja" import master, minion with context %}
- backup:
- salt:
- {%- if master.get('backup', False) %}
- fs_includes:
- {%- if master.pillar.engine == 'reclass' or (master.pillar.engine == 'composite' and master.pillar.reclass is defined) %}
- - /srv/salt/reclass
- {%- endif %}
- - /etc/salt/pki
- {%- if minion.get('backup', False) %}
- - /etc/pki/ca
- {%- endif %}
- {%- elif minion.get('backup', False) %}
- fs_includes:
- - /etc/pki/ca
- {%- else %}
- fs_includes: []
- {%- endif %}
- fs_excludes: []
- {%- endif %}
- {%- endif %}
|