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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bdbd38651f021703318997a99bd4a913479b114c
|
|
4
|
+
data.tar.gz: 8826ac479c5f5f39c6a26ba71184c2485fc2b8d3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
54
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(:
|
|
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"
|