In a nutshell:
- The Pillars groups.sls and users.sls define a list of groups and logins to be pushed to every host. There you can include each ssh public key to be used to authorize access. A password hash may be got by using
openssl password -1
. - This state file ensures that all groups and logins are created as specified.