Operations grimoire/Create and revoke user accounts on Salt servers: Difference between revisions
From Nasqueron Agora
Line 9: | Line 9: | ||
== Run the Salt == | == Run the Salt == | ||
If you've access to the Salt master in production: | |||
<code>salt eglide state.apply roles/shellserver/users</code> | <code>salt eglide state.apply roles/shellserver/users</code> | ||
See [[Operations grimoire/Deploy with Salt]]. | See [[Operations grimoire/Deploy with Salt]]. |
Revision as of 23:55, 5 February 2020
Create an user
- Add public SSH key to roles/shellserver/users/files/ssh_keys/<account> file
- Add entry to pillar/users/shellusers.sls
Revoke an user
- Delete roles/shellserver/users/files/ssh_keys/<account> file
- Remove entry from pillar/users/shellusers.sls
- Add entry to pillar/users/revokedusers.sls
Run the Salt
If you've access to the Salt master in production:
salt eglide state.apply roles/shellserver/users