vagrant-dotvm 0.3.0 → 0.4.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: ac3f756b853e209dc3e93547211f615dd14b2884
4
- data.tar.gz: 1efbc6cc56001b784b6d4386f83b8d6b3fd340d7
3
+ metadata.gz: 11df263a461c65afd828edad44adc27f1fe9e2a3
4
+ data.tar.gz: 9a3c0e4747ea8a4924a472000a69ab7672624be9
5
5
  SHA512:
6
- metadata.gz: 05582f9bf691aabc45ce5323eca5404dd227be9e593a1815c807e3d3c4440f3fb9c6c8013bdd03b58a9cef3e955950bec4df418007e3b3ebf25d4cf46391ddfe
7
- data.tar.gz: 4879b7177a4760abdd1d8a5177b16c15545a031adf357040ecdb23f3f36d05e80c9daacd3cf8fefa476b240b64390ada8040d9e427c974457d2239e2945482cb
6
+ metadata.gz: c845c81609a4fd9b38ac0be43c77224904e6cb481dfffe79b92eff664ffa7f4f9a58c35258b6d35d191aaed91a85ae7a766fe900ca398f5f338cd3aeee5674e4
7
+ data.tar.gz: 6c47d4c9e8c21b76096ff34f6609c83e4398ac9b960dd247a5e47cb910f9f38ce44f681fe6e275b3937737842541dfe6112f646276fb49ae98823bd1127313f5
data/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # DotVm
2
+
3
+ ## How to start using DotVm
4
+ First you need to install DotVm plugin:
5
+ ```
6
+ $ vagrant plugin install vagrant-dotvm
7
+ ```
8
+
9
+ Then create Vagrantfile like that:
10
+ ```ruby
11
+ require 'vagrant-dotvm'
12
+
13
+ Vagrant.configure(2) do |config|
14
+ config_path = File.dirname(File.expand_path(__FILE__)) + "/config"
15
+ dotvm = VagrantPlugins::Dotvm::Dotvm.new config_path
16
+ dotvm.inject(config)
17
+ end
18
+ ```
19
+
20
+ Prepare directory for storing your projects:
21
+ ```
22
+ $ mkdir -p config/projects
23
+ ```
24
+
25
+ ## How to configure machine
26
+ You need to create folder named after your project in `config/projects`.
27
+ In this folder you can create as many YAML files as you want.
28
+ In each one you are able to define multiple machines.
29
+ Where it makes sense you can use %project.path% variable which will be replaced with
30
+ path to directory where you project lives.
31
+
32
+ Example YAML configuration:
33
+ ```yaml
34
+ machines:
35
+ - nick: example
36
+ name: machine1.example
37
+ box: chef/centos-7.0
38
+ networks:
39
+ - net: private_network
40
+ ip: 192.168.56.100
41
+ mask: 255.255.255.0
42
+ provision:
43
+ - type: shell
44
+ path: "%project.path%/bootstrap.sh"
45
+ shared_folders:
46
+ - host: /Volumes/Repos
47
+ guest: /srv/www
48
+ ```
@@ -0,0 +1,10 @@
1
+ # -*- mode: ruby -*-
2
+ # vi: set ft=ruby :
3
+
4
+ require 'vagrant-dotvm'
5
+
6
+ Vagrant.configure(2) do |config|
7
+ config_path = File.dirname(File.expand_path(__FILE__)) + "/config"
8
+ dotvm = VagrantPlugins::Dotvm::Dotvm.new config_path
9
+ dotvm.inject(config)
10
+ end
File without changes
@@ -0,0 +1,14 @@
1
+ machines:
2
+ - nick: example
3
+ name: machine1.example
4
+ box: chef/centos-7.0
5
+ networks:
6
+ - net: private_network
7
+ ip: 192.168.56.100
8
+ mask: 255.255.255.0
9
+ provision:
10
+ - type: shell
11
+ path: "%project.path%/bootstrap.sh"
12
+ shared_folders:
13
+ - host: /Volumes/Repos
14
+ guest: /srv/www
@@ -20,6 +20,10 @@ module VagrantPlugins
20
20
  vars = {
21
21
  'project.path' => File.dirname(fname),
22
22
  }
23
+
24
+ ENV.each_pair do |name, value|
25
+ vars['env.' + name] = value
26
+ end
23
27
 
24
28
  parser = ConfigParser.new vars
25
29
  configs << parser.parse(yaml)
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Dotvm
3
- VERSION = "0.3.0"
3
+ VERSION = "0.4.0"
4
4
  end
5
5
  end
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Krzysztof Magosa"]
10
10
  spec.email = ["krzysztof@magosa.pl"]
11
11
  spec.summary = "Easy YAML based multi machine config approach for Vagrant."
12
- spec.homepage = "http://github.com/krzysztof-magosa/dotvm"
12
+ spec.homepage = "http://github.com/krzysztof-magosa/vagrant-dotvm"
13
13
  spec.license = "MIT"
14
14
 
15
15
  spec.files = `git ls-files -z`.split("\x0")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-dotvm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Magosa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-04 00:00:00.000000000 Z
11
+ date: 2015-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -48,7 +48,11 @@ files:
48
48
  - .gitignore
49
49
  - Gemfile
50
50
  - LICENSE.txt
51
+ - README.md
51
52
  - Rakefile
53
+ - examples/Vagrantfile
54
+ - examples/config/projects/playground/bootstrap.sh
55
+ - examples/config/projects/playground/main.yaml
52
56
  - lib/vagrant-dotvm.rb
53
57
  - lib/vagrant-dotvm/configinjecter.rb
54
58
  - lib/vagrant-dotvm/configparser.rb
@@ -56,7 +60,7 @@ files:
56
60
  - lib/vagrant-dotvm/plugin.rb
57
61
  - lib/vagrant-dotvm/version.rb
58
62
  - vagrant-dotvm.gemspec
59
- homepage: http://github.com/krzysztof-magosa/dotvm
63
+ homepage: http://github.com/krzysztof-magosa/vagrant-dotvm
60
64
  licenses:
61
65
  - MIT
62
66
  metadata: {}