Commit Graph

105 Commits

Author SHA1 Message Date
Paulo Bittencourt 8ec6108143 Merge pull request #98 from pbitty/refactor_module
migrate HostsFile code into its own class
2014-07-21 22:07:52 -04:00
Paulo Bittencourt 2e54e3fad5 migrate UpdateAll action to use Updater class and remove hosts_file.rb 2014-07-21 21:46:18 -04:00
Paulo Bittencourt 5581f1cbe9 migrate provisioner to use Updater class 2014-07-21 21:42:50 -04:00
Paulo Bittencourt 04dee9b353 migrate UpdateGuest action to use Updater class 2014-07-21 21:42:50 -04:00
Paulo Bittencourt f46b0aa984 migrate UpdateHost action to use Updater class 2014-07-21 21:42:50 -04:00
Paulo Bittencourt 90fe71540a extract Updater class into its own file 2014-07-21 21:42:50 -04:00
Paulo Bittencourt 8456e91fbd remove redundant config argument from Updater initializer 2014-07-21 21:42:31 -04:00
Paulo Bittencourt 22af89a8de isolate core HostsFile module code into its own class 2014-07-21 21:42:31 -04:00
Paulo Bittencourt d60018ad1d remove unnecessary HostsFile include 2014-07-21 21:41:50 -04:00
Paulo Bittencourt 7e2ac2ae30 Merge pull request #105 from axislab/commands
Show description for hostmanager when vagrant list-commands is triggered
2014-07-21 21:31:14 -04:00
axisthemes f81fc562f3 Show description for hostmanager when vagrant list-commands is triggered 2014-07-08 10:07:39 +05:45
Matthew Hopkins db958dfd67 splits hostnames across many lines, as Windows doesn't seem to like more than 8 on a line 2014-06-09 16:50:23 -04:00
Paulo Bittencourt 0bc2f30b7b extract old vagrant version compatibility code into util method 2014-06-01 15:33:48 -04:00
Paulo Bittencourt f0a6cca263 bump for 1.5.0 release 2014-05-30 13:06:26 -04:00
Paulo Bittencourt f113535fe8 allow all config variables to be set at top-level and overridden per-machine
All config variables now get initialized to UNSET_VALUE so that any per-machine variables that are unspecified can fall-through to a higher-level config when the config hierarchy is merged by vagrant.

Fixes #91.
2014-05-26 13:57:11 -04:00
Paulo Bittencourt 378cfda03c remove redundant initialization from Config 2014-05-26 13:13:06 -04:00
Paulo Bittencourt 4024856005 run hostmanager before provisioners on up action
Fixes #73.
2014-05-25 00:48:35 -04:00
colandre 78cf4b239d Force move on linux systems
If the script is run as root, usually mv has an alias to ask for
overwriting. This force the overwriting.
2014-05-14 16:06:12 +02:00
Paulo Bittencourt 5f854824e2 Merge pull request #85 from ColinHebert/fix_no_ip
Check that the IP is set before adding a new line to the hosts file
2014-04-27 12:06:50 -04:00
Colin Hebert bc997adc3b Check that the IP is set before adding a new line 2014-04-01 17:04:56 +11:00
Matthew Hopkins debf5e732a winder update 2014-03-18 09:00:11 -04:00
Matthew Hopkins 18d3083f07 Merge branch 'master' of github.com:smdahlen/vagrant-hostmanager into windows_guests 2014-03-18 08:54:11 -04:00
Paulo Bittencourt b768485fa3 bump for 1.4.0 release 2014-03-17 22:32:35 -04:00
Paulo Bittencourt 552a791ef4 fix provisioner issue in vagrant 1.5
relates to #80
2014-03-17 21:20:59 -04:00
januzis 5a22784753 Fixes introduced error running vagrant hostmanager command 2014-03-12 21:23:33 +01:00
januzis c6219655f5 Replaced deprecated config_global with vagrantfile.config 2014-03-12 11:51:14 +01:00
Paulo Bittencourt 56ce9f895d Merge pull request #78 from thematthopkins/less_sudo_2
only update hosts file if it has changed - for both host and guest

Closes #68.
2014-02-24 23:24:42 -05:00
Matthew Hopkins 3051f4b3e3 only update hosts file if it has changed - for both host and guest 2014-02-24 14:14:57 -05:00
Paulo Bittencourt fec2c501fd Fix regression in #52.
We accidentally stopped filtering out machines from other providers.
2014-02-24 13:10:37 -05:00
Paulo Bittencourt 93fd353135 Merge pull request #64 from sstrato/patch-1
only first private_network is used
2014-02-20 20:44:34 -05:00
Paulo Bittencourt 8f041f5ef6 make get_machines return machine instances instead of machine names 2014-02-17 16:32:56 -05:00
Paulo Bittencourt ab5d82275a sync hosts file state in blocks instead of lines 2014-02-17 16:32:52 -05:00
Matthew Hopkins e59ec19a03 Fix for windows guests running on non-windows hosts. 2014-01-29 16:10:10 -05:00
Andrew Yongjoon Kong 2498e053f9 only first private_network is used
this will prevent using last private_network for the hostname
2014-01-16 17:18:49 +09:00
Lukasz Jastrzebski 566d1f2e3b tweaking couple of code review suggestions 2014-01-10 20:51:50 -08:00
Lukasz Jastrzebski 1b63859a57 adding current_machine to resolution 2013-12-19 16:08:31 -08:00
Lukasz Jastrzebski 24dc1c8ed6 fixing incorrect merge 2013-12-19 14:25:05 -08:00
Lukasz Jastrzebski ed0fe89dd0 fixing etc hosts handling to avoid duplicates 2013-12-15 17:11:51 -08:00
Lukasz Jastrzebski 3f8e617ba7 fixing custom ip resolver 2013-12-15 14:01:08 -08:00
Paulo Bittencourt cb832156f3 Bump for release 2013-11-30 01:44:22 -05:00
Paulo Bittencourt 3edc923b22 use rbconfig for detecting Windows 2013-11-20 22:15:39 -05:00
Paulo Bittencourt d2b2e00939 elevate privileges in Windows host if necessary 2013-11-20 22:15:37 -05:00
Paulo Bittencourt 02758e32f0 fix indentation (using spaces instead of tabs) 2013-11-18 12:47:10 -05:00
Paulo Bittencourt a426b8503a Merge pull request #49 from Tpbrown/git-bash-windows
Support Cygwin and MinGW on Windows.  Fixes #24
2013-11-18 09:40:56 -08:00
Bryan Cribbs 9bc81fc318 Merge branch 'sevos-enable_using_private_ips_from_aws' 2013-11-15 20:17:14 -06:00
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
Bryan Cribbs cac3589451 Merge pull request #46 from emyl/provider-to-sym
Properly convert provider command option to symbol
2013-11-15 17:08:47 -08:00
Tim Brown 8f3dd06d8e Use :SystemRoot to detect Windows, including git-bash. Also use :Windir to ensure we get correct hosts file path 2013-11-11 14:10:11 -08:00
Emiliano Ticci 2a6cf09b1d Properly convert provider command option to symbol 2013-11-04 17:19:29 +01:00
Bryan Cribbs c53452b927 #44 Handle destroyed machines in update_file
Keep track of machines that have been destroyed (they have a nil id).
Do not include them when updating the hosts file.

Since it is impossible to match on id, this is accomplished by matching
the exact ip / hostname / alias.  If any of these have been altered
since the entry was created the entry will not be removed from the hosts
file.

Potentially, this could be relaxed to only match on ip / hostname pairs.
2013-11-02 16:00:23 -05:00