You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding another ssh key under a user who already has one, after already having deployed the first one successfully, does not detect the new keys if managehome: false.
# HEADER: This file was autogenerated at 2022-10-26 16:26:59 +0200
# HEADER: by puppet. While it can still be managed manually, it
# HEADER: is definitely not recommended.
ssh-rsa AAA[...]dn1 admin_ssh-rsa_comment
The same appears to be the case when we avoid Hiera altogether and define the sshkeys ONLY in <root_of_project>/manifests/server01.pp:
node 'server01' {
include ::accounts
class { 'foo': } # use foo module
accounts::user { 'admin':
comment => 'Testing from pp file',
managehome => false,
ignore_password_if_empty => true,
password => '',
sshkeys => [
'ssh-rsa ssh-rsa AAA[...]dn1 comment',
'ssh-rsa AAA[...]cn2 another comment',
],
}
}
The text was updated successfully, but these errors were encountered:
Hi @nanowinner, thanks for reporting this issue and sorry for the long delay in reply. We are aware of this error and have added it to our backlog. However, we don't have any estimates on when will we be able to address it.
Our codebase, however, is open-source, so we always encourage our community members to participate and send us PRs that they think might improve our modules.
Describe the Bug
Adding another ssh key under a user who already has one, after already having deployed the first one successfully, does not detect the new keys if
managehome: false
.Expected Behavior
Each of the keys defined for a user
to be deployed to the user's
~/.ssh/authorized_keys
regardless of other attributes. Multiple keys deployed successfully.Steps to Reproduce
Steps to reproduce the behavior:
mod 'puppetlabs-accounts', '7.3.0'
andmod 'puppetlabs-stdlib', '8.2.0'
into<root_of_project>/Puppetfile
<root_of_project>/data/nodes/server01.yaml
<root_of_project>/manifests/server01.pp
include ::accounts
puppet agent -tv
on server01~/.ssh/authorized_keys
<root_of_project>/data/nodes/server01.yaml
and add a new key under the same user'ssshkeys
:Final contets of
<root_of_project>/data/nodes/server01.yaml
:puppet agent -tv
on server01Environment
Additional Context
Contents of
<root_of_project>/hiera.yaml
:Contents of
~/.ssh/authorized_keys
on serverf01:The same appears to be the case when we avoid Hiera altogether and define the sshkeys ONLY in
<root_of_project>/manifests/server01.pp
:The text was updated successfully, but these errors were encountered: