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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1d3ded31cb6dedca2fa9b995903b2efb9fbef217
4
- data.tar.gz: 4877689ebcecd0ecf990a3245fbfe46518c4d040
3
+ metadata.gz: 2cd407d35be7062179a231e1f5ae6cfcfd702b7c
4
+ data.tar.gz: 7d3cb0d432955ded478a1700e0050cf5e41c2606
5
5
  SHA512:
6
- metadata.gz: 7e64d23a40b362c4497bbbacbcd4bba7771cdb86385075d9c2ab8dba59b3b6d4b14373311cc15198f89353bb35d2527cc9c1a8bca836e94cf22f0a218bc1da64
7
- data.tar.gz: 7edfa6e7af03f6ec087d2cfa3643ab5d7a46cf7c4180a96dc16f79f094c5f8518c99a05ab3bcb81907af2f22aa05caba4a0262647fca359815e080205f6eb956
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 [-hnkq]
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 [-hnkq]\n"+
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
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module VagrantFlow
3
- VERSION = "1.0.11"
3
+ VERSION = "1.0.12"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-flow
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Morin