vagrant-goodhosts 1.1.6 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +9 -2
- data/lib/vagrant-goodhosts/GoodHosts.rb +8 -0
- data/lib/vagrant-goodhosts/bundle/cli.exe +0 -0
- data/lib/vagrant-goodhosts/bundle/cli_amd64_linux +0 -0
- data/lib/vagrant-goodhosts/bundle/cli_amd64_osx +0 -0
- data/lib/vagrant-goodhosts/bundle/cli_arm64_linux +0 -0
- data/lib/vagrant-goodhosts/bundle/cli_arm64_osx +0 -0
- data/lib/vagrant-goodhosts/version.rb +1 -1
- data/package.sh +5 -5
- metadata +3 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 227c812ab438020e58d1443e13de910536dad51c0368ade45e2431ca2fa5ca8f
|
|
4
|
+
data.tar.gz: 693d39ffa02a4f8192a3c91e0770618963bd9ad4bef37324f912fba8a4d2274e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fd073121d9f631f93ca68968dcbbcb07599669be6de0228c0a95f64533f4cc01a55a83eab526f5114f90ab8ddf9292e8371146c12b9fb5a9fd3174da1bc6e199
|
|
7
|
+
data.tar.gz: b69ee70d07e34cdfc66bc34f14a39019a19aef5d147c0f94ba8f4782d51eb33864e562c4a5b66a59296d341404ba76c1c8cb5a9cd1c0a28ed2fb36cbf95ffd25
|
data/README.md
CHANGED
|
@@ -6,6 +6,8 @@ On **up**, **resume** and **reload** commands, it tries to add the hosts if they
|
|
|
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
|
+
Supports: VirtualBox, Hyperv, Docker and Tart.
|
|
10
|
+
|
|
9
11
|
## Installation
|
|
10
12
|
|
|
11
13
|
```shell
|
|
@@ -97,7 +99,8 @@ This enable `vagrant-goodhosts` from running the clean command in every call.
|
|
|
97
99
|
|
|
98
100
|
## Suppressing prompts for elevating privileges
|
|
99
101
|
|
|
100
|
-
These prompts exist to prevent anything that is being run by the user from inadvertently updating the hosts file.
|
|
102
|
+
These prompts exist to prevent anything that is being run by the user from inadvertently updating the hosts file.
|
|
103
|
+
The command path is printed in red when there are errors with Vagrant eg. if the sudo password is entered incorrectly for 3 times.
|
|
101
104
|
If you understand the risks that go with supressing them, here's how to do it.
|
|
102
105
|
|
|
103
106
|
### Linux/OS X: Passwordless sudo
|
|
@@ -109,6 +112,10 @@ For Ubuntu and most Linux environments:
|
|
|
109
112
|
|
|
110
113
|
%sudo ALL=(root) NOPASSWD: [the-command-path]
|
|
111
114
|
|
|
115
|
+
An example complete:
|
|
116
|
+
|
|
117
|
+
%sudo ALL=(root) NOPASSWD: /home/user/sites/vvv/.vagrant/plugins/gems/3.1.2/gems/vagrant-goodhosts-1.1.6/lib/vagrant-goodhosts/bundle/cli_amd64_linux
|
|
118
|
+
|
|
112
119
|
For MacOS:
|
|
113
120
|
|
|
114
121
|
%admin ALL=(root) NOPASSWD: [the-command-path]
|
|
@@ -135,4 +142,4 @@ vagrant plugin install vagrant-goodhosts-*.gem
|
|
|
135
142
|
|
|
136
143
|
## Test the plugin
|
|
137
144
|
|
|
138
|
-
You need to run a Vagrant machine with the minimum settings specified in the [Usage](https://github.com/goodhosts/vagrant#usage) section, it is enough a turn on and off and in the meantime if the hosts file in your machine is written in the right way.
|
|
145
|
+
You need to run a Vagrant machine with the minimum settings specified in the [Usage](https://github.com/goodhosts/vagrant#usage) section, it is enough a turn on and off and in the meantime if the hosts file in your machine is written in the right way.
|
|
@@ -31,6 +31,14 @@ module VagrantPlugins
|
|
|
31
31
|
@ui.info "[vagrant-goodhosts] Read guest IP #{ip} from Hyper-V provider"
|
|
32
32
|
ips.push(ip) unless ip.nil? or ips.include? ip
|
|
33
33
|
end
|
|
34
|
+
if @machine.provider_name == :tart
|
|
35
|
+
ssh_info = @machine.ssh_info
|
|
36
|
+
unless ssh_info.nil?
|
|
37
|
+
ip = @machine.ssh_info[:host]
|
|
38
|
+
@ui.info "[vagrant-goodhosts] Read guest IP #{ip} from Tart provider"
|
|
39
|
+
ips.push(ip) unless ip.nil? or ips.include? ip
|
|
40
|
+
end
|
|
41
|
+
end
|
|
34
42
|
return ips
|
|
35
43
|
end
|
|
36
44
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/package.sh
CHANGED
|
@@ -5,11 +5,11 @@ cd ./lib/vagrant-goodhosts/bundle
|
|
|
5
5
|
# Download
|
|
6
6
|
curl -s https://api.github.com/repos/goodhosts/cli/releases/latest | jq --raw-output '.assets[] | .browser_download_url' | xargs wget -i
|
|
7
7
|
# Extract
|
|
8
|
-
tar -zxvf goodhosts-1.1.
|
|
9
|
-
tar -zxvf goodhosts-1.1.
|
|
10
|
-
tar -zxvf goodhosts-1.1.
|
|
11
|
-
tar -zxvf goodhosts-1.1.
|
|
12
|
-
tar -zxvf goodhosts-1.1.
|
|
8
|
+
tar -zxvf goodhosts-1.1.2-darwin-amd64.tar.gz goodhosts && mv goodhosts cli_amd64_osx
|
|
9
|
+
tar -zxvf goodhosts-1.1.2-darwin-arm64.tar.gz goodhosts && mv goodhosts cli_arm64_osx
|
|
10
|
+
tar -zxvf goodhosts-1.1.2-linux-amd64.tar.gz goodhosts && mv goodhosts cli_amd64_linux
|
|
11
|
+
tar -zxvf goodhosts-1.1.2-linux-arm64.tar.gz goodhosts && mv goodhosts cli_arm64_linux
|
|
12
|
+
tar -zxvf goodhosts-1.1.2-windows-amd64.tar.gz goodhosts.exe && mv goodhosts.exe cli.exe
|
|
13
13
|
rm -f ./*.tar.gz
|
|
14
14
|
rm -f ./*.txt
|
|
15
15
|
# Generate
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vagrant-goodhosts
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniele Scasciafratte
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: bundler
|
|
@@ -85,7 +84,6 @@ homepage: https://github.com/goodhosts/vagrant
|
|
|
85
84
|
licenses:
|
|
86
85
|
- MIT
|
|
87
86
|
metadata: {}
|
|
88
|
-
post_install_message:
|
|
89
87
|
rdoc_options: []
|
|
90
88
|
require_paths:
|
|
91
89
|
- lib
|
|
@@ -100,8 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
100
98
|
- !ruby/object:Gem::Version
|
|
101
99
|
version: '0'
|
|
102
100
|
requirements: []
|
|
103
|
-
rubygems_version: 3.
|
|
104
|
-
signing_key:
|
|
101
|
+
rubygems_version: 3.6.7
|
|
105
102
|
specification_version: 4
|
|
106
103
|
summary: Enables Vagrant to update hosts file on the host machine with goodhosts
|
|
107
104
|
test_files: []
|