-
-
Save mgwilliams/9b48ba2bc5f5f6292de0 to your computer and use it in GitHub Desktop.
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
#!py | |
def run(): | |
""" | |
Manages users defined in pillar. | |
""" | |
hsd = {} | |
environment = 'sandbox' if __grains__.get('environment') == 'sandbox' \ | |
else 'production' | |
users = __pillar__.get('users', {}) | |
valid_groups = set(__pillar__.get('groups', {}).keys()) | |
sudo_groups = set(['admin']).union(__pillar__.get('sudo-groups', [])) | |
unpriviledged_groups = set(__pillar__.get('user-groups', [])) |
Author
mgwilliams
commented
Oct 18, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment