saltstack-formulas / users-formula

Configure users via pillar
http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
99 stars 361 forks source link

Add support for ssh_auth_sources.absent #150

Closed ashokrajar closed 7 years ago

ashokrajar commented 7 years ago

With ssh_auth_sources we can append the multiple ssh public keys. But once the keys are added it's there forever unless manually removed.

Like ssh_auth.absent we need support for ssh_auth_sources.absent too.

why ? In a cloud environment most of the time it happens that only one user is present and access is controlled by ssh keys and not individual user. So we allow users to upload the public ssh key as a file and read from the file. ssh_auth.absent can't read file so we need support for ssh_auth_sources.absent.