Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2013
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #grain-match.sls :
  2.  
  3. {% if 'db' in grains.get('saltrole', []) %}
  4. grain-test:
  5. file:
  6. - name: /tmp/grain-test
  7. - touch
  8. {% endif %}
  9.  
  10.  
  11. and i have the grains set up like this :
  12.  
  13. salt 'salt2' grains.setval saltrole "['db', 'web']"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement