hammer_cli_bluecat 0.2.0 → 0.2.1

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: b9667bd507c88813fb262237daaa525eb8f3346f
4
- data.tar.gz: 9ead4eaa7b7e5a66bd922d29f460dfae38f8f315
3
+ metadata.gz: cf3eca2edd954b2e0142db1de9fb2be8f7c7ff47
4
+ data.tar.gz: 068d5518ee3cb40374e78e72bb5fb537decc733e
5
5
  SHA512:
6
- metadata.gz: f77d983eae3f3602f19498a411113d906ce508ec1cdced5408b1d204ad0753f965c7f6ffb86daf68c76fd097441f8dbc3a025da8dedab8ca192ba27f028cee2a
7
- data.tar.gz: 5227d7061c5c1d08e0ef97a392197059d6c4b40b865b9c87bb2d1b56df069dd973d642cea206cbe305922492398da8d268811c6028ee955fa4d8e681e87683b7
6
+ metadata.gz: 7726b40a5819d6e5350d371fbb18859bdd3f0e54129b68a7f6ca08d4a8726cb62468d22b814c8f9c94d3ed4db6cb2539ae7fb01d89924dff047df08921779adc
7
+ data.tar.gz: 31c099cfa3ab4193ee30b4ad95c1b296988ed2f70a51164832dbd0f8c48b866c73f9a62ff2ddf80fd5bb7d4ced942819e52520a08e2b8398392c30fbc0094228
@@ -1,3 +1,3 @@
1
1
  module HammerCliBluecat
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -14,7 +14,11 @@ module HammerCliBluecat
14
14
  def execute
15
15
  # Get current domain identifiers...
16
16
  @domain_ids = domain_ids
17
+ @location_ids = location_ids
18
+ @organization_ids = organization_ids
19
+
17
20
  @tftp_id = tftp_id
21
+
18
22
  @catalog = {}
19
23
 
20
24
  # Build a list of subnet resources from Bluecat...
@@ -93,6 +97,8 @@ module HammerCliBluecat
93
97
  :dns_secondary => '152.1.14.21',
94
98
  :ipam => 'None',
95
99
  :domain_ids => @domain_ids,
100
+ :location_ids => @location_ids,
101
+ :organization_ids => @organization_ids,
96
102
  :tftp_id => @tftp_id,
97
103
  :boot_mode => 'DHCP'
98
104
  }
@@ -137,6 +143,14 @@ module HammerCliBluecat
137
143
  foreman.resource(:domains).call(:index)['results'].map { |e| e['id'] }
138
144
  end
139
145
 
146
+ def location_ids
147
+ foreman.resource(:locations).call(:index)['results'].map { |e| e['id'] }
148
+ end
149
+
150
+ def organization_ids
151
+ foreman.resource(:organizations).call(:index)['results'].map { |e| e['id'] }
152
+ end
153
+
140
154
  def tftp_id
141
155
  1
142
156
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hammer_cli_bluecat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dustin Wheeler