copy master node public key to its own keyring
Change-Id: I2b0307b364dfaff4c9fdf0ae1e61d726bc2ecfe3 Closes-Bug: #1316581
This commit is contained in:
parent
616a164132
commit
06755519d7
@ -60,4 +60,8 @@ define nailgun::sshkeygen (
|
|||||||
require => Exec["Public ssh key for #{username}"],
|
require => Exec["Public ssh key for #{username}"],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
exec {"copy public key to authorized_keys":
|
||||||
|
command => "cat ${homedir}/.ssh/id_${keytype}.pub | tee -a ${homedir}/.ssh/authorized_keys",
|
||||||
|
require => File["${homedir}/.ssh/id_${keytype}.pub"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user