barking_iguana-compound 0.1.4 → 0.1.5

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: 660f437659c9d71510010c474a79652d23ae8f72
4
- data.tar.gz: 6d9144927d86139196261607bffe1087ec1a60b9
3
+ metadata.gz: f10ea4870a872ee548218f97221d9faa31f403ba
4
+ data.tar.gz: 6ea058ad7892a8356239b0076dd54c2b7d7250de
5
5
  SHA512:
6
- metadata.gz: 22aac3dbdb690d0b08230002e1a6391c8dbbc5b6c729064f1860027f552f81a7ad26b8906e4f8c223f2c6a3d0c54547d68cd2610f22d9073e4e02030dfcd5c5c
7
- data.tar.gz: d2e833cc167db10884952f020accb87780b9341e0cac9264571d6548d1ae7c7d73bcd60bfdf78005fa78a76f03744619c278ffb24b1832cc54726000000f5c76
6
+ metadata.gz: ebcbe74de8838638b30ab98a6b8fb4c84abdebdae09fab3b0305a39791a68d41bbddfb28914c1adbe282d336df443705301991b83e1d40b670d3299db17f888c
7
+ data.tar.gz: ecc1ad97fd7ceb18d40a194a3ea7a4b0dced5cb77862a358d7438caee0770c22c97e9e6935f527e9c16cd508b5ae00a8150a7e349a16b0a06a6d27ed4f625d8e
data/docs/CHANGELOG.md CHANGED
@@ -2,9 +2,14 @@
2
2
 
3
3
  Entries are in reverse chronological order.
4
4
 
5
- ## *0.1.5* (Current Development)
5
+ ## *0.1.6* (Current Development)
6
6
 
7
- Add release notes here, as things are added to the project.
7
+ Add release notes here, as things are added to the project.
8
+
9
+ ## *0.1.5* (2016-12-29)
10
+
11
+ * Bug fix: Only generate connection inventory for those hosts in the current
12
+ stage.
8
13
 
9
14
  ## *0.1.4* (2016-12-27)
10
15
 
@@ -53,7 +53,10 @@ module BarkingIguana
53
53
  end
54
54
 
55
55
  def find_by_name name
56
- all.detect { |h| h.name == name }
56
+ logger.debug { "Finding host with name #{name}" }
57
+ all.detect { |h| h.inventory_name == name }.tap do |h|
58
+ logger.debug { "Result: #{h.inspect}" }
59
+ end
57
60
  end
58
61
  end
59
62
  end
@@ -59,7 +59,7 @@ module BarkingIguana
59
59
  end
60
60
 
61
61
  def original_inventory
62
- Ansible.inventory inventory_path
62
+ @original_inventory ||= Ansible.inventory(inventory_path)
63
63
  end
64
64
 
65
65
  def generated_inventory
@@ -73,7 +73,8 @@ module BarkingIguana
73
73
  connection_file = File.expand_path 'connection', d
74
74
  Ansible::InventoryWriter.new(connection_file).tap do |i|
75
75
  benchmark "#{name}: generating connection inventory at #{connection_file}" do
76
- test.hosts.each do |h|
76
+ hosts.each do |host|
77
+ h = test.host_manager.find_by_name host.inventory_name
77
78
  i.add_host h
78
79
  end
79
80
  i.write_file
@@ -103,7 +104,7 @@ module BarkingIguana
103
104
  end
104
105
 
105
106
  def setup
106
- desired_hosts = original_inventory.hosts.sort.map(&:name)
107
+ desired_hosts = hosts.sort.map(&:name)
107
108
  logger.debug { "Desired hosts for #{display_name}: #{desired_hosts.join(', ')}" }
108
109
  active_hosts = host_manager.active.sort.map(&:name)
109
110
  logger.debug { "Active hosts for #{display_name}: #{active_hosts.join(', ')}" }
@@ -1,5 +1,5 @@
1
1
  module BarkingIguana
2
2
  module Compound
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: barking_iguana-compound
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Craig R Webster
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-27 00:00:00.000000000 Z
11
+ date: 2016-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler