Created
September 19, 2012 13:56
-
-
Save benhosmer/3749823 to your computer and use it in GitHub Desktop.
An example of using a salt module in an SLS file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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