Skip to content

Instantly share code, notes, and snippets.

@mgwilliams
Created October 11, 2013 21:37
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 mgwilliams/9684f51513c7a8edf559 to your computer and use it in GitHub Desktop.
Save mgwilliams/9684f51513c7a8edf559 to your computer and use it in GitHub Desktop.
# The 'groups' and 'users' elements should be within the scope
# of all minions, so that users/groups with no privileges can be
# ensured as absent.
groups:
admin:
gid: 2000
dbadmin:
gid: 2001
dev:
gid: 2002
users:
# Bob is a db admin with privileges in all environments
bob:
uid: 1000
groups:
__global__:
- dbadmin
ssh_auth:
- ssh-rsa AAAAAAAAAAAAA.....
# John is a developer, with privileges in the sandbox env
john:
uid: 1001
groups:
sandbox:
- dev
ssh_auth:
- ssh-rsa AAAAAABBBBBBB.....
# The following elements should be defined on the minion (or minion group) level.
sudo-groups:
- admin
- dbadmin
user-groups:
- dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment