Advertisement
Guest User

Targeting pillar dict ?

a guest
May 15th, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. salt 'web*.test.alkivi.fr' pillar.item haproxy
  2. web01.test.alkivi.fr:
  3. ----------
  4. haproxy:
  5. ----------
  6. listen:
  7. - front01.test.alkivi.fr
  8. listen2:
  9. ----------
  10. front01.test.alkivi.fr:
  11. ----------
  12. port:
  13. 9000
  14. web02.test.alkivi.fr:
  15. ----------
  16. haproxy:
  17. ----------
  18. listen:
  19. - front01.test.alkivi.fr
  20. listen2:
  21. ----------
  22. front01.test.alkivi.fr:
  23. ----------
  24. port:
  25. 9000
  26.  
  27. salt -C 'I@haproxy:listen:front01.test.alkivi.fr' test.ping
  28. web01.test.alkivi.fr:
  29. True
  30. web02.test.alkivi.fr:
  31. True
  32.  
  33. salt -C 'I@haproxy:listen2:front01.test.alkivi.fr' test.ping
  34. No minions matched the target. No command was sent, no jid was assigned.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement