Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@demo1 tmp]# cat test_pillr.cf
- aaaaaaaaa
- bbbbbbbbb
- ddddddddd
- eeeeeeeee
- fffffffff
- [root@demo1 tmp]# cd -
- /srv/salt/test_pillar/files
- [root@demo1 files]# ls
- tmp_pillar_test_config
- [root@demo1 files]# cat tmp_pillar_test_config
- aaaaaaaaa
- bbbbbbbbb
- {% if salt['pillar.get']('apphost') == 'True' %}
- ccccccccc
- {% else %}
- ddddddddd
- {% endif %}
- eeeeeeeee
- fffffffff
- [root@demo1 files]# salt-call pillar.get apphost
- local:
- True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement