Commit Graph

116 Commits

Author SHA1 Message Date
Seth Reeser 117dc4bee7 v1.7.0 release. 2015-12-30 09:50:40 -05:00
Elbek Azimov c8af029948 fix: move hosts file inside the docker container #136 2015-10-10 23:28:50 +05:00
Seth Reeser a48f08d272 Bumping to v1.6.1 2015-08-06 10:53:14 -04:00
Seth Reeser dcdfcc9262 Reversing cf651497a2 as v1.6.0 has been a success. 2015-08-06 10:48:05 -04:00
Seth Reeser bb53e420ae Retain tmp hosts file and fix a bug where powershell mv does not move folder contents, in that context it's moving a file. 2015-08-06 10:39:06 -04:00
Seth Reeser 3214098246 Be a bit more specific. 2015-07-27 10:08:25 -04:00
Seth Reeser 7bee95fc95 Merge pull request #139 from la-magra/is-crlf-hosts-file
Fix situation with hosts file line endings
2015-07-24 09:24:10 -04:00
Seth Reeser cf651497a2 Merge pull request #117 from pbitty/separate_aliases_option
make separating aliases into multiple lines optional
2015-07-22 14:09:16 -04:00
Seth Reeser e50e04fd38 Releasing version 1.6.0 2015-07-20 17:07:41 -04:00
la-magra ca57c23941 Fix situation with hosts file line endings
I ran into a situation in which the the hosts file in the guest (ubuntu 14.04) had CRLF line endings when vagranted from a Windows server 2012 R2, with Vagrant 1.7.2 with hostmanager 1.5.0 . The vagrant commands where run from a cygwin shell.
As per Ruby documentation, replacing open mode to binary "Suppresses EOL <-> CRLF conversion on Windows."
2015-03-05 18:41:27 -06:00
Paulo Bittencourt 29a4e37f58 make separating aliases into multiple lines optional 2014-10-12 22:29:47 -04:00
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