vagrant-dotvm 0.8.0 → 0.9.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: debbbcde749af67762470debc868aa2f2d29dd38
4
- data.tar.gz: cd4270123ac9fed8511cb028f38a94cddbe99f26
3
+ metadata.gz: 519dc9824d824ec899bf595bfbc3f926557d6b9b
4
+ data.tar.gz: a7c053cc35cf46e72c704a1d9ec930665f534cc4
5
5
  SHA512:
6
- metadata.gz: 71fcdc8d518ae0d5f5dda2258a9f39b5934ebc1fb0b8a25d338c357469fa66496e88c411f8f446703d694512177cb45e635fd0068e31a1d28033cfc449225156
7
- data.tar.gz: 09b04ba244a8309b68c6ad8eadef820b47cb5bf98c2e90112ddfe94f8828f6b0912ab505308b04adaadf70af86feb015eaeea221e32a38fffec79dd2cde431cc
6
+ metadata.gz: a098742ee008aa7ba17857efe8d2291b2c9c2dbadc57f3961296a72eb69342e7f34e96b480bea274f3098be62a812f828571f2e4016c75edf15850f8d2b1c047
7
+ data.tar.gz: 4f5f9737f8d8c810b5e4d203dccd846fe8a9b8bb3603c572708538c5af08b7327fad44ac4a4df1150eef80035d4f5efa20e0759cd95715152ea940c4349e7e3a
data/README.md CHANGED
@@ -1,11 +1,20 @@
1
1
  # DotVm
2
2
 
3
+ ## What is that?
4
+ DotVm is vagrant plugin for easier maintenance of multi machine configurations.
5
+ It allows you to plugin multiple directories, where each one can hold multiple YAML files, where each one can define multiple machines.
6
+
3
7
  ## How to start using DotVm
4
8
  First you need to install DotVm plugin:
5
9
  ```
6
10
  $ vagrant plugin install vagrant-dotvm
7
11
  ```
8
12
 
13
+ It's also recommended to install plugin for easier work with groups:
14
+ ```
15
+ $ vagrant plugin install vagrant-group
16
+ ```
17
+
9
18
  Then create Vagrantfile like that:
10
19
  ```ruby
11
20
  require 'vagrant-dotvm'
@@ -0,0 +1,5 @@
1
+ # Go to %project.guest% directory, so relative pathes will work here.
2
+ cd "$1"
3
+
4
+ # do something here
5
+
@@ -8,7 +8,9 @@ machines:
8
8
  mask: 255.255.255.0
9
9
  provision:
10
10
  - type: shell
11
- path: "%project.path%/bootstrap.sh"
11
+ path: "%project.host%/bootstrap.sh"
12
+ args:
13
+ - "%project.guest%"
12
14
  shared_folders:
13
15
  - host: /Volumes/Repos
14
16
  guest: /srv/www
@@ -21,7 +21,11 @@ module VagrantPlugins
21
21
 
22
22
  machine_cfg[:networks].each do |net|
23
23
  if net[:net] == 'private_network'
24
- machine.vm.network net[:net], type: net[:type] ||= 'static', ip: net[:ip], netmask: net[:mask]
24
+ machine.vm.network net[:net],
25
+ type: net[:type] ||= 'static',
26
+ ip: net[:ip],
27
+ netmask: net[:mask],
28
+ virtualbox__intnet: net[:interface]
25
29
  end
26
30
  end
27
31
 
@@ -72,6 +72,7 @@ module VagrantPlugins
72
72
  :type => net['type'],
73
73
  :ip => net['ip'],
74
74
  :mask => self.coalesce(net['mask'], net['netmask'], DEFAULT_NETMASK),
75
+ :interface => net['interface'],
75
76
  }
76
77
  end
77
78
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Dotvm
3
- VERSION = "0.8.0"
3
+ VERSION = "0.9.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-dotvm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Magosa