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
This commit is contained in:
afazekas
2014-08-15 16:31:13 +02:00
committed by Attila Fazekas
parent 95f9a0a6c2
commit e27050d4b8

View File

@@ -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