Skip to content

Instantly share code, notes, and snippets.

@silenius
Created August 3, 2016 08:43
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 silenius/11c5868156a561b6971e13afcc1e3a5a to your computer and use it in GitHub Desktop.
Save silenius/11c5868156a561b6971e13afcc1e3a5a to your computer and use it in GitHub Desktop.
█▓▒░jcigar@dev█▓▒░ Wed Aug 03 10:40:02P
/usr/local/etc/salt/ salt "*" grains.get virtual_subtype
mx1.prod.lan:
jail
duvel.prod.lan:
dev.lan:
db.prod.lan:
sandbox.lan:
jail
www2.prod.lan:
jail
soekris2:
soekris1:
staging.lan:
jail
mx2.prod.lan:
jail
█▓▒░jcigar@dev█▓▒░ Wed Aug 03 10:42:33P
/usr/local/etc/salt/ salt -G 'virtual_subtype:jail' test.ping
staging.lan:
True
sandbox.lan:
True
mx1.prod.lan:
True
mx2.prod.lan:
True
www2.prod.lan:
True
█▓▒░jcigar@dev█▓▒░ Wed Aug 03 10:42:45P
/usr/local/etc/salt/ salt -G 'not virtual_subtype:jail' test.ping
No minions matched the target. No command was sent, no jid was assigned.
ERROR: No return received
█▓▒░jcigar@dev█▓▒░ Wed Aug 03 10:42:53P
/usr/local/etc/salt/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment