vagrant-goodhosts 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -2
- data/lib/vagrant-goodhosts/GoodHosts.rb +1 -1
- data/lib/vagrant-goodhosts/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d57ccc464161aae46b772cf48cebb81d5dd397a01910ef46cbb49f59da6018e6
|
4
|
+
data.tar.gz: ae7c977400c970df2a0685f2ec5ffafa1c3c4276eabdd1c60e7c522874f4201d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9aeeb25fd2974a73558f3380727b885038ff2a22a151ee216dbca37c47eddbd86cc07cacdd7ff1d7ab049a93b0b9316fae77b9231f95b153d2a81e534f8afddc
|
7
|
+
data.tar.gz: 48e57ad4c315c39f75f454616b5aa2af6402988294f2d006df8448c1e48b919e4743ab64a28663c50c85cc5627d6dae6e608e3094fa3a9e6cfccd20f78368b6f
|
data/README.md
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
# Vagrant::Goodhosts
|
2
2
|
|
3
|
-
This vagrant plugin adds host file entries to the host pointing to the guest VM, using the [GoodHosts](https://github.com/goodhosts/cli) cli tool. This plugin is based on [vagrant-hostsupdater](https://github.com/cogitatio/vagrant-hostsupdater) and aims to be compatible with the same config parameters.
|
3
|
+
This vagrant plugin adds host file entries to the host pointing to the guest VM, using the [GoodHosts](https://github.com/goodhosts/cli) cli tool. This plugin is based on [vagrant-hostsupdater](https://github.com/cogitatio/vagrant-hostsupdater) and aims to be compatible with the same config parameters.
|
4
4
|
|
5
5
|
On **up**, **resume** and **reload** commands, it tries to add the hosts if they do not already exist in your hosts file. If it needs to be added, you will be asked for the `sudo` password to make the necessary edits.
|
6
6
|
|
7
7
|
On **halt**, **destroy**, and **suspend**, those entries will be removed again. By setting the `config.goodhosts.remove_on_suspend = false`, **suspend** and **halt** will not remove them.
|
8
8
|
|
9
|
-
|
10
9
|
## Installation
|
11
10
|
|
12
11
|
```shell
|
@@ -37,6 +36,11 @@ config.goodhosts.aliases = ["alias.testing.de", "alias2.somedomain.com"]
|
|
37
36
|
|
38
37
|
This IP address and the hostname will be used for the entry in the `/etc/hosts` file.
|
39
38
|
|
39
|
+
### vagrant-hostsupdater conflicts
|
40
|
+
|
41
|
+
The original plugin has the issue of be executed in any vagrant environment, also that is not using and will add a rule in the hosts file that is not generated by this one.
|
42
|
+
To avoid issues is better to remove that plugin and in case update accordingly the Vagrantfile if use it. Require just a change of the reference of the plugin name as the example above.
|
43
|
+
|
40
44
|
### Multiple private network adapters
|
41
45
|
|
42
46
|
If you have multiple network adapters i.e.:
|
@@ -7,7 +7,7 @@ module VagrantPlugins
|
|
7
7
|
|
8
8
|
def getIps
|
9
9
|
if Vagrant.has_plugin?("vagrant-hostsupdater")
|
10
|
-
@ui.
|
10
|
+
@ui.warn "[vagrant-goodhosts] Warning: The vagrant-hostsupdater plugin is installed, hostsupdater always adds the VM name even if the VagrantFile says not to. This shouldn't cause issues, but if it does, uninstall hostsupdater"
|
11
11
|
end
|
12
12
|
|
13
13
|
ips = []
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-goodhosts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniele Scasciafratte
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|