Advertisement
Guest User

Untitled

a guest
Apr 28th, 2015
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. [root@demo1 tmp]# cat test_pillr.cf
  2. aaaaaaaaa
  3. bbbbbbbbb
  4.  
  5. ddddddddd
  6.  
  7. eeeeeeeee
  8. fffffffff
  9.  
  10. [root@demo1 tmp]# cd -
  11. /srv/salt/test_pillar/files
  12. [root@demo1 files]# ls
  13. tmp_pillar_test_config
  14. [root@demo1 files]# cat tmp_pillar_test_config
  15. aaaaaaaaa
  16. bbbbbbbbb
  17. {% if salt['pillar.get']('apphost') == 'True' %}
  18. ccccccccc
  19. {% else %}
  20. ddddddddd
  21. {% endif %}
  22. eeeeeeeee
  23. fffffffff
  24.  
  25. [root@demo1 files]# salt-call pillar.get apphost
  26. local:
  27. True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement