copy master node public key to its own keyring

Change-Id: I2b0307b364dfaff4c9fdf0ae1e61d726bc2ecfe3
Closes-Bug: #1316581
This commit is contained in:
Vladimir Kuklin 2014-05-06 19:07:34 +04:00
parent 616a164132
commit 06755519d7

View File

@ -60,4 +60,8 @@ define nailgun::sshkeygen (
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"]
}
}