From e27050d4b8169f9fb9ccf4fc30d5169243004aed Mon Sep 17 00:00:00 2001 From: afazekas Date: Fri, 15 Aug 2014 16:31:13 +0200 Subject: [PATCH] Fix ssh key specification in the README.rst The ssh public key entries starts with key type specifier like 'ssh-rsa', but the puppet module which consuming the ssh_key expects only the key part. Also switching to the id_rsa.pub in the example, because usually it contains just only one public key, what the users usually pushes to the servers. The authorized_keys file is for the keys accepted by the user's machine itself. Change-Id: Ic92729b572582360495b3544e479de98cd3c02c0 --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 57e3134f..69d407eb 100644 --- a/README.rst +++ b/README.rst @@ -166,7 +166,7 @@ a current kernel:: && config/install_puppet.sh && config/install_modules.sh \ && puppet apply --modulepath=/root/config/modules:/etc/puppet/modules \ -e "class { openstack_project::single_use_slave: install_users => false, - ssh_key => \"$( cat .ssh/authorized_keys )\" }" \ + ssh_key => \"$( cat .ssh/id_rsa.pub | awk '{print $2}' )\" }" \ && echo "jenkins ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers \ && reboot