Advertisement
Guest User

Untitled

a guest
Jul 30th, 2013
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. # Include the data directories. check if there is a file for the host fiest
  2. # else use the default.
  3. {% import os as os %}
  4. {% set stateFile = '/root/salt/db/percona/dirs/' + grains['fqdn'] + '.sls' %}
  5. {% set dirsState = 'db.percona.dirs.default' %}
  6. {% if os.path.isfile( stateFile ) %}
  7. {% set dirsState = 'db.percona.dirs.' + grains['fqdn'] %}
  8. {% endif %}
  9.  
  10. include:
  11. - {{ dirState }}:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement