vagrant-flow 1.0.11 → 1.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -1
- data/lib/vagrant-flow/command/hostfile.rb +1 -1
- data/lib/vagrant-flow/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2cd407d35be7062179a231e1f5ae6cfcfd702b7c
|
4
|
+
data.tar.gz: 7d3cb0d432955ded478a1700e0050cf5e41c2606
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a496ca6de35fd17225e8ddf3577f3a4dbae16b6cea33d26eb09bc16c1df613c22a1017eb78ea9ac6a51bb91c182fea06cc90284835bd5f9db3c105f3c7123579
|
7
|
+
data.tar.gz: 380740f390b21e3fdfb051e70c8a81eabb33c0fe2a2bde278cd4360baadf38b4827b30306e8c2c5ac46ee2ab96e4135dc7f8a0603536a06aa7089bc45651b322
|
data/README.md
CHANGED
@@ -134,11 +134,13 @@ machines:
|
|
134
134
|
|
135
135
|
* * *
|
136
136
|
##hostfile
|
137
|
-
Usage: vagrant flow hostfile [-
|
137
|
+
Usage: vagrant flow hostfile [-qndoh]
|
138
138
|
Edits all your VMs /etc/hosts file to be able to find all the machines on your private network
|
139
139
|
|
140
140
|
-q, --quiet (Optional) Suppress output to STDOUT and STDERR
|
141
141
|
-n, --no-write-hosts (Optional) Don't actually write a new hosts file to the guest machine
|
142
|
+
-d, --digitalocean (Optional) Writes your digital ocean's hostnames and IP addresses to hosts file. Default file is hostfile_do.yml
|
143
|
+
-o, --digitaloceanfile FILE (Optional) File to read in for -d option instead of hostfile_do.yml
|
142
144
|
-h, --help Print this help
|
143
145
|
|
144
146
|
#### Example usages of hostfile
|
@@ -147,6 +149,11 @@ This will look through your vagrantfile config, find all the hostnames and IP's
|
|
147
149
|
vagrant flow hostfile
|
148
150
|
```
|
149
151
|
|
152
|
+
This will make an API call to digital ocean (https://developers.digitalocean.com/droplets/), retrieve your list of hostnames and Ip's, and append that information retrieved from DO to the VM's hosts file specified in your Vagrantfile. The config file it will look for by default is hostfile_do.yml
|
153
|
+
```
|
154
|
+
vagrant flow hostfile -d
|
155
|
+
```
|
156
|
+
|
150
157
|
Example Vagrantfile excerpt. This configuration is required by hostfile to be able to determine IP addresses and hostnames.
|
151
158
|
If you're already using vagrant flow multiinit, then this configuration is already take care of
|
152
159
|
```
|
@@ -165,6 +172,15 @@ If you're already using vagrant flow multiinit, then this configuration is alrea
|
|
165
172
|
end
|
166
173
|
```
|
167
174
|
|
175
|
+
Example hostfile_do.yml (For use only with -d option)
|
176
|
+
To find your apikey and clientid, log into digital ocean, and visit https://cloud.digitalocean.com/api_access
|
177
|
+
```
|
178
|
+
---
|
179
|
+
:api_key: abcdefghijklmnopqrstuvwxyz
|
180
|
+
:client_id: zyxwvutsrqponmlkjihgfedcba
|
181
|
+
|
182
|
+
```
|
183
|
+
|
168
184
|
* * *
|
169
185
|
## ansibleinventory
|
170
186
|
```
|
@@ -36,7 +36,7 @@ module VagrantPlugins
|
|
36
36
|
opts = OptionParser.new do |o|
|
37
37
|
# o.banner = "Usage: vagrant ansible-inventory [vm-name] [options] [-h]"
|
38
38
|
o.banner = "A NeverWinterDP technology from the Department of Badass.\n\n"+
|
39
|
-
"Usage: vagrant flow hostfile [-
|
39
|
+
"Usage: vagrant flow hostfile [-qndoh]\n"+
|
40
40
|
"Edits all your VMs /etc/hosts file to be able to find all the machines on your private network"
|
41
41
|
o.separator ""
|
42
42
|
|
data/lib/vagrant-flow/version.rb
CHANGED