fuel-plugin-nsxv/post_install.sh

8 lines
289 B
Bash

keyFile='/var/www/nailgun/plugins/%{name}/deployment_scripts/puppet/modules/nsxv/files/compute_vmware_key'
if [ -f $keyFile ]; then
echo " Ssh key file exists, skip generation"
else
echo -n " Ssh key file for nsxv plugin not found, "
ssh-keygen -t rsa -b 2048 -N "" -f $keyFile
fi