gh-24: get context.sh in EC2 instances

pull/25/head
Daniel Molina 9 years ago committed by Javi Fontan
parent 37ce3c3e31
commit bd529d974e

@ -47,12 +47,13 @@ function start {
execute_scripts execute_scripts
umount /mnt umount /mnt
else elif type vmtoolsd ; then
if type vmtoolsd ; then vmtoolsd --cmd 'info-get guestinfo.opennebula.context' | \
vmtoolsd --cmd 'info-get guestinfo.opennebula.context' | openssl base64 -d > /tmp/context.sh openssl base64 -d > /tmp/context.sh
export_rc_vars /tmp/context.sh
execute_scripts
elif curl -o /tmp/context.sh http://169.254.169.254/latest/user-data
export_rc_vars /tmp/context.sh export_rc_vars /tmp/context.sh
fi
execute_scripts execute_scripts
fi fi
} }

Loading…
Cancel
Save