Skip to content

Instantly share code, notes, and snippets.

@nherbaut
Created September 1, 2015 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nherbaut/1659ef0e690c4c33f6c1 to your computer and use it in GitHub Desktop.
Save nherbaut/1659ef0e690c4c33f6c1 to your computer and use it in GitHub Desktop.
root@proxy1:~# cat /etc/salt/grains
roles:
swift_proxy
root@object1:~# cat /etc/salt/grains
roles:
swift_object
root@proxy1:~# salt -C 'G@roles:swift*' grains.get roles
proxy1:
swift_proxy
root@proxy1:~# salt -C 'G@roles:swift*' grains.get roles
proxy1:
swift_proxy
object1:
swift_object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment