diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-08-26 22:20:43 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-08-26 22:20:43 +0100 |
commit | bd7ee7108572b10b18d96df33c1822f43bd4a356 (patch) | |
tree | cc3cb788ed9c84e7609db73039694a52e1d6b6d2 /vm-create | |
parent | 7008996882977ffe9ffef61c133bda507092a620 (diff) | |
download | jenkinstool-bd7ee7108572b10b18d96df33c1822f43bd4a356.tar.gz |
Create ssh host and user keys, if missing
Diffstat (limited to 'vm-create')
-rwxr-xr-x | vm-create | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -20,6 +20,18 @@ set -eux +# Create the SSH host and user keys. +for key in jenkins.host-key jenkins.user-key worker.host-key worker.user-key +do + filename="vm-data/$key" + if [ ! -e "$filename" ] + then + ssh-keygen -q -f "$filename" -N '' + fi +done + +exit 0 + # Create the Jenkins master image. vmdebootstrap --config vm-data/common.conf --config vm-data/jenkins.conf "$@" |