vagrant-dotvm 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -0
- data/examples/config/projects/playground/bootstrap.sh +5 -0
- data/examples/config/projects/playground/main.yaml +3 -1
- data/lib/vagrant-dotvm/configinjecter.rb +5 -1
- data/lib/vagrant-dotvm/configparser.rb +1 -0
- data/lib/vagrant-dotvm/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: 519dc9824d824ec899bf595bfbc3f926557d6b9b
|
4
|
+
data.tar.gz: a7c053cc35cf46e72c704a1d9ec930665f534cc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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'
|
@@ -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],
|
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
|
|