add variable to control if push ssh key to dest machines.
Change-Id: Ib828997bdead70fae23b1196335c631c1b9d9f0e
This commit is contained in:
parent
d87900fb9b
commit
9e849a0a1a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user