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 public ip / dns to node data (ec2) #39

Closed
wrightp opened this issue Aug 5, 2014 · 4 comments
Closed

add public ip / dns to node data (ec2) #39

wrightp opened this issue Aug 5, 2014 · 4 comments
Labels
Type: Enhancement Adds new functionality.

Comments

@wrightp
Copy link
Contributor

wrightp commented Aug 5, 2014

This likely applies to other cloud platforms, but the urgent need is specific to ec2.

Once the instances are launched and the public IPs (and DNS if available) are generated it would be really useful if the local node data for those instances get updated with the information.

Not sure if the capability is there now, and must be called explicitly, but perhaps it makes sense for this to be the default behavior.

@bedunbar
Copy link

bedunbar commented Aug 5, 2014

This works for me. I launch my nodes in ec2 with options to request a public IP. I also provide the ohai hint for ec2 and then the information is available in the cloud (and presumably ec2) node data. For exmaple, I get the assigned IP address using node[:cloud][:public_ipv4]. The key is to provide the ec2 hint to ohai if you are not already doing so.

@wrightp
Copy link
Contributor Author

wrightp commented Aug 5, 2014

Awesome! Trying this now. Thanks for the info.

@jkeiser
Copy link
Contributor

jkeiser commented Aug 18, 2014

@Patrick-Wright did that fix it?

@jkeiser
Copy link
Contributor

jkeiser commented Aug 19, 2014

Now that ec2 hints are part of chef-metal, this is fixed.

@jkeiser jkeiser closed this as completed Aug 19, 2014
@tas50 tas50 added Type: Enhancement Adds new functionality. and removed Improvement labels Jul 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Adds new functionality.
Development

No branches or pull requests

4 participants