Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Include the data directories. check if there is a file for the host fiest
- # else use the default.
- {% import os as os %}
- {% set stateFile = '/root/salt/db/percona/dirs/' + grains['fqdn'] + '.sls' %}
- {% set dirsState = 'db.percona.dirs.default' %}
- {% if os.path.isfile( stateFile ) %}
- {% set dirsState = 'db.percona.dirs.' + grains['fqdn'] %}
- {% endif %}
- include:
- - {{ dirState }}:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement