Operations grimoire/Create and revoke user accounts on Salt servers

From Nasqueron Agora
Revision as of 14:26, 11 August 2016 by Dereckson (talk | contribs) (Created page with "== 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 ro...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Create an user

  1. Add public SSH key to roles/shellserver/users/files/ssh_keys/<account> file
  2. Add entry to pillar/users/shellusers.sls

Revoke an user

  1. Delete roles/shellserver/users/files/ssh_keys/<account> file
  2. Remove entry from pillar/users/shellusers.sls
  3.  Add entry to pillar/users/revokedusers.sls

Run the Salt

salt eglide state.apply roles/shellserver/users

See Operations grimoire/Deploy with Salt.