Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added stub for generating tunnel password file upon cluster registration

  • Loading branch information...
commit de5fc75c2e2e85c98bedb583198620856d1a3045 1 parent 3058ba2
root authored
Showing with 11 additions and 1 deletion.
  1. +11 −1 tools/euca_conf.in
View
12 tools/euca_conf.in
@@ -685,8 +685,18 @@ if [ -n "$NEWCLUS" ]; then
exit 1
fi
+ # create tunnel password
+ TUNPASS=`md5sum $EUCALYPTUS/var/lib/eucalyptus/keys/cloud-pk.pem | awk '{print $1}'`
+ if [ ${TUNPASS} != "" ]; then
+ echo ${TUNPASS} > ${EUCALYPTUS}/var/lib/eucalyptus/keys/vtunpass
+ chmod 0600 ${EUCALYPTUS}/var/lib/eucalyptus/keys/vtunpass
+ chown ${EUCA_USER} ${EUCALYPTUS}/var/lib/eucalyptus/keys/vtunpass
+ else
+ echo "ERROR: Unable to create tunnel password, tunneling will not function"
+ fi
+
# sync the keys
- if [ $NEWCLUS} = "127.0.0.1" -o ${NEWCLUS} = localhost -o ${NEWCLUS} = "`hostname -s`" -o ${NEWCLUS} = "`hostname -f`" ]; then
+ if [ ${NEWCLUS} = "127.0.0.1" -o ${NEWCLUS} = localhost -o ${NEWCLUS} = "`hostname -s`" -o ${NEWCLUS} = "`hostname -f`" ]; then
# machine is localhost, not need for remote syncing
if [ -d "$EUCALYPTUS/var/lib/eucalyptus/keys/" ]; then
KEYDIR="$EUCALYPTUS/var/lib/eucalyptus/keys/"
Please sign in to comment.
Something went wrong with that request. Please try again.