Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #grain-match.sls :
- {% if 'db' in grains.get('saltrole', []) %}
- grain-test:
- file:
- - name: /tmp/grain-test
- - touch
- {% endif %}
- and i have the grains set up like this :
- salt 'salt2' grains.setval saltrole "['db', 'web']"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement