vai 0.9.1 → 0.9.2

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: bc729df86a49c1e52b81f7325bed2ee97b55cae7
4
- data.tar.gz: 5dd1ffa81233342fb017705124bc2075149a51cc
3
+ metadata.gz: 43dc484e6259754f50bf28711594dd508314963b
4
+ data.tar.gz: 2cb98927b46009beb031ea8046cc8dbae7c9fb00
5
5
  SHA512:
6
- metadata.gz: 46a6bb2b4b17fa50bb8232c0ae35f7343827385b7f19456a99a09d97928588297b7ec41938be7cc193671f536e15bc9fec1365ffa33bc8a630b56f35e0f491a1
7
- data.tar.gz: de8a9844c7b111bcff2b20104cd8e97f77ca5d0e402ab33f4c7a001183440bd515e900dbe77504b3332e79c50878f1bd3fe6c9562e80d395faf44d0100a16cd4
6
+ metadata.gz: 266240cb2058a859177a0919ccfee815d1a6246e01626e810ff9c84bebfd27936c0d24fa306b58ddc80f42ca052afcc24fd525c8ebdc012851d2249b39688d27
7
+ data.tar.gz: bce344df5c844e009e8ffaf5e60a75f3cc9b16737d144085854a63945e25b137e947f916556d1a228106adb07222aff7e4ad26ab2d49e5407cb5296879c60e8c
data/README.md CHANGED
@@ -14,6 +14,7 @@ Add something like this to your vagrant file
14
14
  config.vm.provision :vai do |ansible|
15
15
  ansible.inventory_dir='path/to/output/inventory/'
16
16
  #optional
17
+ ansible.inventory_filename='vagrant_ansible_inventory'
17
18
  ansible.groups = {
18
19
  'group1' => ['box1','box2'],
19
20
  'parentGroup1:children' => ['group1']
data/lib/vai/config.rb CHANGED
@@ -5,13 +5,15 @@ module VagrantPlugins
5
5
  attr_accessor :groups
6
6
 
7
7
  def initialize
8
- @inventory_dir = UNSET_VALUE
9
- @groups = UNSET_VALUE
8
+ @inventory_dir = UNSET_VALUE
9
+ @inventory_filename = UNSET_VALUE
10
+ @groups = UNSET_VALUE
10
11
  end
11
12
 
12
13
  def finalize!
13
- @inventory_dir = nil if @inventory_dir == UNSET_VALUE
14
- @groups = {} if @groups == UNSET_VALUE
14
+ @inventory_dir = nil if @inventory_dir == UNSET_VALUE
15
+ @inventory_filename = nil if @inventory_filename == UNSET_VALUE
16
+ @groups = {} if @groups == UNSET_VALUE
15
17
  end
16
18
 
17
19
  def validate(machine)
@@ -22,7 +22,8 @@ module VagrantPlugins
22
22
  inventory_machines = {}
23
23
  generated_inventory_dir = Pathname.new(config.inventory_dir)
24
24
  FileUtils.mkdir_p(generated_inventory_dir) unless File.directory?(generated_inventory_dir)
25
- generated_inventory_file = generated_inventory_dir.join('vagrant_ansible_inventory')
25
+ generated_inventory_filename = config.inventory_filename ? config.inventory_filename : 'vagrant_ansible_inventory'
26
+ generated_inventory_file = generated_inventory_dir.join(generated_inventory_filename)
26
27
  generated_inventory_file.open('w') do |file|
27
28
  file.write("# Generated by Vagrant\n\n")
28
29
 
data/lib/vai/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Vai
3
- VERSION = "0.9.1"
3
+ VERSION = "0.9.2"
4
4
  end
5
5
  end
data/vai.gemspec CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Matthew Miller"]
10
10
  spec.email = ["matthew@mi11er.net"]
11
11
  spec.summary = %q{A Vagrant provisioning plugin to output a usable Ansible inventory to use outside Vagrant.}
12
- #spec.description = %q{TODO: Write a longer description. Optional.}
13
- spec.homepage = ""
12
+ spec.description = %q{A Vagrant provisioning plugin to output a usable Ansible inventory to use outside Vagrant.}
13
+ spec.homepage = "https://github.com/MatthewMi11er/vai"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Miller
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-09 00:00:00.000000000 Z
11
+ date: 2015-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,7 +38,8 @@ dependencies:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
- description:
41
+ description: A Vagrant provisioning plugin to output a usable Ansible inventory to
42
+ use outside Vagrant.
42
43
  email:
43
44
  - matthew@mi11er.net
44
45
  executables: []
@@ -57,7 +58,7 @@ files:
57
58
  - lib/vai/version.rb
58
59
  - test/Vagrantfile
59
60
  - vai.gemspec
60
- homepage: ''
61
+ homepage: https://github.com/MatthewMi11er/vai
61
62
  licenses:
62
63
  - MIT
63
64
  metadata: {}