Open kdunn-pivotal opened 7 years ago
If you can provide indicators, or give me access to existing boxes, I can figure that out. Here it is mainly required for not creating ssh keys later on - I'm sure the situation on other "Cloud" boxes is similar.
Azure should have a file like this : /etc/sudoers.d/waagent
Looks like you can do AWS like this :
if [ -f /sys/hypervisor/uuid ] && [ `head -c 3 /sys/hypervisor/uuid` == ec2 ] ; then
...
Big fan of what you've done here. There are certainly similar indicators of AWS/Azure runtimes as well.