Skip to content

Instantly share code, notes, and snippets.

@arubis
Created August 26, 2014 21:58
Show Gist options
  • Save arubis/95adeb756943164217bb to your computer and use it in GitHub Desktop.
Save arubis/95adeb756943164217bb to your computer and use it in GitHub Desktop.
dylan@salt /srv/salt (internal-ip-nginx-endpoint●)$ _ salt '*' grains.item roles
logstash_staging:
roles:
logstash-reciever
logstash
elasticsearch
kibana
logstash_ops:
roles:
logstash-reciever
logstash
elasticsearch
kibana
dylan@salt /srv/salt (internal-ip-nginx-endpoint●)$ _ salt '*' grains.has_value 'roles:logstash'
logstash_staging:
False
logstash_ops:
False
dylan@salt /srv/salt (internal-ip-nginx-endpoint●)$ _ salt -G 'roles:logstash' test.ping
logstash_ops:
True
logstash_staging:
True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment