Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # qa-tool-util has the "kibana" role
- my_user@salt-master:~$ sudo salt -C "qa-tool-util" grains.get role
- qa-tool-util:
- ...
- - kibana
- ...
- # qa-tool-util is in the "qa" environment
- my_user@salt-master:~$ sudo salt -C "qa-tool-util" grains.get environment
- qa-tool-util:
- qa
- # A compound matcher on both of those conditions returns nothing.
- my_user@salt-master:~$ sudo salt -C "G@role:kibana and G@environment:qa" test.ping
- No minions matched the target. No command was sent, no jid was assigned.
- ERROR: No return received
- # Opposite conditions, same thing.
- my_user@salt-master:~$ sudo salt -C "G@environment:qa and G@role:kibana" test.ping
- No minions matched the target. No command was sent, no jid was assigned.
- ERROR: No return received
- # Matcher for just role works.
- my_user@salt-master:~$ sudo salt -C "G@role:kibana" test.ping
- ...
- qa-tool-util:
- True
- ...
- # Matcher for just environment works.
- my_user@salt-master:~$ sudo salt -C "G@environment:qa" test.ping | grep tool-util
- qa-tool-util:
- # (jackie)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement