foreman_discovery 11.0.0 → 12.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +5 -5
  2. data/app/controllers/api/v2/discovered_hosts_controller.rb +1 -2
  3. data/app/controllers/concerns/foreman/controller/discovered_extensions.rb +1 -1
  4. data/app/controllers/discovered_hosts_controller.rb +21 -11
  5. data/app/controllers/foreman_discovery/concerns/hosts_controller_extensions.rb +1 -1
  6. data/app/helpers/discovered_hosts_helper.rb +9 -11
  7. data/app/models/discovery_rule.rb +3 -0
  8. data/app/models/host/discovered.rb +59 -19
  9. data/app/models/setting/discovered.rb +1 -0
  10. data/app/services/foreman_discovery/fact_parser.rb +6 -2
  11. data/app/services/foreman_discovery/ui_notifications/new_host.rb +3 -1
  12. data/app/views/dashboard/_discovery_widget_host_list.html.erb +1 -1
  13. data/app/views/discovered_hosts/_discovered_hosts_list.html.erb +2 -3
  14. data/app/views/discovered_hosts/_selected_hosts.html.erb +1 -1
  15. data/app/views/discovered_hosts/index.html.erb +0 -2
  16. data/app/views/discovered_hosts/multiple_auto_provision.html.erb +4 -0
  17. data/app/views/discovered_hosts/multiple_reboot.html.erb +4 -0
  18. data/app/views/discovered_hosts/show.html.erb +27 -15
  19. data/app/views/discovery_rules/_form.html.erb +9 -3
  20. data/app/views/discovery_rules/edit.html.erb +1 -1
  21. data/app/views/discovery_rules/index.html.erb +2 -2
  22. data/app/views/foreman_discovery/debian_kexec.erb +1 -1
  23. data/app/views/foreman_discovery/redhat_kexec.erb +1 -1
  24. data/config/as_deprecation_whitelist.yaml +395 -0
  25. data/config/routes.rb +7 -5
  26. data/db/migrate/20171222120314_add_constraints_on_discovery_rules_hostgroups.rb +10 -0
  27. data/db/migrate/20180412124505_add_priority_score_to_discovery_rules.rb +24 -0
  28. data/extra/discover-host +7 -5
  29. data/extra/discovery/simple-bond.json +167 -0
  30. data/lib/foreman_discovery/engine.rb +9 -3
  31. data/lib/foreman_discovery/version.rb +1 -1
  32. data/locale/ca/LC_MESSAGES/foreman_discovery.mo +0 -0
  33. data/locale/ca/foreman_discovery.edit.po +148 -221
  34. data/locale/ca/foreman_discovery.po +25 -19
  35. data/locale/de/LC_MESSAGES/foreman_discovery.mo +0 -0
  36. data/locale/de/foreman_discovery.edit.po +147 -221
  37. data/locale/de/foreman_discovery.po +26 -20
  38. data/locale/en/foreman_discovery.edit.po +106 -98
  39. data/locale/en/foreman_discovery.po +24 -18
  40. data/locale/en_GB/LC_MESSAGES/foreman_discovery.mo +0 -0
  41. data/locale/en_GB/foreman_discovery.edit.po +149 -222
  42. data/locale/en_GB/foreman_discovery.po +26 -20
  43. data/locale/es/LC_MESSAGES/foreman_discovery.mo +0 -0
  44. data/locale/es/foreman_discovery.edit.po +149 -222
  45. data/locale/es/foreman_discovery.po +26 -20
  46. data/locale/foreman_discovery.pot +115 -103
  47. data/locale/fr/LC_MESSAGES/foreman_discovery.mo +0 -0
  48. data/locale/fr/foreman_discovery.edit.po +147 -221
  49. data/locale/fr/foreman_discovery.po +26 -20
  50. data/locale/gl/foreman_discovery.edit.po +147 -220
  51. data/locale/gl/foreman_discovery.po +24 -18
  52. data/locale/it/LC_MESSAGES/foreman_discovery.mo +0 -0
  53. data/locale/it/foreman_discovery.edit.po +148 -221
  54. data/locale/it/foreman_discovery.po +25 -19
  55. data/locale/ja/LC_MESSAGES/foreman_discovery.mo +0 -0
  56. data/locale/ja/foreman_discovery.edit.po +149 -222
  57. data/locale/ja/foreman_discovery.po +26 -20
  58. data/locale/ko/LC_MESSAGES/foreman_discovery.mo +0 -0
  59. data/locale/ko/foreman_discovery.edit.po +149 -221
  60. data/locale/ko/foreman_discovery.po +26 -20
  61. data/locale/pt_BR/LC_MESSAGES/foreman_discovery.mo +0 -0
  62. data/locale/pt_BR/foreman_discovery.edit.po +149 -222
  63. data/locale/pt_BR/foreman_discovery.po +26 -20
  64. data/locale/ru/LC_MESSAGES/foreman_discovery.mo +0 -0
  65. data/locale/ru/foreman_discovery.edit.po +152 -223
  66. data/locale/ru/foreman_discovery.po +26 -20
  67. data/locale/sv_SE/LC_MESSAGES/foreman_discovery.mo +0 -0
  68. data/locale/sv_SE/foreman_discovery.edit.po +147 -220
  69. data/locale/sv_SE/foreman_discovery.po +24 -18
  70. data/locale/zh_CN/LC_MESSAGES/foreman_discovery.mo +0 -0
  71. data/locale/zh_CN/foreman_discovery.edit.po +155 -224
  72. data/locale/zh_CN/foreman_discovery.po +26 -20
  73. data/locale/zh_TW/LC_MESSAGES/foreman_discovery.mo +0 -0
  74. data/locale/zh_TW/foreman_discovery.edit.po +151 -222
  75. data/locale/zh_TW/foreman_discovery.po +26 -20
  76. data/test/functional/api/v2/discovered_hosts_controller_test.rb +2 -0
  77. data/test/functional/api/v2/discovery_rules_controller_test.rb +96 -9
  78. data/test/functional/api/v2/settings_controller_test.rb +22 -0
  79. data/test/functional/discovered_hosts_controller_test.rb +20 -21
  80. data/test/functional/discovery_rules_controller_test.rb +5 -4
  81. data/test/integration/discovered_hosts_test.rb +20 -10
  82. data/test/models/setting_test.rb +11 -0
  83. data/test/test_helper_discovery.rb +1 -0
  84. data/test/unit/discovered_extensions_test.rb +2 -13
  85. data/test/unit/discovery_rule_test.rb +87 -1
  86. data/test/unit/fact_parser_test.rb +2 -2
  87. data/test/unit/host_discovered_test.rb +60 -28
  88. data/test/unit/ui_notifications/destroy_host_test.rb +14 -4
  89. data/test/unit/ui_notifications/new_host_test.rb +8 -1
  90. metadata +22 -4
@@ -50,9 +50,6 @@ msgstr "Zugewiesene Hosts"
50
50
  msgid "Auto Provision"
51
51
  msgstr "Automatisch bereitstellen"
52
52
 
53
- msgid "Auto Provision All"
54
- msgstr "Alle automatisch bereitstellen"
55
-
56
53
  msgid "Auto provisioning"
57
54
  msgstr "Automatische Bereitstellung"
58
55
 
@@ -80,6 +77,9 @@ msgstr "Alle Fakten löschen"
80
77
  msgid "Clean all reported facts during provisioning (except discovery facts)"
81
78
  msgstr "Alle berichteten Fakten während der Bereitstellung löschen (ausgenommen Entdeckungsfakten)"
82
79
 
80
+ msgid "Collapse All"
81
+ msgstr ""
82
+
83
83
  msgid "Could not get facts from proxy %{url}: %{error}"
84
84
  msgstr "Fakten konnten nicht vom Proxy %{url} abgerufen werden: %{error}"
85
85
 
@@ -101,6 +101,9 @@ msgstr ""
101
101
  msgid "DHCP filename option (Grub2 or PXELinux by default)"
102
102
  msgstr ""
103
103
 
104
+ msgid "Delete"
105
+ msgstr ""
106
+
104
107
  msgid "Delete %s?"
105
108
  msgstr "%s löschen?"
106
109
 
@@ -110,9 +113,6 @@ msgstr "Entdeckten Host löschen"
110
113
  msgid "Delete a rule"
111
114
  msgstr "Regel löschen"
112
115
 
113
- msgid "Delete hosts"
114
- msgstr "Hosts löschen"
115
-
116
116
  msgid "Delete rule '%s'?"
117
117
  msgstr "Regel '%s' löschen?"
118
118
 
@@ -131,6 +131,9 @@ msgstr "Regel '%s' deaktivieren?"
131
131
  msgid "Discovered Hosts"
132
132
  msgstr "Entdeckte Hosts"
133
133
 
134
+ msgid "Discovered host '%{host}' has all NICs filtered out, filter: %{filter}"
135
+ msgstr ""
136
+
134
137
  msgid "Discovered host: %s"
135
138
  msgstr "Entdeckter Host: %s"
136
139
 
@@ -161,6 +164,9 @@ msgstr ""
161
164
  msgid "Discovery Rules"
162
165
  msgstr "Entdeckungsregeln"
163
166
 
167
+ msgid "Discovery fact parser does not work with non-discovery host '%{host}'"
168
+ msgstr ""
169
+
164
170
  msgid "Discovery location"
165
171
  msgstr "Entdeckungsort"
166
172
 
@@ -194,11 +200,14 @@ msgstr ""
194
200
  msgid "Disks size"
195
201
  msgstr "Festplattengröße"
196
202
 
203
+ msgid "Do not allow to discover existing managed host matching MAC of a provisioning NIC (errors out early)"
204
+ msgstr ""
205
+
197
206
  msgid "Domain will be appended automatically. A hostname based on MAC address will be used when left blank."
198
207
  msgstr ""
199
208
 
200
- msgid "Edit Discovery Rule"
201
- msgstr "Entdeckungsregel bearbeiten"
209
+ msgid "Edit %s"
210
+ msgstr ""
202
211
 
203
212
  msgid "Enable"
204
213
  msgstr "Aktivieren"
@@ -206,6 +215,9 @@ msgstr "Aktivieren"
206
215
  msgid "Enable rule '%s'?"
207
216
  msgstr "Regel '%s' aktivieren?"
208
217
 
218
+ msgid "Error on existing NIC"
219
+ msgstr ""
220
+
209
221
  msgid "Errors during auto provisioning: %s"
210
222
  msgstr "Fehler bei automatischer Bereitstellung: %s"
211
223
 
@@ -218,9 +230,6 @@ msgstr "Regeln auf einem entdeckten Host anwenden"
218
230
  msgid "Execute rules against all currently discovered hosts"
219
231
  msgstr "Regeln auf allen kürzlich entdeckten Hosts anwenden"
220
232
 
221
- msgid "Expand All"
222
- msgstr "Alle ausklappen"
223
-
224
233
  msgid "Expected discovery_fact '%s' is missing, unable to detect primary interface and set hostname"
225
234
  msgstr "Erwartetes discovery_fact '%s' fehlt, primäre Schnittstelle kann nicht gefunden und Hostname nicht eingestellt werden"
226
235
 
@@ -513,9 +522,6 @@ msgstr "Entdeckten Host bereitstellen"
513
522
  msgid "Reboot"
514
523
  msgstr "Neustart"
515
524
 
516
- msgid "Reboot All"
517
- msgstr "Alle neu starten"
518
-
519
525
  msgid "Rebooting %s"
520
526
  msgstr "%s wird neu gestartet"
521
527
 
@@ -648,15 +654,12 @@ msgstr "Typ"
648
654
  msgid "UUID to track orchestration tasks status, GET /api/orchestration/:UUID/tasks"
649
655
  msgstr "UUID zum Tracken des Status der Orchestrierungsaufgaben, GET /api/orchestration/:UUID/tasks"
650
656
 
651
- msgid "Unable to assign subnet, primary interface is missing IP address"
652
- msgstr "Subnetz kann nicht zugewiesen werden, IP-Adresse der primären Schnittstelle fehlt"
653
-
654
- msgid "Unable to detect primary interface using MAC '%{mac}' specified by discovery_fact '%{fact}'"
655
- msgstr "Entdeckung der primären Schnittstelle mittels MAC '%{mac}', festgelegt durch discovery_fact '%{fact}', nicht möglich"
656
-
657
657
  msgid "Unable to find a discovery rule, no host provided (check permissions)"
658
658
  msgstr "Keine Entdeckungsregel gefunden, kein Host bereitgestellt (Berechtigungen prüfen)"
659
659
 
660
+ msgid "Unable to find primary NIC with %{mac} specified via '%{fact}', NIC filter: %{filter}"
661
+ msgstr ""
662
+
660
663
  msgid "Unable to perform kexec on %{name} via %{url}: %{msg}"
661
664
  msgstr "kexec kann nicht auf %{name} über %{url} ausgeführt werden: %{msg}"
662
665
 
@@ -699,6 +702,9 @@ msgstr "Elemente ausgewählt. Zum Leeren abwählen"
699
702
  msgid "location ID for provisioned hosts"
700
703
  msgstr ""
701
704
 
705
+ msgid "must be present."
706
+ msgstr ""
707
+
702
708
  msgid "must start with a letter or ERB."
703
709
  msgstr "muss mit einem Buchstaben oder ERB beginnen."
704
710
 
@@ -76,51 +76,51 @@ msgstr ""
76
76
  msgid "hash containing facts for the host with minimum set of facts: discovery_bootif, macaddress_eth0, ipaddress, ipaddress_eth0, interfaces: eth0 (example in case primary interface is named eth0)"
77
77
  msgstr ""
78
78
 
79
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:117
79
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:116
80
80
  msgid "Execute rules against a discovered host"
81
81
  msgstr ""
82
82
 
83
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:123 ../app/controllers/discovered_hosts_controller.rb:150
83
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:122 ../app/controllers/discovered_hosts_controller.rb:159
84
84
  msgid "Host %{host} was provisioned with rule %{rule}"
85
85
  msgstr ""
86
86
 
87
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:126
87
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:125
88
88
  msgid "Unable to provision %{host}: %{errors}"
89
89
  msgstr ""
90
90
 
91
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:132 ../app/controllers/discovered_hosts_controller.rb:157
91
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:131 ../app/controllers/discovered_hosts_controller.rb:166
92
92
  msgid "No rule found for host %s"
93
93
  msgstr ""
94
94
 
95
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:139
95
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:138
96
96
  msgid "Execute rules against all currently discovered hosts"
97
97
  msgstr ""
98
98
 
99
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:143 ../app/controllers/discovered_hosts_controller.rb:163
99
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:142 ../app/controllers/discovered_hosts_controller.rb:172
100
100
  msgid "Errors during auto provisioning: %s"
101
101
  msgstr ""
102
102
 
103
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:146 ../app/controllers/discovered_hosts_controller.rb:166
103
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:145 ../app/controllers/discovered_hosts_controller.rb:175
104
104
  msgid "No discovered hosts to provision"
105
105
  msgstr ""
106
106
 
107
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:168
107
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:167
108
108
  msgid "%s discovered hosts were provisioned"
109
109
  msgstr ""
110
110
 
111
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:179
111
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:178
112
112
  msgid "Refreshing the facts of a discovered host"
113
113
  msgstr ""
114
114
 
115
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:188
115
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:187
116
116
  msgid "Rebooting a discovered host"
117
117
  msgstr ""
118
118
 
119
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:197
119
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:196
120
120
  msgid "Rebooting all discovered hosts"
121
121
  msgstr ""
122
122
 
123
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:208 ../app/controllers/discovered_hosts_controller.rb:125
123
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:207 ../app/controllers/discovered_hosts_controller.rb:128
124
124
  msgid "Discovered hosts are rebooting now"
125
125
  msgstr ""
126
126
 
@@ -200,95 +200,95 @@ msgstr ""
200
200
  msgid "No discovered hosts to reboot"
201
201
  msgstr ""
202
202
 
203
- #: ../app/controllers/discovered_hosts_controller.rb:61
203
+ #: ../app/controllers/discovered_hosts_controller.rb:63
204
204
  msgid "Successfully provisioned %s"
205
205
  msgstr ""
206
206
 
207
- #: ../app/controllers/discovered_hosts_controller.rb:93
207
+ #: ../app/controllers/discovered_hosts_controller.rb:96
208
208
  msgid "Facts refreshed for %s"
209
209
  msgstr ""
210
210
 
211
- #: ../app/controllers/discovered_hosts_controller.rb:95
211
+ #: ../app/controllers/discovered_hosts_controller.rb:98
212
212
  msgid "Failed to refresh facts for %s"
213
213
  msgstr ""
214
214
 
215
- #: ../app/controllers/discovered_hosts_controller.rb:98
215
+ #: ../app/controllers/discovered_hosts_controller.rb:101
216
216
  msgid "Failed to refresh facts for %{hostname} with error %{error_message}"
217
217
  msgstr ""
218
218
 
219
- #: ../app/controllers/discovered_hosts_controller.rb:105
219
+ #: ../app/controllers/discovered_hosts_controller.rb:108
220
220
  msgid "Host of type %s can not be rebooted"
221
221
  msgstr ""
222
222
 
223
- #: ../app/controllers/discovered_hosts_controller.rb:109
223
+ #: ../app/controllers/discovered_hosts_controller.rb:112
224
224
  msgid "Rebooting host %s"
225
225
  msgstr ""
226
226
 
227
- #: ../app/controllers/discovered_hosts_controller.rb:111
227
+ #: ../app/controllers/discovered_hosts_controller.rb:114
228
228
  msgid "Failed to reboot host %s"
229
229
  msgstr ""
230
230
 
231
- #: ../app/controllers/discovered_hosts_controller.rb:114
231
+ #: ../app/controllers/discovered_hosts_controller.rb:117
232
232
  msgid "Failed to reboot host %{hostname} with error %{error_message}"
233
233
  msgstr ""
234
234
 
235
- #: ../app/controllers/discovered_hosts_controller.rb:128
235
+ #: ../app/controllers/discovered_hosts_controller.rb:131
236
236
  msgid "Failed to reboot hosts with error %s"
237
237
  msgstr ""
238
238
 
239
- #: ../app/controllers/discovered_hosts_controller.rb:140
239
+ #: ../app/controllers/discovered_hosts_controller.rb:149
240
240
  msgid "Destroyed selected hosts"
241
241
  msgstr ""
242
242
 
243
- #: ../app/controllers/discovered_hosts_controller.rb:142
243
+ #: ../app/controllers/discovered_hosts_controller.rb:151
244
244
  msgid "The following hosts were not deleted: %s"
245
245
  msgstr ""
246
246
 
247
- #: ../app/controllers/discovered_hosts_controller.rb:154
247
+ #: ../app/controllers/discovered_hosts_controller.rb:163
248
248
  msgid "Failed to auto provision host %s: %s"
249
249
  msgstr ""
250
250
 
251
- #: ../app/controllers/discovered_hosts_controller.rb:182
251
+ #: ../app/controllers/discovered_hosts_controller.rb:191
252
252
  msgid "Discovered hosts are provisioning now"
253
253
  msgstr ""
254
254
 
255
- #: ../app/controllers/discovered_hosts_controller.rb:214
255
+ #: ../app/controllers/discovered_hosts_controller.rb:223
256
256
  msgid "Highlights"
257
257
  msgstr ""
258
258
 
259
- #: ../app/controllers/discovered_hosts_controller.rb:214
259
+ #: ../app/controllers/discovered_hosts_controller.rb:223
260
260
  msgid "Storage"
261
261
  msgstr ""
262
262
 
263
- #: ../app/controllers/discovered_hosts_controller.rb:214
263
+ #: ../app/controllers/discovered_hosts_controller.rb:223
264
264
  msgid "Hardware"
265
265
  msgstr ""
266
266
 
267
- #: ../app/controllers/discovered_hosts_controller.rb:214
267
+ #: ../app/controllers/discovered_hosts_controller.rb:223
268
268
  msgid "Network"
269
269
  msgstr ""
270
270
 
271
- #: ../app/controllers/discovered_hosts_controller.rb:214
271
+ #: ../app/controllers/discovered_hosts_controller.rb:223
272
272
  msgid "Software"
273
273
  msgstr ""
274
274
 
275
- #: ../app/controllers/discovered_hosts_controller.rb:214
275
+ #: ../app/controllers/discovered_hosts_controller.rb:223
276
276
  msgid "IPMI"
277
277
  msgstr ""
278
278
 
279
- #: ../app/controllers/discovered_hosts_controller.rb:214
279
+ #: ../app/controllers/discovered_hosts_controller.rb:223
280
280
  msgid "Miscellaneous"
281
281
  msgstr ""
282
282
 
283
- #: ../app/controllers/discovered_hosts_controller.rb:291
283
+ #: ../app/controllers/discovered_hosts_controller.rb:301
284
284
  msgid "No hosts were found with that id or name"
285
285
  msgstr ""
286
286
 
287
- #: ../app/controllers/discovered_hosts_controller.rb:295
287
+ #: ../app/controllers/discovered_hosts_controller.rb:305
288
288
  msgid "No hosts selected"
289
289
  msgstr ""
290
290
 
291
- #: ../app/controllers/discovered_hosts_controller.rb:301
291
+ #: ../app/controllers/discovered_hosts_controller.rb:311
292
292
  msgid "Something went wrong while selecting hosts - %s"
293
293
  msgstr ""
294
294
 
@@ -304,7 +304,7 @@ msgstr ""
304
304
  msgid "%s ago"
305
305
  msgstr ""
306
306
 
307
- #: ../app/helpers/discovered_hosts_helper.rb:14 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:46
307
+ #: ../app/helpers/discovered_hosts_helper.rb:14 ../app/helpers/discovered_hosts_helper.rb:29 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:46
308
308
  msgid "Auto Provision"
309
309
  msgstr ""
310
310
 
@@ -312,7 +312,7 @@ msgstr ""
312
312
  msgid "Refresh facts"
313
313
  msgstr ""
314
314
 
315
- #: ../app/helpers/discovered_hosts_helper.rb:16 ../app/models/setting/discovered.rb:23 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:48
315
+ #: ../app/helpers/discovered_hosts_helper.rb:16 ../app/helpers/discovered_hosts_helper.rb:30 ../app/models/setting/discovered.rb:23 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:48
316
316
  msgid "Reboot"
317
317
  msgstr ""
318
318
 
@@ -320,55 +320,51 @@ msgstr ""
320
320
  msgid "Back"
321
321
  msgstr ""
322
322
 
323
- #: ../app/helpers/discovered_hosts_helper.rb:21 ../app/helpers/discovered_hosts_helper.rb:37
323
+ #: ../app/helpers/discovered_hosts_helper.rb:21 ../app/helpers/discovered_hosts_helper.rb:35
324
324
  msgid "Select Action"
325
325
  msgstr ""
326
326
 
327
- #: ../app/helpers/discovered_hosts_helper.rb:23
328
- msgid "Expand All"
329
- msgstr ""
330
-
331
- #: ../app/helpers/discovered_hosts_helper.rb:27 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:49
327
+ #: ../app/helpers/discovered_hosts_helper.rb:23 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:49
332
328
  msgid "Delete %s?"
333
329
  msgstr ""
334
330
 
335
- #: ../app/helpers/discovered_hosts_helper.rb:33
336
- msgid "Delete hosts"
337
- msgstr ""
338
-
339
- #: ../app/helpers/discovered_hosts_helper.rb:34
331
+ #: ../app/helpers/discovered_hosts_helper.rb:31
340
332
  msgid "Assign Organization"
341
333
  msgstr ""
342
334
 
343
- #: ../app/helpers/discovered_hosts_helper.rb:35
335
+ #: ../app/helpers/discovered_hosts_helper.rb:32
344
336
  msgid "Assign Location"
345
337
  msgstr ""
346
338
 
347
- #: ../app/helpers/discovered_hosts_helper.rb:39
339
+ #: ../app/helpers/discovered_hosts_helper.rb:33
340
+ msgid "Delete"
341
+ msgstr ""
342
+
343
+ #: ../app/helpers/discovered_hosts_helper.rb:37
348
344
  msgid "%s - The following hosts are about to be changed"
349
345
  msgstr ""
350
346
 
351
- #: ../app/helpers/discovered_hosts_helper.rb:48 ../app/views/dashboard/_discovery_widget_host.html.erb:2
347
+ #: ../app/helpers/discovered_hosts_helper.rb:46 ../app/views/dashboard/_discovery_widget_host.html.erb:2
352
348
  msgid "N/A"
353
349
  msgstr ""
354
350
 
355
- #: ../app/helpers/discovered_hosts_helper.rb:60
351
+ #: ../app/helpers/discovered_hosts_helper.rb:58
356
352
  msgid "New in the last 24 hours"
357
353
  msgstr ""
358
354
 
359
- #: ../app/helpers/discovered_hosts_helper.rb:64
355
+ #: ../app/helpers/discovered_hosts_helper.rb:62
360
356
  msgid "Not reported in more than 7 days"
361
357
  msgstr ""
362
358
 
363
- #: ../app/helpers/discovered_hosts_helper.rb:68
359
+ #: ../app/helpers/discovered_hosts_helper.rb:66
364
360
  msgid "Reported in the last 7 days"
365
361
  msgstr ""
366
362
 
367
- #: ../app/helpers/discovered_hosts_helper.rb:92
363
+ #: ../app/helpers/discovered_hosts_helper.rb:90
368
364
  msgid "Provision"
369
365
  msgstr ""
370
366
 
371
- #: ../app/helpers/discovery_rules_helper.rb:26 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:2 ../app/views/discovered_hosts/welcome.html.erb:1 ../app/views/discovered_hosts/welcome.html.erb:6 ../lib/foreman_discovery/engine.rb:167
367
+ #: ../app/helpers/discovery_rules_helper.rb:26 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:2 ../app/views/discovered_hosts/welcome.html.erb:1 ../app/views/discovered_hosts/welcome.html.erb:6 ../lib/foreman_discovery/engine.rb:173
372
368
  msgid "Discovered Hosts"
373
369
  msgstr ""
374
370
 
@@ -404,59 +400,59 @@ msgstr ""
404
400
  msgid "Discovered hosts summary"
405
401
  msgstr ""
406
402
 
407
- #: ../app/models/discovery_rule.rb:9
403
+ #: ../app/models/discovery_rule.rb:10
408
404
  msgid "can't contain white spaces."
409
405
  msgstr ""
410
406
 
411
- #: ../app/models/discovery_rule.rb:11
407
+ #: ../app/models/discovery_rule.rb:12
412
408
  msgid "must start with a letter or ERB."
413
409
  msgstr ""
414
410
 
415
- #: ../app/models/discovery_rule.rb:45
411
+ #: ../app/models/discovery_rule.rb:15
412
+ msgid "must be present."
413
+ msgstr ""
414
+
415
+ #: ../app/models/discovery_rule.rb:48
416
416
  msgid "Host group organization %s must also be associated to the discovery rule"
417
417
  msgid_plural "Host group organizations %s must also be associated to the discovery rule"
418
418
  msgstr[0] ""
419
419
  msgstr[1] ""
420
420
 
421
- #: ../app/models/discovery_rule.rb:51
421
+ #: ../app/models/discovery_rule.rb:54
422
422
  msgid "Host group location %s must also be associated to the discovery rule"
423
423
  msgid_plural "Host group locations %s must also be associated to the discovery rule"
424
424
  msgstr[0] ""
425
425
  msgstr[1] ""
426
426
 
427
- #: ../app/models/host/discovered.rb:43
427
+ #: ../app/models/host/discovered.rb:51
428
428
  msgid "Invalid facts, must be a Hash"
429
429
  msgstr ""
430
430
 
431
- #: ../app/models/host/discovered.rb:48
431
+ #: ../app/models/host/discovered.rb:56
432
432
  msgid "Expected discovery_fact '%s' is missing, unable to detect primary interface and set hostname"
433
433
  msgstr ""
434
434
 
435
- #: ../app/models/host/discovered.rb:55
435
+ #: ../app/models/host/discovered.rb:63
436
436
  msgid "Invalid facts: hash does not contain a valid value for any of the facts in the discovery_hostname setting: %s"
437
437
  msgstr ""
438
438
 
439
- #: ../app/models/host/discovered.rb:72
439
+ #: ../app/models/host/discovered.rb:89
440
440
  msgid "Facts could not be imported"
441
441
  msgstr ""
442
442
 
443
- #: ../app/models/host/discovered.rb:139
444
- msgid "Unable to assign subnet, primary interface is missing IP address"
445
- msgstr ""
446
-
447
- #: ../app/models/host/discovered.rb:196
443
+ #: ../app/models/host/discovered.rb:212
448
444
  msgid "Could not get facts from proxy %{url}: %{error}"
449
445
  msgstr ""
450
446
 
451
- #: ../app/models/host/discovered.rb:204
447
+ #: ../app/models/host/discovered.rb:220
452
448
  msgid "Unable to reboot %{name} via %{url}: %{msg}"
453
449
  msgstr ""
454
450
 
455
- #: ../app/models/host/discovered.rb:212
451
+ #: ../app/models/host/discovered.rb:228
456
452
  msgid "Unable to perform kexec on %{name} via %{url}: %{msg}"
457
453
  msgstr ""
458
454
 
459
- #: ../app/models/host/discovered.rb:231
455
+ #: ../app/models/host/discovered.rb:247
460
456
  msgid "Invalid hostname: Could not normalize the hostname"
461
457
  msgstr ""
462
458
 
@@ -624,24 +620,40 @@ msgstr ""
624
620
  msgid "Force DNS"
625
621
  msgstr ""
626
622
 
627
- #: ../app/models/setting/discovered.rb:43
623
+ #: ../app/models/setting/discovered.rb:37
624
+ msgid "Do not allow to discover existing managed host matching MAC of a provisioning NIC (errors out early)"
625
+ msgstr ""
626
+
627
+ #: ../app/models/setting/discovered.rb:37
628
+ msgid "Error on existing NIC"
629
+ msgstr ""
630
+
631
+ #: ../app/models/setting/discovered.rb:44
628
632
  msgid "The default location to place discovered hosts in"
629
633
  msgstr ""
630
634
 
631
- #: ../app/models/setting/discovered.rb:43
635
+ #: ../app/models/setting/discovered.rb:44
632
636
  msgid "Discovery location"
633
637
  msgstr ""
634
638
 
635
- #: ../app/models/setting/discovered.rb:51
639
+ #: ../app/models/setting/discovered.rb:52
636
640
  msgid "The default organization to place discovered hosts in"
637
641
  msgstr ""
638
642
 
639
- #: ../app/models/setting/discovered.rb:51
643
+ #: ../app/models/setting/discovered.rb:52
640
644
  msgid "Discovery organization"
641
645
  msgstr ""
642
646
 
643
- #: ../app/services/foreman_discovery/fact_parser.rb:9
644
- msgid "Unable to detect primary interface using MAC '%{mac}' specified by discovery_fact '%{fact}'"
647
+ #: ../app/services/foreman_discovery/fact_parser.rb:4
648
+ msgid "Discovery fact parser does not work with non-discovery host '%{host}'"
649
+ msgstr ""
650
+
651
+ #: ../app/services/foreman_discovery/fact_parser.rb:6
652
+ msgid "Discovered host '%{host}' has all NICs filtered out, filter: %{filter}"
653
+ msgstr ""
654
+
655
+ #: ../app/services/foreman_discovery/fact_parser.rb:12
656
+ msgid "Unable to find primary NIC with %{mac} specified via '%{fact}', NIC filter: %{filter}"
645
657
  msgstr ""
646
658
 
647
659
  #: ../app/services/foreman_discovery/node_api/node_resource.rb:75
@@ -736,14 +748,6 @@ msgstr ""
736
748
  msgid "Provision %s"
737
749
  msgstr ""
738
750
 
739
- #: ../app/views/discovered_hosts/index.html.erb:2
740
- msgid "Reboot All"
741
- msgstr ""
742
-
743
- #: ../app/views/discovered_hosts/index.html.erb:3
744
- msgid "Auto Provision All"
745
- msgstr ""
746
-
747
751
  #: ../app/views/discovered_hosts/multiple_destroy.html.erb:3
748
752
  msgid "This might take a while, as all hosts, facts and reports will be destroyed as well"
749
753
  msgstr ""
@@ -760,26 +764,30 @@ msgstr ""
760
764
  msgid "Discovered host: %s"
761
765
  msgstr ""
762
766
 
763
- #: ../app/views/discovered_hosts/show.html.erb:34
767
+ #: ../app/views/discovered_hosts/show.html.erb:37
764
768
  msgid "Interfaces"
765
769
  msgstr ""
766
770
 
767
- #: ../app/views/discovered_hosts/show.html.erb:41
771
+ #: ../app/views/discovered_hosts/show.html.erb:44
768
772
  msgid "Type"
769
773
  msgstr ""
770
774
 
771
- #: ../app/views/discovered_hosts/show.html.erb:42
775
+ #: ../app/views/discovered_hosts/show.html.erb:45
772
776
  msgid "Identifier"
773
777
  msgstr ""
774
778
 
775
- #: ../app/views/discovered_hosts/show.html.erb:43
779
+ #: ../app/views/discovered_hosts/show.html.erb:46
776
780
  msgid "MAC address"
777
781
  msgstr ""
778
782
 
779
- #: ../app/views/discovered_hosts/show.html.erb:44
783
+ #: ../app/views/discovered_hosts/show.html.erb:47
780
784
  msgid "IP address"
781
785
  msgstr ""
782
786
 
787
+ #: ../app/views/discovered_hosts/show.html.erb:66
788
+ msgid "Collapse All"
789
+ msgstr ""
790
+
783
791
  #: ../app/views/discovered_hosts/welcome.html.erb:7
784
792
  msgid "No discovered hosts found in this context."
785
793
  msgstr ""
@@ -881,7 +889,7 @@ msgid "Hostnames must not start with numbers. A good approach is to use unique i
881
889
  msgstr ""
882
890
 
883
891
  #: ../app/views/discovery_rules/edit.html.erb:1
884
- msgid "Edit Discovery Rule"
892
+ msgid "Edit %s"
885
893
  msgstr ""
886
894
 
887
895
  #: ../app/views/discovery_rules/index.html.erb:1
@@ -936,26 +944,26 @@ msgstr ""
936
944
  msgid "Details"
937
945
  msgstr ""
938
946
 
939
- #: ../lib/foreman_discovery/engine.rb:152
947
+ #: ../lib/foreman_discovery/engine.rb:158
940
948
  msgid "Discovered hosts"
941
949
  msgstr ""
942
950
 
943
- #: ../lib/foreman_discovery/engine.rb:157
951
+ #: ../lib/foreman_discovery/engine.rb:163
944
952
  msgid "Discovery rules"
945
953
  msgstr ""
946
954
 
947
- #: ../lib/foreman_discovery/engine.rb:173
955
+ #: ../lib/foreman_discovery/engine.rb:179
948
956
  msgid "Discovery Kexec template"
949
957
  msgstr ""
950
958
 
951
- #: ../lib/foreman_discovery/engine.rb:182
959
+ #: ../lib/foreman_discovery/engine.rb:188
952
960
  msgid "Discovery Proxy"
953
961
  msgstr ""
954
962
 
955
- #: ../lib/foreman_discovery/engine.rb:183
963
+ #: ../lib/foreman_discovery/engine.rb:189
956
964
  msgid "Discovery Proxy to use within this subnet for managing connection to discovered hosts"
957
965
  msgstr ""
958
966
 
959
- #: ../lib/foreman_discovery/engine.rb:184
967
+ #: ../lib/foreman_discovery/engine.rb:190
960
968
  msgid "ID of Discovery Proxy to use within this subnet for managing connection to discovered hosts"
961
969
  msgstr ""