Advertisement
Guest User

Untitled

a guest
Sep 27th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. Pillar #1:
  2.  
  3. xyz:
  4. abc:
  5. - name: Item #1
  6. key1: value1
  7. key2: value2
  8.  
  9. Pillar #2:
  10.  
  11. xyz:
  12. abc:
  13. - name: Item #2
  14. key1: value4
  15. key2: value9
  16.  
  17. Pillar top.sls:
  18.  
  19. base:
  20. 'ec2_tags:service:applicaion1'
  21. - match: grain
  22. - pillar1
  23. 'ec2_tags:support_services:applicaion2'
  24. - match: grain
  25. - pillar2
  26.  
  27. On Target Instance with both tags:
  28. salt-call pillar.get xyz
  29. xyz:
  30. abc:
  31. - name: Item #1
  32. key1: value1
  33. key2: value2
  34. - name: Item #2
  35. key1: value4
  36. key2: value9
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement