Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@ip-172-31-30-77 ~]# cat /srv/pillar/top.sls
- base:
- '*':
- - place_holder
- 'G@ec2_roles:consul-server':
- - match: grain
- - consul-template
- - consul
- [root@ip-172-31-30-77 ~]# salt-call grains.get ec2_roles
- local:
- - consul-server
- - sysdig
- [root@ip-172-31-30-77 ~]# salt-call state.sls consul -l debug
- .....snip......
- [PROFILE ] Time (in seconds) to render '/srv/pillar/top.sls' using 'yaml' renderer: 0.00461292266846
- [DEBUG ] compound_match: ip-172-31-19-201.ec2.internal ? *
- [DEBUG ] compound_match ip-172-31-19-201.ec2.internal ? "*" => "True"
- [DEBUG ] grains target: G@ec2_roles:consul-server
- [DEBUG ] Attempting to match 'consul-server' in 'G@ec2_roles' using delimiter ':'
- [DEBUG ] compile template: /srv/pillar/place_holder.sls
- [DEBUG ] Jinja search path: ['/srv/pillar']
- [PROFILE ] Time (in seconds) to render '/srv/pillar/place_holder.sls' using 'jinja' renderer: 0.000730991363525
- [DEBUG ] Rendered data from file: /srv/pillar/place_holder.sls:
- place_holder: true
- nothing_here_yet: true
- [DEBUG ] Results of YAML rendering:
- OrderedDict([('place_holder', True), ('nothing_here_yet', True)])
- [PROFILE ] Time (in seconds) to render '/srv/pillar/place_holder.sls' using 'yaml' renderer: 0.000764131546021
- ....snip..........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement