hammer_cli_bluecat 0.2.0 → 0.2.1
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 +4 -4
- data/lib/hammer_cli_bluecat/version.rb +1 -1
- data/lib/hammer_cli_bluecat.rb +14 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cf3eca2edd954b2e0142db1de9fb2be8f7c7ff47
|
|
4
|
+
data.tar.gz: 068d5518ee3cb40374e78e72bb5fb537decc733e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7726b40a5819d6e5350d371fbb18859bdd3f0e54129b68a7f6ca08d4a8726cb62468d22b814c8f9c94d3ed4db6cb2539ae7fb01d89924dff047df08921779adc
|
|
7
|
+
data.tar.gz: 31c099cfa3ab4193ee30b4ad95c1b296988ed2f70a51164832dbd0f8c48b866c73f9a62ff2ddf80fd5bb7d4ced942819e52520a08e2b8398392c30fbc0094228
|
data/lib/hammer_cli_bluecat.rb
CHANGED
|
@@ -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
|