vagrant-ansible_inventory 0.0.2 → 0.0.3

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: 83e1768274c6bb80d6b1096df968bf2d42e24c89
4
- data.tar.gz: f2b788fd8bb54cae653b6f5bd3690ceb82874c38
3
+ metadata.gz: bdbd38651f021703318997a99bd4a913479b114c
4
+ data.tar.gz: 8826ac479c5f5f39c6a26ba71184c2485fc2b8d3
5
5
  SHA512:
6
- metadata.gz: f43d834619a35922859b7371320192596192660bd885ebb97ce4c2a2b4b247db036a10634b97d964c501290f51e17216fd5c9cefb71369b22f3d3acd9d29aeef
7
- data.tar.gz: 35a1d4c8e2e8763e2e956533ea90441c4b0ab6b22cbdcec167a0de5724b5182ca502ca9dbcc79b501ebaa2ad55283fa6f5e1da76b4f23bb630e52f9c91708372
6
+ metadata.gz: f0b5fc84035d12974127ef0a1e9e2fcfea16acafc57202e4e71b0c9bc727b268c3fbb56c3888774b60dda91aa51f514e996e54bc31d367828aaa2be11bc915fc
7
+ data.tar.gz: a12894b377500a5321565f05f1cc4335af657dd39829e80cc94295b29596f6d9f07ad29227879f00c035b338c2f7742380dab24cb91c2edfcb6b4c182ff2194e
data/README.md CHANGED
@@ -50,16 +50,16 @@ Will output something like:
50
50
  # Generated by vagrant-ansible_inventory plugin
51
51
 
52
52
  [master]
53
- 172.28.128.6 ansible_ssh_user=vagrant ansible_ssh_port=22
54
- ansible_ssh_key_file=/Users/joiggama/Projects/vagrant-ansible_inventory/.vagrant/machines/master/virtualbox/private_key
53
+ master ansible_ssh_user=vagrant ansible_ssh_host=172.28.128.6 ansible_ssh_port=22
54
+ ansible_ssh_private_key_file=/Users/joiggama/Projects/vagrant-ansible_inventory/.vagrant/machines/master/virtualbox/private_key
55
55
 
56
56
  [slaves]
57
57
  slave-1 ansible_ssh_user=vagrant ansible_ssh_host=172.28.128.7
58
58
  ansible_ssh_port=22
59
- ansible_ssh_key_file=/Users/joiggama/Projects/vagrant-ansible_inventory/.vagrant/machines/slave-1/virtualbox/private_key
59
+ ansible_ssh_private_key_file=/Users/joiggama/Projects/vagrant-ansible_inventory/.vagrant/machines/slave-1/virtualbox/private_key
60
60
  slave-2 ansible_ssh_user=vagrant ansible_ssh_host=172.28.128.8
61
61
  ansible_ssh_port=22
62
- ansible_ssh_key_file=/Users/joiggama/Projects/vagrant-ansible_inventory/.vagrant/machines/slave-2/virtualbox/private_key
62
+ ansible_ssh_private_key_file=/Users/joiggama/Projects/vagrant-ansible_inventory/.vagrant/machines/slave-2/virtualbox/private_key
63
63
 
64
64
  [cluster:children]
65
65
  master
@@ -20,7 +20,7 @@ module VagrantPlugins
20
20
  imp = (nodes.keys - exp.values.flatten)
21
21
 
22
22
  # Assign grouped nodes to inventory
23
- imp.each{|gname| inv[gname] = nodes[gname] }
23
+ imp.each{|gname| inv[gname] = nodes[gname].merge id: gname }
24
24
  exp.each{|gname, gnodes| inv[gname] = gnodes.map{|n| nodes[n].merge id: n }}
25
25
  meta.each{|gname, gnames| inv[gname] = gnames }
26
26
 
@@ -59,7 +59,7 @@ module VagrantPlugins
59
59
  out << "[#{group_name}]\n"
60
60
 
61
61
  if children.kind_of? Hash
62
- out << "#{node_attrs(:ssh_host, children)}\n"
62
+ out << "#{node_attrs(:id, children)}\n"
63
63
  else
64
64
  children.each do |child|
65
65
  out << "#{(child.kind_of?(Hash) ? node_attrs(:id, child) : child)}\n"
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module AnsibleInventory
3
- VERSION = '0.0.2'
3
+ VERSION = '0.0.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-ansible_inventory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ignacio Galindo