Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stub/support for detecting runtime [AWS, GCP, Azure, etc] #2

Open
kdunn-pivotal opened this issue Sep 7, 2017 · 2 comments
Open

Comments

@kdunn-pivotal
Copy link

Big fan of what you've done here. There are certainly similar indicators of AWS/Azure runtimes as well.

@andreasscherbaum
Copy link
Owner

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.

@kdunn-pivotal
Copy link
Author

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
    ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants