camptocamp / puppet-accounts

11 stars 40 forks source link

Duplicate declaration of Authorized_key #67

Open dabelenda opened 4 years ago

dabelenda commented 4 years ago

I found a duplicate declaration in a very specific case.

  1. purge_ssh_keys is false
  2. an ssh key is ensure: absent
  3. that ssh key is assigned a the user (at least via group membership)

In that case, somehow the https://github.com/camptocamp/puppet-accounts/blob/master/manifests/account.pp#L104 and https://github.com/camptocamp/puppet-accounts/blob/master/manifests/account.pp#L152 are both defined.