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

Implement default IP resolving as a ip_resolver Proc #100

Open
pbitty opened this issue Jun 1, 2014 · 0 comments
Open

Implement default IP resolving as a ip_resolver Proc #100

pbitty opened this issue Jun 1, 2014 · 0 comments

Comments

@pbitty
Copy link
Contributor

pbitty commented Jun 1, 2014

I'd like to have the IP resolving logic always use the ip_resolver Proc, and implement the default behavior (of using private_network or ssh_info) as a Proc itself. This way we can eventually have built-in resolvers for different use-cases.

For example, as in #86, reading an interface's ip address in a DHCP scenario could look something like this:

config.hostmanager.ip_resolver = :dhcp, interface: "eth1"

This would find the dhcp resolver and instantiate it with the option interface: "eth1".

Before implementing this, I'd like do some refactoring as per #99. I'm just putting this here so it's not forgotten.

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