Merge "add variable to control if push ssh key to dest machines."

This commit is contained in:
Jenkins 2014-04-21 17:35:56 +00:00 committed by Gerrit Code Review
commit 48f0e22eb0

View File

@ -1,6 +1,9 @@
mkdir -p /root/.ssh
chmod 700 -R /root/.ssh
touch /root/.ssh/authorized_keys
chmod 600 /root/.ssh/authorized_keys
#if $getVar("push_ssh_keys", "") != ""
cat << EOL >> /root/.ssh/authorized_keys
$SNIPPET('id_rsa.pub')
EOL
chmod 600 /root/.ssh/authorized_keys
#end if