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

Feature request: selectable IP attribute #15

Open
jhmartin opened this issue Jul 18, 2016 · 0 comments
Open

Feature request: selectable IP attribute #15

jhmartin opened this issue Jul 18, 2016 · 0 comments

Comments

@jhmartin
Copy link
Contributor

jhmartin commented Jul 18, 2016

AWS cloud hosts have a public and private address. The private address is node['ipaddress'] but the public address is elsewhere. The feature is to allow searches to be configured to use an arbitrary alternate attribute to fetch the IP address, or at least the 'public' address.

So in the default recipe:

              if node.attribute?('cloud') && (member['cloud']['provider'] == node['cloud']['provider'])
                member['cloud']['local_ipv4']
              else
                member['cloud']['public_ipv4']
              end

This logic should let me override the default and choose public_ipv4.

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

1 participant