Commit Graph

11 Commits

Author SHA1 Message Date
Bryan Cribbs 3abecb0088 Merge sevos pull/15 into master
Merge branch 'enable_using_private_ips_from_aws' of
https://github.com/sevos/vagrant-hostmanager into master.

Conflicts:
	lib/vagrant-hostmanager/config.rb
	lib/vagrant-hostmanager/hosts_file.rb
2013-11-15 20:15:10 -06:00
Shawn Dahlen 4ce7cd498e Finish support for managing host /etc/hosts file.
This commit moves logic into action middleware and ensures that
config validation is executed when the hostmanager command is called.
2013-06-20 12:54:20 -04:00
Shawn Dahlen 064d9b8658 Clean up plugin configuration and add comments.
This commit cleaned up the plugin's configuration and added code
comments for the hosts_file module. Additionally, display messages were
re-organized based on the single action.

The command still requires code to validate the configuration before
execution.

This closes pull request #18. Thanks to @b2jrock for his contribution.
2013-06-19 12:11:05 -04:00
Brian Johnson e217beeabe Merge branch 'master' into new-hosts-os-hosts-file
Conflicts:
	lib/vagrant-hostmanager/config.rb
	lib/vagrant-hostmanager/hosts_file.rb
	locales/en.yml
2013-06-13 13:52:09 -07:00
Brian Johnson 1e698e5912 Update to do an update of hosts files while leaving existing host structure in place, rather than generating a local hosts entry automatically. 2013-06-13 13:48:38 -07:00
Artur Roszczyk ed76e4b0e3 Allow to define custom IP resolver 2013-06-06 21:56:01 +02:00
Jan Vansteenkiste 00b8e75a7d Support include_offline boxes.
If include_offline is enabled, we loop over all available boxes picking
those with the correct provider.

If a box has no private ip set or is offline, it is skipped (a warning is shown).
The lambda that gets the ip will return nil for the boxes.
2013-05-07 16:06:04 +02:00
Jan Vansteenkiste 3a96f5e170 use more I18n and do not repeat ourselves while doing config checks 2013-05-02 21:35:48 +02:00
Shawn Dahlen 33c391cfe0 Implement check for already active machine.
This commit re-instates the behavior of auto-updating the
/etc/hosts file on each active machine. If machine is already
active, no update will occur.
2013-04-08 13:20:22 -04:00
Shawn Dahlen 39c197d7cc Implement command to update /etc/hosts files.
This commit disables automatic updates by default instead preferring
the user to execute the hostmanager sub-command. The user can enable
auto updates via configuration.
2013-04-06 08:59:07 -04:00
Shawn Dahlen 665b96c044 Proof-of-concept support for managing /etc/hosts.
Hooks into the up and destroy commands to manage changes to
the /etc/hosts file on active machines.
2013-03-27 15:38:08 -04:00