Skip to content

Instantly share code, notes, and snippets.

@jalons
Forked from benhosmer/salt-in-SLS.yaml
Created February 7, 2014 17:46
Show Gist options
  • Save jalons/8867830 to your computer and use it in GitHub Desktop.
Save jalons/8867830 to your computer and use it in GitHub Desktop.
# This uses the grains module
# http://docs.saltstack.org/en/latest/ref/modules/all/salt.modules.grains.html#module-salt.modules.grains
# http://salt.readthedocs.org/en/latest/ref/states/all/salt.states.module.html#module-salt.states.module
salt:
module.run:
- name: grains.ls
# An alternative syntax using the group.ge_ent
group.getent:
module:
- run
salt:
module.run:
- name: group.getent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment