Skip to content

Commit c58fba2

Browse files
authored
Merge pull request #18 from twc-openstack/ssh-key-idempotency
Specify SSH key target to fix idempotency issue
2 parents de774d2 + 1c2b392 commit c58fba2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

manifests/client/user.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
sshkeys::set_authorized_key { "${server_user_exploded} to ${client_user}":
4444
local_user => $client_user,
4545
remote_user => $server_user_exploded,
46+
target => "/home/${client_user}/.ssh/authorized_keys",
4647
require => User[$client_user],
4748
options => [
4849
"command=\"${allowed_command}\"",

0 commit comments

Comments
 (0)