Commit Graph

127 Commits

Author SHA1 Message Date
Seth Reeser 643b1c8a89 Releasing v1.8.3 2016-07-13 12:07:05 -04:00
Austin Parker 076cca4af7 don't update non-running machines
fix equality comparison
2016-07-05 13:51:22 -04:00
Seth Reeser b10bb872c4 Release v1.8.2 2016-06-17 13:01:27 -04:00
Austin Parker c7f468012b cast pathname to string 2016-06-17 12:06:21 -04:00
Ben Doherty 50b34b9659 If hosts file is writable without sudo, don't use sudo 2016-06-03 10:06:23 -04:00
Seth Reeser a179758eaf Fixes #177 - Manage the guest by default. 2016-02-11 14:13:12 -05:00
Seth Reeser 6f4c0d7c6a Releasing v1.8.0 2016-02-11 10:54:33 -05:00
Seth Reeser 3b840be5fe Merge pull request #125 from damienjoldersma/feature/manage-guest-flag
Fix for issue #108, add a flag to manage guest hosts file.
2016-02-11 10:50:44 -05:00
Seth Reeser f1b0174c11 Releasing v1.7.1 2016-01-29 13:48:13 -05:00
Tony Lambiris dd43278e83 Ensure permissions on /etc/hosts stay intact 2016-01-29 13:30:33 -05:00
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
Damien Joldersma 7c06c812f6 Fix for issue #108, add a flag to manage guest hosts file. 2014-11-14 12:42:54 -08: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