Skip to content

Instantly share code, notes, and snippets.

@arubis
Created August 26, 2014 21:24
Show Gist options
  • Save arubis/798fe28ebd89c5f349e0 to your computer and use it in GitHub Desktop.
Save arubis/798fe28ebd89c5f349e0 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': True, 'elasticsearch': True, 'logstash': True, 'kibana': True}
logstash_ops:
roles:
logstash-reciever
logstash
elasticsearch
kibana
dylan@salt /srv/salt (internal-ip-nginx-endpoint●)$ _ salt -G 'roles:elasticsearch' test.ping
logstash_ops:
True
base:
'roles:(elasticsearch|kibana)':
- match: grain_pcre
- data-volume
'*':
- salt
- main
- dylan-user
- nginx
- nginx.internal-endpoint
'roles:elasticsearch':
- match: grain
- elasticsearch
'roles:logstash-reciever':
- match: grain
- redis.server
- logstash
- logstash.curator
'roles:logstash':
- match: grain
- logstash
- logstash.curator
'roles:kibana':
- match: grain
- logstash.kibana
@arubis
Copy link
Author

arubis commented Aug 26, 2014

For all this, highstate only runs '*' against both logstash_ops and logstash_staging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment