Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. [root@ip-172-31-30-77 ~]# cat /srv/pillar/top.sls
  2. base:
  3. '*':
  4. - place_holder
  5.  
  6. 'G@ec2_roles:consul-server':
  7. - match: grain
  8. - consul-template
  9. - consul
  10. [root@ip-172-31-30-77 ~]# salt-call grains.get ec2_roles
  11. local:
  12. - consul-server
  13. - sysdig
  14. [root@ip-172-31-30-77 ~]# salt-call state.sls consul -l debug
  15. .....snip......
  16. [PROFILE ] Time (in seconds) to render '/srv/pillar/top.sls' using 'yaml' renderer: 0.00461292266846
  17. [DEBUG ] compound_match: ip-172-31-19-201.ec2.internal ? *
  18. [DEBUG ] compound_match ip-172-31-19-201.ec2.internal ? "*" => "True"
  19. [DEBUG ] grains target: G@ec2_roles:consul-server
  20. [DEBUG ] Attempting to match 'consul-server' in 'G@ec2_roles' using delimiter ':'
  21. [DEBUG ] compile template: /srv/pillar/place_holder.sls
  22. [DEBUG ] Jinja search path: ['/srv/pillar']
  23. [PROFILE ] Time (in seconds) to render '/srv/pillar/place_holder.sls' using 'jinja' renderer: 0.000730991363525
  24. [DEBUG ] Rendered data from file: /srv/pillar/place_holder.sls:
  25. place_holder: true
  26. nothing_here_yet: true
  27.  
  28. [DEBUG ] Results of YAML rendering:
  29. OrderedDict([('place_holder', True), ('nothing_here_yet', True)])
  30. [PROFILE ] Time (in seconds) to render '/srv/pillar/place_holder.sls' using 'yaml' renderer: 0.000764131546021
  31.  
  32. ....snip..........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement