Skip to content

Instantly share code, notes, and snippets.

@benhosmer
Created September 19, 2012 13:56
Show Gist options
  • Save benhosmer/3749823 to your computer and use it in GitHub Desktop.
Save benhosmer/3749823 to your computer and use it in GitHub Desktop.
An example of using a salt module in an SLS file.
# 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