summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorkwadronaut <kwadronaut@leap.se>2017-05-20 00:20:08 +0200
committerkwadronaut <kwadronaut@leap.se>2017-05-20 00:34:30 +0200
commitf93953299044ffa0154c08368ecb91b7a3f08a93 (patch)
tree135c94e14e2856ca649d2c0251e6e069c8c29740 /bin
parent746601becc47fcee9fc85700f175a5b33b310979 (diff)
generate missing ssh host keys on node init (closes #8790)
closes #8414 as well
Diffstat (limited to 'bin')
-rwxr-xr-xbin/node_init5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/node_init b/bin/node_init
index 148ecc34..66dc17e7 100755
--- a/bin/node_init
+++ b/bin/node_init
@@ -89,3 +89,8 @@ fi
mkdir -p $HIERA_DIR
chmod 0755 $HIERA_DIR
touch $INIT_FILE
+
+# Sometimes not all keys are already generated, happens more often
+# with VMs
+# that would give us errors in the get_ssh_keys_cmd during node init
+/usr/bin/ssh-keygen -A