foreman_discovery 12.0.0 → 12.0.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98a080f7ad2a14e13a076a7494394840496744de18693ddc452f350c8c901faf
|
4
|
+
data.tar.gz: 36b67cccee6114006973102a963bc599ffd28a7821dbae30616602f6e9b1acd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54765d0d9f705a926be0dcde3514de726ef2403e64cd565abaa9398d1189dabfbc4fd1d43dad0a2ea46ce6b5924858f3b68736363ce67dd0e83f169aba53dcde
|
7
|
+
data.tar.gz: 8c0569417e8d35fb6a040af15d3709b8673ac4a91764156d3c257de0ddb5bd6f5ddd31c29a20d20c69ed3f691e85215497377ca3c76e906825139d22a2d7fb89
|
@@ -80,7 +80,7 @@ module Api
|
|
80
80
|
end
|
81
81
|
|
82
82
|
def update
|
83
|
-
@host = ::ForemanDiscovery::HostConverter.to_managed(@discovered_host, true,
|
83
|
+
@host = ::ForemanDiscovery::HostConverter.to_managed(@discovered_host, true, managed_host_params[:build], managed_host_params)
|
84
84
|
forward_request_url
|
85
85
|
update_response = @host.save
|
86
86
|
process_response update_response
|
@@ -0,0 +1,335 @@
|
|
1
|
+
{
|
2
|
+
"lib": "/usr/share/fdi/facts:/opt/extension/facts",
|
3
|
+
"domain": "broadridge.net",
|
4
|
+
"interfaces": "em1_1,em1_2,em2_1,em2_2,em3_1,em3_2,em4_1,em4_2,lo",
|
5
|
+
"ipaddress_em1_1": "10.26.48.104",
|
6
|
+
"macaddress_em1_1": "40:5c:fd:06:38:e9",
|
7
|
+
"netmask_em1_1": "255.255.255.0",
|
8
|
+
"mtu_em1_1": 1500,
|
9
|
+
"macaddress_em1_2": "40:5c:fd:06:3f:13",
|
10
|
+
"mtu_em1_2": 1500,
|
11
|
+
"macaddress_em2_1": "40:5c:fd:06:38:ec",
|
12
|
+
"mtu_em2_1": 1500,
|
13
|
+
"macaddress_em2_2": "40:5c:fd:06:3f:16",
|
14
|
+
"mtu_em2_2": 1500,
|
15
|
+
"macaddress_em3_1": "40:5c:fd:06:3f:0d",
|
16
|
+
"mtu_em3_1": 1500,
|
17
|
+
"macaddress_em3_2": "40:5c:fd:06:3f:19",
|
18
|
+
"mtu_em3_2": 1500,
|
19
|
+
"macaddress_em4_1": "40:5c:fd:06:3f:10",
|
20
|
+
"mtu_em4_1": 1500,
|
21
|
+
"macaddress_em4_2": "40:5c:fd:06:3f:1c",
|
22
|
+
"mtu_em4_2": 1500,
|
23
|
+
"ipaddress_lo": "127.0.0.1",
|
24
|
+
"netmask_lo": "255.0.0.0",
|
25
|
+
"mtu_lo": 65536,
|
26
|
+
"fqdn": "fdi.broadridge.net",
|
27
|
+
"network_em1_1": "10.26.48.0",
|
28
|
+
"network_lo": "127.0.0.0",
|
29
|
+
"hardwaremodel": "x86_64",
|
30
|
+
"ps": "ps -ef",
|
31
|
+
"blockdevice_sda_size": 0,
|
32
|
+
"blockdevice_sda_vendor": "iDRAC",
|
33
|
+
"blockdevice_sda_model": "Virtual Floppy",
|
34
|
+
"blockdevice_sdb_size": 299439751168,
|
35
|
+
"blockdevice_sdb_vendor": "DELL",
|
36
|
+
"blockdevice_sdb_model": "PERC H730 Mini",
|
37
|
+
"blockdevice_sr0_size": 1073741312,
|
38
|
+
"blockdevice_sr0_vendor": "iDRAC",
|
39
|
+
"blockdevice_sr0_model": "Virtual CD",
|
40
|
+
"blockdevices": "sda,sdb,sr0",
|
41
|
+
"boardmanufacturer": "Dell Inc.",
|
42
|
+
"boardproductname": "0R10KJ",
|
43
|
+
"boardserialnumber": ".G0WQJH2.CN7016371Q00BD.09.",
|
44
|
+
"bios_vendor": "Dell Inc.",
|
45
|
+
"bios_version": "2.7.1",
|
46
|
+
"bios_release_date": "01/23/2018",
|
47
|
+
"manufacturer": "Dell Inc.",
|
48
|
+
"productname": "PowerEdge M630",
|
49
|
+
"serialnumber": "G0WQJH2",
|
50
|
+
"uuid": "4C4C4544-0030-5710-8051-C7C04F4A4832",
|
51
|
+
"type": "Multi-system",
|
52
|
+
"selinux": false,
|
53
|
+
"ipaddress": "10.26.48.104",
|
54
|
+
"virtual": "physical",
|
55
|
+
"is_virtual": false,
|
56
|
+
"architecture": "x86_64",
|
57
|
+
"os": {
|
58
|
+
"name": "RedHat",
|
59
|
+
"family": "RedHat",
|
60
|
+
"release": {
|
61
|
+
"major": "7",
|
62
|
+
"minor": "4",
|
63
|
+
"full": "7.4"
|
64
|
+
}
|
65
|
+
},
|
66
|
+
"hostname": "fdi",
|
67
|
+
"physicalprocessorcount": 1,
|
68
|
+
"partitions": {
|
69
|
+
"sdb1": {
|
70
|
+
"size": "614400",
|
71
|
+
"filesystem": "msdos"
|
72
|
+
},
|
73
|
+
"sdb2": {
|
74
|
+
"uuid": "20d6cfdb-b8eb-42f3-9df8-884af6f171cb",
|
75
|
+
"size": "614400",
|
76
|
+
"filesystem": "ext4"
|
77
|
+
},
|
78
|
+
"sdb3": {
|
79
|
+
"size": "583612416",
|
80
|
+
"filesystem": "LVM2_member"
|
81
|
+
}
|
82
|
+
},
|
83
|
+
"hardwareisa": "x86_64",
|
84
|
+
"netmask": "255.255.255.0",
|
85
|
+
"processors": {
|
86
|
+
"models": [
|
87
|
+
"Intel(R) Xeon(R) CPU E5-2623 v4 @ 2.60GHz",
|
88
|
+
"Intel(R) Xeon(R) CPU E5-2623 v4 @ 2.60GHz",
|
89
|
+
"Intel(R) Xeon(R) CPU E5-2623 v4 @ 2.60GHz",
|
90
|
+
"Intel(R) Xeon(R) CPU E5-2623 v4 @ 2.60GHz",
|
91
|
+
"Intel(R) Xeon(R) CPU E5-2623 v4 @ 2.60GHz",
|
92
|
+
"Intel(R) Xeon(R) CPU E5-2623 v4 @ 2.60GHz",
|
93
|
+
"Intel(R) Xeon(R) CPU E5-2623 v4 @ 2.60GHz",
|
94
|
+
"Intel(R) Xeon(R) CPU E5-2623 v4 @ 2.60GHz"
|
95
|
+
],
|
96
|
+
"count": 8,
|
97
|
+
"physicalcount": 1
|
98
|
+
},
|
99
|
+
"processor0": "Intel(R) Xeon(R) CPU E5-2623 v4 @ 2.60GHz",
|
100
|
+
"processor1": "Intel(R) Xeon(R) CPU E5-2623 v4 @ 2.60GHz",
|
101
|
+
"processor2": "Intel(R) Xeon(R) CPU E5-2623 v4 @ 2.60GHz",
|
102
|
+
"processor3": "Intel(R) Xeon(R) CPU E5-2623 v4 @ 2.60GHz",
|
103
|
+
"processor4": "Intel(R) Xeon(R) CPU E5-2623 v4 @ 2.60GHz",
|
104
|
+
"processor5": "Intel(R) Xeon(R) CPU E5-2623 v4 @ 2.60GHz",
|
105
|
+
"processor6": "Intel(R) Xeon(R) CPU E5-2623 v4 @ 2.60GHz",
|
106
|
+
"processor7": "Intel(R) Xeon(R) CPU E5-2623 v4 @ 2.60GHz",
|
107
|
+
"processorcount": 8,
|
108
|
+
"macaddress": "40:5c:fd:06:38:e9",
|
109
|
+
"uniqueid": "1a0a6830",
|
110
|
+
"facterversion": "2.4.6",
|
111
|
+
"dhcp_servers": {
|
112
|
+
"system": "10.26.48.11",
|
113
|
+
"em1_1": "10.26.48.11"
|
114
|
+
},
|
115
|
+
"id": "root",
|
116
|
+
"memorysize": "31.31 GB",
|
117
|
+
"memorysize_mb": "32058.37",
|
118
|
+
"gid": "root",
|
119
|
+
"discovery_version": "3.4.4",
|
120
|
+
"discovery_release": "20180123.1",
|
121
|
+
"discovery_bootif": "40:5c:fd:06:38:e9",
|
122
|
+
"discovery_bootip": "10.26.48.104",
|
123
|
+
"speed_em1_1": "10000",
|
124
|
+
"duplex_em1_1": "full",
|
125
|
+
"port_em1_1": "FIBRE",
|
126
|
+
"auto_negotiation_em1_1": "true",
|
127
|
+
"wol_em1_1": false,
|
128
|
+
"link_em1_1": "true",
|
129
|
+
"speed_em1_2": "10000",
|
130
|
+
"duplex_em1_2": "full",
|
131
|
+
"port_em1_2": "FIBRE",
|
132
|
+
"auto_negotiation_em1_2": "true",
|
133
|
+
"wol_em1_2": false,
|
134
|
+
"link_em1_2": "true",
|
135
|
+
"speed_em2_1": "10000",
|
136
|
+
"duplex_em2_1": "full",
|
137
|
+
"port_em2_1": "FIBRE",
|
138
|
+
"auto_negotiation_em2_1": "true",
|
139
|
+
"wol_em2_1": false,
|
140
|
+
"link_em2_1": "true",
|
141
|
+
"speed_em2_2": "10000",
|
142
|
+
"duplex_em2_2": "full",
|
143
|
+
"port_em2_2": "FIBRE",
|
144
|
+
"auto_negotiation_em2_2": "true",
|
145
|
+
"wol_em2_2": false,
|
146
|
+
"link_em2_2": "true",
|
147
|
+
"speed_em3_1": "10000",
|
148
|
+
"duplex_em3_1": "full",
|
149
|
+
"port_em3_1": "FIBRE",
|
150
|
+
"auto_negotiation_em3_1": "true",
|
151
|
+
"wol_em3_1": false,
|
152
|
+
"link_em3_1": "true",
|
153
|
+
"speed_em3_2": "10000",
|
154
|
+
"duplex_em3_2": "full",
|
155
|
+
"port_em3_2": "FIBRE",
|
156
|
+
"auto_negotiation_em3_2": "true",
|
157
|
+
"wol_em3_2": false,
|
158
|
+
"link_em3_2": "true",
|
159
|
+
"speed_em4_1": "10000",
|
160
|
+
"duplex_em4_1": "full",
|
161
|
+
"port_em4_1": "FIBRE",
|
162
|
+
"auto_negotiation_em4_1": "true",
|
163
|
+
"wol_em4_1": false,
|
164
|
+
"link_em4_1": "true",
|
165
|
+
"speed_em4_2": "10000",
|
166
|
+
"duplex_em4_2": "full",
|
167
|
+
"port_em4_2": "FIBRE",
|
168
|
+
"auto_negotiation_em4_2": "true",
|
169
|
+
"wol_em4_2": false,
|
170
|
+
"link_em4_2": "true",
|
171
|
+
"link_lo": "true",
|
172
|
+
"ipmi_enabled": true,
|
173
|
+
"ipmi_ipaddress_source": "Static Address",
|
174
|
+
"ipmi_ipaddress": "10.101.65.43",
|
175
|
+
"ipmi_subnet_mask": "255.255.240.0",
|
176
|
+
"ipmi_macaddress": "40:5c:fd:06:38:e8",
|
177
|
+
"ipmi_gateway": "10.101.64.1",
|
178
|
+
"ipmi_1_ipaddress_source": "Static Address",
|
179
|
+
"ipmi_1_ipaddress": "10.101.65.43",
|
180
|
+
"ipmi_1_subnet_mask": "255.255.240.0",
|
181
|
+
"ipmi_1_macaddress": "40:5c:fd:06:38:e8",
|
182
|
+
"ipmi_1_gateway": "10.101.64.1",
|
183
|
+
"nmprimary_connection_id": "primary",
|
184
|
+
"nmprimary_connection_uuid": "de2ce494-7652-11e8-90d3-405cfd0638e9",
|
185
|
+
"nmprimary_connection_stable-id": "",
|
186
|
+
"nmprimary_connection_interface-name": "",
|
187
|
+
"nmprimary_connection_type": "802-3-ethernet",
|
188
|
+
"nmprimary_connection_autoconnect": "yes",
|
189
|
+
"nmprimary_connection_autoconnect-priority": "1",
|
190
|
+
"nmprimary_connection_autoconnect-retries": "-1",
|
191
|
+
"nmprimary_connection_read-only": "no",
|
192
|
+
"nmprimary_connection_permissions": "",
|
193
|
+
"nmprimary_connection_zone": "",
|
194
|
+
"nmprimary_connection_master": "",
|
195
|
+
"nmprimary_connection_slave-type": "",
|
196
|
+
"nmprimary_connection_autoconnect-slaves": "-1",
|
197
|
+
"nmprimary_connection_secondaries": "",
|
198
|
+
"nmprimary_connection_metered": "unknown",
|
199
|
+
"nmprimary_connection_lldp": "default",
|
200
|
+
"nmprimary_802-3-ethernet_port": "",
|
201
|
+
"nmprimary_802-3-ethernet_speed": "0",
|
202
|
+
"nmprimary_802-3-ethernet_duplex": "",
|
203
|
+
"nmprimary_802-3-ethernet_auto-negotiate": "no",
|
204
|
+
"nmprimary_802-3-ethernet_mac-address": "40:5C:FD:06:38:E9",
|
205
|
+
"nmprimary_802-3-ethernet_cloned-mac-address": "",
|
206
|
+
"nmprimary_802-3-ethernet_generate-mac-address-mask": "",
|
207
|
+
"nmprimary_802-3-ethernet_mac-address-blacklist": "",
|
208
|
+
"nmprimary_802-3-ethernet_mtu": "auto",
|
209
|
+
"nmprimary_802-3-ethernet_s390-subchannels": "",
|
210
|
+
"nmprimary_802-3-ethernet_s390-nettype": "",
|
211
|
+
"nmprimary_802-3-ethernet_s390-options": "",
|
212
|
+
"nmprimary_802-3-ethernet_wake-on-lan": "default",
|
213
|
+
"nmprimary_802-3-ethernet_wake-on-lan-password": "",
|
214
|
+
"nmprimary_ipv4_method": "auto",
|
215
|
+
"nmprimary_ipv4_dns": "",
|
216
|
+
"nmprimary_ipv4_dns-search": "",
|
217
|
+
"nmprimary_ipv4_dns-options": "",
|
218
|
+
"nmprimary_ipv4_dns-priority": "0",
|
219
|
+
"nmprimary_ipv4_addresses": "",
|
220
|
+
"nmprimary_ipv4_gateway": "",
|
221
|
+
"nmprimary_ipv4_routes": "",
|
222
|
+
"nmprimary_ipv4_route-metric": "-1",
|
223
|
+
"nmprimary_ipv4_ignore-auto-routes": "no",
|
224
|
+
"nmprimary_ipv4_ignore-auto-dns": "no",
|
225
|
+
"nmprimary_ipv4_dhcp-client-id": "",
|
226
|
+
"nmprimary_ipv4_dhcp-send-hostname": "no",
|
227
|
+
"nmprimary_ipv4_dhcp-hostname": "",
|
228
|
+
"nmprimary_ipv4_dhcp-fqdn": "",
|
229
|
+
"nmprimary_ipv4_never-default": "no",
|
230
|
+
"nmprimary_ipv4_may-fail": "yes",
|
231
|
+
"nmprimary_ipv6_method": "ignore",
|
232
|
+
"nmprimary_ipv6_dns": "",
|
233
|
+
"nmprimary_ipv6_dns-search": "",
|
234
|
+
"nmprimary_ipv6_dns-options": "",
|
235
|
+
"nmprimary_ipv6_dns-priority": "0",
|
236
|
+
"nmprimary_ipv6_addresses": "",
|
237
|
+
"nmprimary_ipv6_gateway": "",
|
238
|
+
"nmprimary_ipv6_routes": "",
|
239
|
+
"nmprimary_ipv6_route-metric": "-1",
|
240
|
+
"nmprimary_ipv6_ignore-auto-routes": "no",
|
241
|
+
"nmprimary_ipv6_ignore-auto-dns": "no",
|
242
|
+
"nmprimary_ipv6_never-default": "no",
|
243
|
+
"nmprimary_ipv6_may-fail": "yes",
|
244
|
+
"nmprimary_ipv6_ip6-privacy": "-1",
|
245
|
+
"nmprimary_ipv6_addr-gen-mode": "eui64",
|
246
|
+
"nmprimary_ipv6_dhcp-send-hostname": "yes",
|
247
|
+
"nmprimary_ipv6_dhcp-hostname": "",
|
248
|
+
"nmprimary_ipv6_token": "",
|
249
|
+
"nmprimary_vlan_parent": "",
|
250
|
+
"nmprimary_vlan_id": "0",
|
251
|
+
"nmprimary_vlan_flags": "1",
|
252
|
+
"nmprimary_vlan_ingress-priority-map": "",
|
253
|
+
"nmprimary_vlan_egress-priority-map": "",
|
254
|
+
"nmprimary_proxy_method": "none",
|
255
|
+
"nmprimary_proxy_browser-only": "no",
|
256
|
+
"nmprimary_proxy_pac-url": "",
|
257
|
+
"nmprimary_proxy_pac-script": "",
|
258
|
+
"nmprimary_general_name": "primary",
|
259
|
+
"nmprimary_general_uuid": "de2ce494-7652-11e8-90d3-405cfd0638e9",
|
260
|
+
"nmprimary_general_devices": "em1_1",
|
261
|
+
"nmprimary_general_state": "activated",
|
262
|
+
"nmprimary_general_default": "yes",
|
263
|
+
"nmprimary_general_default6": "no",
|
264
|
+
"nmprimary_general_vpn": "no",
|
265
|
+
"nmprimary_general_zone": "",
|
266
|
+
"nmprimary_general_spec-object": "",
|
267
|
+
"nmprimary_ip4_address": "10.26.48.104/24",
|
268
|
+
"nmprimary_ip4_gateway": "10.26.48.1",
|
269
|
+
"nmprimary_ip4_dns": "10.26.48.11",
|
270
|
+
"nmprimary_ip4_domain": "broadridge.net",
|
271
|
+
"nmprimary_dhcp4_option_requested_routers": "1",
|
272
|
+
"nmprimary_dhcp4_option_requested_domain_search": "1",
|
273
|
+
"nmprimary_dhcp4_option_dhcp_server_identifier": "10.26.48.11",
|
274
|
+
"nmprimary_dhcp4_option_requested_domain_name": "1",
|
275
|
+
"nmprimary_dhcp4_option_filename": "pxelinux.0",
|
276
|
+
"nmprimary_dhcp4_option_requested_rfc3442_classless_static_routes": "1",
|
277
|
+
"nmprimary_dhcp4_option_requested_classless_static_routes": "1",
|
278
|
+
"nmprimary_dhcp4_option_requested_wpad": "1",
|
279
|
+
"nmprimary_dhcp4_option_requested_broadcast_address": "1",
|
280
|
+
"nmprimary_dhcp4_option_next_server": "10.26.48.11",
|
281
|
+
"nmprimary_dhcp4_option_broadcast_address": "10.26.48.255",
|
282
|
+
"nmprimary_dhcp4_option_requested_interface_mtu": "1",
|
283
|
+
"nmprimary_dhcp4_option_requested_subnet_mask": "1",
|
284
|
+
"nmprimary_dhcp4_option_expiry": "1529739097",
|
285
|
+
"nmprimary_dhcp4_option_dhcp_message_type": "5",
|
286
|
+
"nmprimary_dhcp4_option_ip_address": "10.26.48.104",
|
287
|
+
"nmprimary_dhcp4_option_routers": "10.26.48.1",
|
288
|
+
"nmprimary_dhcp4_option_domain_name": "broadridge.net",
|
289
|
+
"nmprimary_dhcp4_option_requested_static_routes": "1",
|
290
|
+
"nmprimary_dhcp4_option_requested_nis_servers": "1",
|
291
|
+
"nmprimary_dhcp4_option_requested_ntp_servers": "1",
|
292
|
+
"nmprimary_dhcp4_option_requested_domain_name_servers": "1",
|
293
|
+
"nmprimary_dhcp4_option_domain_name_servers": "10.26.48.11",
|
294
|
+
"nmprimary_dhcp4_option_requested_ms_classless_static_routes": "1",
|
295
|
+
"nmprimary_dhcp4_option_subnet_mask": "255.255.255.0",
|
296
|
+
"nmprimary_dhcp4_option_network_number": "10.26.48.0",
|
297
|
+
"nmprimary_dhcp4_option_requested_host_name": "1",
|
298
|
+
"nmprimary_dhcp4_option_requested_nis_domain": "1",
|
299
|
+
"nmprimary_ip6_address": "fe80::425c:fdff:fe06:38e9/64",
|
300
|
+
"nmprimary_ip6_gateway": "",
|
301
|
+
"lldp_neighbor_chassisid_em1_1": "f4:8e:38:60:dd:c9",
|
302
|
+
"lldp_neighbor_portid_em1_1": "TenGigabitEthernet 0/9",
|
303
|
+
"lldp_neighbor_sysname_em1_1": "Dell",
|
304
|
+
"lldp_neighbor_mngaddr_ipv4_em1_1": "10.101.65.222",
|
305
|
+
"lldp_neighbor_chassisid_em1_2": "f4:8e:38:60:dd:c9",
|
306
|
+
"lldp_neighbor_portid_em1_2": "TenGigabitEthernet 0/9",
|
307
|
+
"lldp_neighbor_sysname_em1_2": "Dell",
|
308
|
+
"lldp_neighbor_mngaddr_ipv4_em1_2": "10.101.65.222",
|
309
|
+
"lldp_neighbor_chassisid_em2_1": "f4:8e:38:60:de:f9",
|
310
|
+
"lldp_neighbor_portid_em2_1": "TenGigabitEthernet 0/9",
|
311
|
+
"lldp_neighbor_sysname_em2_1": "Dell",
|
312
|
+
"lldp_neighbor_mngaddr_ipv4_em2_1": "10.101.65.223",
|
313
|
+
"lldp_neighbor_chassisid_em2_2": "f4:8e:38:60:de:f9",
|
314
|
+
"lldp_neighbor_portid_em2_2": "TenGigabitEthernet 0/9",
|
315
|
+
"lldp_neighbor_sysname_em2_2": "Dell",
|
316
|
+
"lldp_neighbor_mngaddr_ipv4_em2_2": "10.101.65.223",
|
317
|
+
"lldp_neighbor_chassisid_em3_1": "f4:8e:38:60:dd:c9",
|
318
|
+
"lldp_neighbor_portid_em3_1": "TenGigabitEthernet 0/25",
|
319
|
+
"lldp_neighbor_sysname_em3_1": "Dell",
|
320
|
+
"lldp_neighbor_mngaddr_ipv4_em3_1": "10.101.65.222",
|
321
|
+
"lldp_neighbor_chassisid_em3_2": "f4:8e:38:60:dd:c9",
|
322
|
+
"lldp_neighbor_portid_em3_2": "TenGigabitEthernet 0/25",
|
323
|
+
"lldp_neighbor_sysname_em3_2": "Dell",
|
324
|
+
"lldp_neighbor_mngaddr_ipv4_em3_2": "10.101.65.222",
|
325
|
+
"lldp_neighbor_chassisid_em4_1": "f4:8e:38:60:de:f9",
|
326
|
+
"lldp_neighbor_portid_em4_1": "TenGigabitEthernet 0/25",
|
327
|
+
"lldp_neighbor_sysname_em4_1": "Dell",
|
328
|
+
"lldp_neighbor_mngaddr_ipv4_em4_1": "10.101.65.223",
|
329
|
+
"lldp_neighbor_chassisid_em4_2": "f4:8e:38:60:de:f9",
|
330
|
+
"lldp_neighbor_portid_em4_2": "TenGigabitEthernet 0/25",
|
331
|
+
"lldp_neighbor_sysname_em4_2": "Dell",
|
332
|
+
"lldp_neighbor_mngaddr_ipv4_em4_2": "10.101.65.223",
|
333
|
+
"discovery_proxy_uri": "https://clitvlsegsat01.broadridge.net",
|
334
|
+
"discovery_proxy_type": "foreman"
|
335
|
+
}
|
@@ -63,7 +63,8 @@ class Api::V2::DiscoveredHostsControllerTest < ActionController::TestCase
|
|
63
63
|
put :update, params: {
|
64
64
|
id: host.id,
|
65
65
|
discovered_host: {
|
66
|
-
hostgroup_id: hostgroup.id
|
66
|
+
hostgroup_id: hostgroup.id,
|
67
|
+
build: true
|
67
68
|
}
|
68
69
|
}
|
69
70
|
|
@@ -82,6 +83,25 @@ class Api::V2::DiscoveredHostsControllerTest < ActionController::TestCase
|
|
82
83
|
assert_equal hostgroup.environment_id, actual.environment_id
|
83
84
|
assert_equal hostgroup.puppet_proxy_id, actual.puppet_proxy_id
|
84
85
|
assert_equal hostgroup.puppet_ca_proxy_id, actual.puppet_ca_proxy_id
|
86
|
+
assert actual.build?
|
87
|
+
end
|
88
|
+
|
89
|
+
def test_provision_host_without_build_flag
|
90
|
+
FactoryBot.create(:organization, :name => 'SomeOrg')
|
91
|
+
FactoryBot.create(:location, :name => 'SomeLoc')
|
92
|
+
host = discover_host_from_facts(@facts)
|
93
|
+
hostgroup = setup_hostgroup(host)
|
94
|
+
put :update, params: {
|
95
|
+
id: host.id,
|
96
|
+
discovered_host: {
|
97
|
+
hostgroup_id: hostgroup.id,
|
98
|
+
build: false
|
99
|
+
}
|
100
|
+
}
|
101
|
+
assert_response :success
|
102
|
+
actual = Host.unscoped.find(host.id)
|
103
|
+
assert_equal hostgroup.id, actual.hostgroup_id
|
104
|
+
refute actual.build?
|
85
105
|
end
|
86
106
|
|
87
107
|
def test_auto_provision_success_via_upload
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_discovery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 12.0.
|
4
|
+
version: 12.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- alongoldboim
|
@@ -64,7 +64,7 @@ authors:
|
|
64
64
|
autorequire:
|
65
65
|
bindir: bin
|
66
66
|
cert_chain: []
|
67
|
-
date: 2018-06-
|
67
|
+
date: 2018-06-26 00:00:00.000000000 Z
|
68
68
|
dependencies: []
|
69
69
|
description: MaaS Discovery Plugin engine for Foreman
|
70
70
|
email: gsutclif@redhat.com
|
@@ -170,6 +170,7 @@ files:
|
|
170
170
|
- db/seeds.d/90_add_permissions_from_default_roles.rb
|
171
171
|
- extra/discover-host
|
172
172
|
- extra/discovery/default.json
|
173
|
+
- extra/discovery/many_ems.json
|
173
174
|
- extra/discovery/rhel-dl380-1kdisks.json
|
174
175
|
- extra/discovery/rhel-r730.json
|
175
176
|
- extra/discovery/rhel7-vlan.json
|