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
@@ -48,9 +48,6 @@ msgstr "Hosts asociados"
48
48
  msgid "Auto Provision"
49
49
  msgstr "Autoaprovisionamiento"
50
50
 
51
- msgid "Auto Provision All"
52
- msgstr "Autoaprovisionar todo"
53
-
54
51
  msgid "Auto provisioning"
55
52
  msgstr "Autoaprovisionamiento"
56
53
 
@@ -78,6 +75,9 @@ msgstr "Eliminar todos los eventos"
78
75
  msgid "Clean all reported facts during provisioning (except discovery facts)"
79
76
  msgstr "Eliminar todos los eventos informados durante el aprovisionamiento (excepto los eventos de detección)"
80
77
 
78
+ msgid "Collapse All"
79
+ msgstr ""
80
+
81
81
  msgid "Could not get facts from proxy %{url}: %{error}"
82
82
  msgstr "No pudieron obtenerse los eventos del proxy %{url}: %{error}"
83
83
 
@@ -99,6 +99,9 @@ msgstr ""
99
99
  msgid "DHCP filename option (Grub2 or PXELinux by default)"
100
100
  msgstr "Opción de nombre de archivo DHCP (Grub2 o PXELinux en forma predeterminada)"
101
101
 
102
+ msgid "Delete"
103
+ msgstr ""
104
+
102
105
  msgid "Delete %s?"
103
106
  msgstr "¿Borrar %s?"
104
107
 
@@ -108,9 +111,6 @@ msgstr "Eliminar un host detectado"
108
111
  msgid "Delete a rule"
109
112
  msgstr "Eliminar una regla"
110
113
 
111
- msgid "Delete hosts"
112
- msgstr "Borrar Equipos"
113
-
114
114
  msgid "Delete rule '%s'?"
115
115
  msgstr "¿Eliminar regla '%s'?"
116
116
 
@@ -129,6 +129,9 @@ msgstr "¿Deshabilitar regla '%s'?"
129
129
  msgid "Discovered Hosts"
130
130
  msgstr "Hosts detectados"
131
131
 
132
+ msgid "Discovered host '%{host}' has all NICs filtered out, filter: %{filter}"
133
+ msgstr ""
134
+
132
135
  msgid "Discovered host: %s"
133
136
  msgstr "Equipo descubierto: %s"
134
137
 
@@ -159,6 +162,9 @@ msgstr "Proxy de detección para usar en esta subred para administrar la conexi
159
162
  msgid "Discovery Rules"
160
163
  msgstr "Reglas de detección"
161
164
 
165
+ msgid "Discovery fact parser does not work with non-discovery host '%{host}'"
166
+ msgstr ""
167
+
162
168
  msgid "Discovery location"
163
169
  msgstr "Ubicación de la detección"
164
170
 
@@ -192,11 +198,14 @@ msgstr "Tamaño de los discos"
192
198
  msgid "Disks size"
193
199
  msgstr "Tamaño de discos"
194
200
 
201
+ msgid "Do not allow to discover existing managed host matching MAC of a provisioning NIC (errors out early)"
202
+ msgstr ""
203
+
195
204
  msgid "Domain will be appended automatically. A hostname based on MAC address will be used when left blank."
196
205
  msgstr "El dominio se agregará en forma automática. Se utilizará un nombre de host basado en la dirección MAC cuando quede en blanco."
197
206
 
198
- msgid "Edit Discovery Rule"
199
- msgstr "Editar regla de detección"
207
+ msgid "Edit %s"
208
+ msgstr ""
200
209
 
201
210
  msgid "Enable"
202
211
  msgstr "Activar"
@@ -204,6 +213,9 @@ msgstr "Activar"
204
213
  msgid "Enable rule '%s'?"
205
214
  msgstr "¿Habilitar regla '%s'?"
206
215
 
216
+ msgid "Error on existing NIC"
217
+ msgstr ""
218
+
207
219
  msgid "Errors during auto provisioning: %s"
208
220
  msgstr "Errores durante el autoaprovisionamiento: %s"
209
221
 
@@ -216,9 +228,6 @@ msgstr "Ejecutar reglas en función de un host detectado"
216
228
  msgid "Execute rules against all currently discovered hosts"
217
229
  msgstr "Ejecutar reglas contra todos los hosts detectados actualmente"
218
230
 
219
- msgid "Expand All"
220
- msgstr "Expandir todo"
221
-
222
231
  msgid "Expected discovery_fact '%s' is missing, unable to detect primary interface and set hostname"
223
232
  msgstr "Falta el discovery_fact '%s' esperado. No es posible detectar la interfaz principal y definir el nombre de host"
224
233
 
@@ -511,9 +520,6 @@ msgstr "Aprovisionar un host detectado"
511
520
  msgid "Reboot"
512
521
  msgstr "Reiniciar"
513
522
 
514
- msgid "Reboot All"
515
- msgstr "Reiniciar todo"
516
-
517
523
  msgid "Rebooting %s"
518
524
  msgstr "Reiniciando %s"
519
525
 
@@ -646,15 +652,12 @@ msgstr "Tipo"
646
652
  msgid "UUID to track orchestration tasks status, GET /api/orchestration/:UUID/tasks"
647
653
  msgstr "UUID para seguir el estado de la tarea de orquestación, GET /api/orchestration/:UUID/tasks"
648
654
 
649
- msgid "Unable to assign subnet, primary interface is missing IP address"
650
- msgstr "No es posible asignar una subred. Falta la dirección IP de la interfaz principal"
651
-
652
- msgid "Unable to detect primary interface using MAC '%{mac}' specified by discovery_fact '%{fact}'"
653
- msgstr "No es posible detectar la interfaz primaria mediante el uso de MAC '%{mac}' especificado por discovery_fact '%{fact}'"
654
-
655
655
  msgid "Unable to find a discovery rule, no host provided (check permissions)"
656
656
  msgstr "No es posible buscar una regla de detección, no se ha aprovisionado un host (verificar permisos)"
657
657
 
658
+ msgid "Unable to find primary NIC with %{mac} specified via '%{fact}', NIC filter: %{filter}"
659
+ msgstr ""
660
+
658
661
  msgid "Unable to perform kexec on %{name} via %{url}: %{msg}"
659
662
  msgstr "No es posible ejecutar kexec en %{name} a través de %{url}: %{msg}"
660
663
 
@@ -697,6 +700,9 @@ msgstr "objetos seleccionados. Desactivar para limpiar"
697
700
  msgid "location ID for provisioned hosts"
698
701
  msgstr ""
699
702
 
703
+ msgid "must be present."
704
+ msgstr ""
705
+
700
706
  msgid "must start with a letter or ERB."
701
707
  msgstr "debe comenzar con una letra o ERB."
702
708
 
@@ -8,8 +8,8 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: foreman_discovery 1.0.0\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2018-01-30 13:01+0100\n"
12
- "PO-Revision-Date: 2018-01-30 13:01+0100\n"
11
+ "POT-Creation-Date: 2018-06-21 12:40+0200\n"
12
+ "PO-Revision-Date: 2018-06-21 12:40+0200\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -92,56 +92,56 @@ msgid ""
92
92
  "e primary interface is named eth0)"
93
93
  msgstr ""
94
94
 
95
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:117
95
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:116
96
96
  msgid "Execute rules against a discovered host"
97
97
  msgstr ""
98
98
 
99
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:123
100
- #: ../app/controllers/discovered_hosts_controller.rb:150
99
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:122
100
+ #: ../app/controllers/discovered_hosts_controller.rb:159
101
101
  msgid "Host %{host} was provisioned with rule %{rule}"
102
102
  msgstr ""
103
103
 
104
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:126
104
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:125
105
105
  msgid "Unable to provision %{host}: %{errors}"
106
106
  msgstr ""
107
107
 
108
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:132
109
- #: ../app/controllers/discovered_hosts_controller.rb:157
108
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:131
109
+ #: ../app/controllers/discovered_hosts_controller.rb:166
110
110
  msgid "No rule found for host %s"
111
111
  msgstr ""
112
112
 
113
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:139
113
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:138
114
114
  msgid "Execute rules against all currently discovered hosts"
115
115
  msgstr ""
116
116
 
117
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:143
118
- #: ../app/controllers/discovered_hosts_controller.rb:163
117
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:142
118
+ #: ../app/controllers/discovered_hosts_controller.rb:172
119
119
  msgid "Errors during auto provisioning: %s"
120
120
  msgstr ""
121
121
 
122
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:146
123
- #: ../app/controllers/discovered_hosts_controller.rb:166
122
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:145
123
+ #: ../app/controllers/discovered_hosts_controller.rb:175
124
124
  msgid "No discovered hosts to provision"
125
125
  msgstr ""
126
126
 
127
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:168
127
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:167
128
128
  msgid "%s discovered hosts were provisioned"
129
129
  msgstr ""
130
130
 
131
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:179
131
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:178
132
132
  msgid "Refreshing the facts of a discovered host"
133
133
  msgstr ""
134
134
 
135
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:188
135
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:187
136
136
  msgid "Rebooting a discovered host"
137
137
  msgstr ""
138
138
 
139
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:197
139
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:196
140
140
  msgid "Rebooting all discovered hosts"
141
141
  msgstr ""
142
142
 
143
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:208
144
- #: ../app/controllers/discovered_hosts_controller.rb:125
143
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:207
144
+ #: ../app/controllers/discovered_hosts_controller.rb:128
145
145
  msgid "Discovered hosts are rebooting now"
146
146
  msgstr ""
147
147
 
@@ -221,95 +221,95 @@ msgstr ""
221
221
  msgid "No discovered hosts to reboot"
222
222
  msgstr ""
223
223
 
224
- #: ../app/controllers/discovered_hosts_controller.rb:61
224
+ #: ../app/controllers/discovered_hosts_controller.rb:63
225
225
  msgid "Successfully provisioned %s"
226
226
  msgstr ""
227
227
 
228
- #: ../app/controllers/discovered_hosts_controller.rb:93
228
+ #: ../app/controllers/discovered_hosts_controller.rb:96
229
229
  msgid "Facts refreshed for %s"
230
230
  msgstr ""
231
231
 
232
- #: ../app/controllers/discovered_hosts_controller.rb:95
232
+ #: ../app/controllers/discovered_hosts_controller.rb:98
233
233
  msgid "Failed to refresh facts for %s"
234
234
  msgstr ""
235
235
 
236
- #: ../app/controllers/discovered_hosts_controller.rb:98
236
+ #: ../app/controllers/discovered_hosts_controller.rb:101
237
237
  msgid "Failed to refresh facts for %{hostname} with error %{error_message}"
238
238
  msgstr ""
239
239
 
240
- #: ../app/controllers/discovered_hosts_controller.rb:105
240
+ #: ../app/controllers/discovered_hosts_controller.rb:108
241
241
  msgid "Host of type %s can not be rebooted"
242
242
  msgstr ""
243
243
 
244
- #: ../app/controllers/discovered_hosts_controller.rb:109
244
+ #: ../app/controllers/discovered_hosts_controller.rb:112
245
245
  msgid "Rebooting host %s"
246
246
  msgstr ""
247
247
 
248
- #: ../app/controllers/discovered_hosts_controller.rb:111
248
+ #: ../app/controllers/discovered_hosts_controller.rb:114
249
249
  msgid "Failed to reboot host %s"
250
250
  msgstr ""
251
251
 
252
- #: ../app/controllers/discovered_hosts_controller.rb:114
252
+ #: ../app/controllers/discovered_hosts_controller.rb:117
253
253
  msgid "Failed to reboot host %{hostname} with error %{error_message}"
254
254
  msgstr ""
255
255
 
256
- #: ../app/controllers/discovered_hosts_controller.rb:128
256
+ #: ../app/controllers/discovered_hosts_controller.rb:131
257
257
  msgid "Failed to reboot hosts with error %s"
258
258
  msgstr ""
259
259
 
260
- #: ../app/controllers/discovered_hosts_controller.rb:140
260
+ #: ../app/controllers/discovered_hosts_controller.rb:149
261
261
  msgid "Destroyed selected hosts"
262
262
  msgstr ""
263
263
 
264
- #: ../app/controllers/discovered_hosts_controller.rb:142
264
+ #: ../app/controllers/discovered_hosts_controller.rb:151
265
265
  msgid "The following hosts were not deleted: %s"
266
266
  msgstr ""
267
267
 
268
- #: ../app/controllers/discovered_hosts_controller.rb:154
268
+ #: ../app/controllers/discovered_hosts_controller.rb:163
269
269
  msgid "Failed to auto provision host %s: %s"
270
270
  msgstr ""
271
271
 
272
- #: ../app/controllers/discovered_hosts_controller.rb:182
272
+ #: ../app/controllers/discovered_hosts_controller.rb:191
273
273
  msgid "Discovered hosts are provisioning now"
274
274
  msgstr ""
275
275
 
276
- #: ../app/controllers/discovered_hosts_controller.rb:214
276
+ #: ../app/controllers/discovered_hosts_controller.rb:223
277
277
  msgid "Highlights"
278
278
  msgstr ""
279
279
 
280
- #: ../app/controllers/discovered_hosts_controller.rb:214
280
+ #: ../app/controllers/discovered_hosts_controller.rb:223
281
281
  msgid "Storage"
282
282
  msgstr ""
283
283
 
284
- #: ../app/controllers/discovered_hosts_controller.rb:214
284
+ #: ../app/controllers/discovered_hosts_controller.rb:223
285
285
  msgid "Hardware"
286
286
  msgstr ""
287
287
 
288
- #: ../app/controllers/discovered_hosts_controller.rb:214
288
+ #: ../app/controllers/discovered_hosts_controller.rb:223
289
289
  msgid "Network"
290
290
  msgstr ""
291
291
 
292
- #: ../app/controllers/discovered_hosts_controller.rb:214
292
+ #: ../app/controllers/discovered_hosts_controller.rb:223
293
293
  msgid "Software"
294
294
  msgstr ""
295
295
 
296
- #: ../app/controllers/discovered_hosts_controller.rb:214
296
+ #: ../app/controllers/discovered_hosts_controller.rb:223
297
297
  msgid "IPMI"
298
298
  msgstr ""
299
299
 
300
- #: ../app/controllers/discovered_hosts_controller.rb:214
300
+ #: ../app/controllers/discovered_hosts_controller.rb:223
301
301
  msgid "Miscellaneous"
302
302
  msgstr ""
303
303
 
304
- #: ../app/controllers/discovered_hosts_controller.rb:291
304
+ #: ../app/controllers/discovered_hosts_controller.rb:301
305
305
  msgid "No hosts were found with that id or name"
306
306
  msgstr ""
307
307
 
308
- #: ../app/controllers/discovered_hosts_controller.rb:295
308
+ #: ../app/controllers/discovered_hosts_controller.rb:305
309
309
  msgid "No hosts selected"
310
310
  msgstr ""
311
311
 
312
- #: ../app/controllers/discovered_hosts_controller.rb:301
312
+ #: ../app/controllers/discovered_hosts_controller.rb:311
313
313
  msgid "Something went wrong while selecting hosts - %s"
314
314
  msgstr ""
315
315
 
@@ -326,6 +326,7 @@ msgid "%s ago"
326
326
  msgstr ""
327
327
 
328
328
  #: ../app/helpers/discovered_hosts_helper.rb:14
329
+ #: ../app/helpers/discovered_hosts_helper.rb:29
329
330
  #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:46
330
331
  msgid "Auto Provision"
331
332
  msgstr ""
@@ -336,6 +337,7 @@ msgid "Refresh facts"
336
337
  msgstr ""
337
338
 
338
339
  #: ../app/helpers/discovered_hosts_helper.rb:16
340
+ #: ../app/helpers/discovered_hosts_helper.rb:30
339
341
  #: ../app/models/setting/discovered.rb:23
340
342
  #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:48
341
343
  msgid "Reboot"
@@ -346,53 +348,49 @@ msgid "Back"
346
348
  msgstr ""
347
349
 
348
350
  #: ../app/helpers/discovered_hosts_helper.rb:21
349
- #: ../app/helpers/discovered_hosts_helper.rb:37
351
+ #: ../app/helpers/discovered_hosts_helper.rb:35
350
352
  msgid "Select Action"
351
353
  msgstr ""
352
354
 
353
355
  #: ../app/helpers/discovered_hosts_helper.rb:23
354
- msgid "Expand All"
355
- msgstr ""
356
-
357
- #: ../app/helpers/discovered_hosts_helper.rb:27
358
356
  #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:49
359
357
  msgid "Delete %s?"
360
358
  msgstr ""
361
359
 
362
- #: ../app/helpers/discovered_hosts_helper.rb:33
363
- msgid "Delete hosts"
364
- msgstr ""
365
-
366
- #: ../app/helpers/discovered_hosts_helper.rb:34
360
+ #: ../app/helpers/discovered_hosts_helper.rb:31
367
361
  msgid "Assign Organization"
368
362
  msgstr ""
369
363
 
370
- #: ../app/helpers/discovered_hosts_helper.rb:35
364
+ #: ../app/helpers/discovered_hosts_helper.rb:32
371
365
  msgid "Assign Location"
372
366
  msgstr ""
373
367
 
374
- #: ../app/helpers/discovered_hosts_helper.rb:39
368
+ #: ../app/helpers/discovered_hosts_helper.rb:33
369
+ msgid "Delete"
370
+ msgstr ""
371
+
372
+ #: ../app/helpers/discovered_hosts_helper.rb:37
375
373
  msgid "%s - The following hosts are about to be changed"
376
374
  msgstr ""
377
375
 
378
- #: ../app/helpers/discovered_hosts_helper.rb:48
376
+ #: ../app/helpers/discovered_hosts_helper.rb:46
379
377
  #: ../app/views/dashboard/_discovery_widget_host.html.erb:2
380
378
  msgid "N/A"
381
379
  msgstr ""
382
380
 
383
- #: ../app/helpers/discovered_hosts_helper.rb:60
381
+ #: ../app/helpers/discovered_hosts_helper.rb:58
384
382
  msgid "New in the last 24 hours"
385
383
  msgstr ""
386
384
 
387
- #: ../app/helpers/discovered_hosts_helper.rb:64
385
+ #: ../app/helpers/discovered_hosts_helper.rb:62
388
386
  msgid "Not reported in more than 7 days"
389
387
  msgstr ""
390
388
 
391
- #: ../app/helpers/discovered_hosts_helper.rb:68
389
+ #: ../app/helpers/discovered_hosts_helper.rb:66
392
390
  msgid "Reported in the last 7 days"
393
391
  msgstr ""
394
392
 
395
- #: ../app/helpers/discovered_hosts_helper.rb:92
393
+ #: ../app/helpers/discovered_hosts_helper.rb:90
396
394
  msgid "Provision"
397
395
  msgstr ""
398
396
 
@@ -400,7 +398,7 @@ msgstr ""
400
398
  #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:2
401
399
  #: ../app/views/discovered_hosts/welcome.html.erb:1
402
400
  #: ../app/views/discovered_hosts/welcome.html.erb:6
403
- #: ../lib/foreman_discovery/engine.rb:167
401
+ #: ../lib/foreman_discovery/engine.rb:173
404
402
  msgid "Discovered Hosts"
405
403
  msgstr ""
406
404
 
@@ -436,63 +434,63 @@ msgstr ""
436
434
  msgid "Discovered hosts summary"
437
435
  msgstr ""
438
436
 
439
- #: ../app/models/discovery_rule.rb:9
437
+ #: ../app/models/discovery_rule.rb:10
440
438
  msgid "can't contain white spaces."
441
439
  msgstr ""
442
440
 
443
- #: ../app/models/discovery_rule.rb:11
441
+ #: ../app/models/discovery_rule.rb:12
444
442
  msgid "must start with a letter or ERB."
445
443
  msgstr ""
446
444
 
447
- #: ../app/models/discovery_rule.rb:45
445
+ #: ../app/models/discovery_rule.rb:15
446
+ msgid "must be present."
447
+ msgstr ""
448
+
449
+ #: ../app/models/discovery_rule.rb:48
448
450
  msgid "Host group organization %s must also be associated to the discovery rule"
449
451
  msgid_plural "Host group organizations %s must also be associated to the discovery rule"
450
452
  msgstr[0] ""
451
453
  msgstr[1] ""
452
454
 
453
- #: ../app/models/discovery_rule.rb:51
455
+ #: ../app/models/discovery_rule.rb:54
454
456
  msgid "Host group location %s must also be associated to the discovery rule"
455
457
  msgid_plural "Host group locations %s must also be associated to the discovery rule"
456
458
  msgstr[0] ""
457
459
  msgstr[1] ""
458
460
 
459
- #: ../app/models/host/discovered.rb:43
461
+ #: ../app/models/host/discovered.rb:51
460
462
  msgid "Invalid facts, must be a Hash"
461
463
  msgstr ""
462
464
 
463
- #: ../app/models/host/discovered.rb:48
465
+ #: ../app/models/host/discovered.rb:56
464
466
  msgid ""
465
467
  "Expected discovery_fact '%s' is missing, unable to detect primary interface an"
466
468
  "d set hostname"
467
469
  msgstr ""
468
470
 
469
- #: ../app/models/host/discovered.rb:55
471
+ #: ../app/models/host/discovered.rb:63
470
472
  msgid ""
471
473
  "Invalid facts: hash does not contain a valid value for any of the facts in the"
472
474
  " discovery_hostname setting: %s"
473
475
  msgstr ""
474
476
 
475
- #: ../app/models/host/discovered.rb:72
477
+ #: ../app/models/host/discovered.rb:89
476
478
  msgid "Facts could not be imported"
477
479
  msgstr ""
478
480
 
479
- #: ../app/models/host/discovered.rb:139
480
- msgid "Unable to assign subnet, primary interface is missing IP address"
481
- msgstr ""
482
-
483
- #: ../app/models/host/discovered.rb:196
481
+ #: ../app/models/host/discovered.rb:212
484
482
  msgid "Could not get facts from proxy %{url}: %{error}"
485
483
  msgstr ""
486
484
 
487
- #: ../app/models/host/discovered.rb:204
485
+ #: ../app/models/host/discovered.rb:220
488
486
  msgid "Unable to reboot %{name} via %{url}: %{msg}"
489
487
  msgstr ""
490
488
 
491
- #: ../app/models/host/discovered.rb:212
489
+ #: ../app/models/host/discovered.rb:228
492
490
  msgid "Unable to perform kexec on %{name} via %{url}: %{msg}"
493
491
  msgstr ""
494
492
 
495
- #: ../app/models/host/discovered.rb:231
493
+ #: ../app/models/host/discovered.rb:247
496
494
  msgid "Invalid hostname: Could not normalize the hostname"
497
495
  msgstr ""
498
496
 
@@ -664,26 +662,44 @@ msgstr ""
664
662
  msgid "Force DNS"
665
663
  msgstr ""
666
664
 
667
- #: ../app/models/setting/discovered.rb:43
665
+ #: ../app/models/setting/discovered.rb:37
666
+ msgid ""
667
+ "Do not allow to discover existing managed host matching MAC of a provisioning "
668
+ "NIC (errors out early)"
669
+ msgstr ""
670
+
671
+ #: ../app/models/setting/discovered.rb:37
672
+ msgid "Error on existing NIC"
673
+ msgstr ""
674
+
675
+ #: ../app/models/setting/discovered.rb:44
668
676
  msgid "The default location to place discovered hosts in"
669
677
  msgstr ""
670
678
 
671
- #: ../app/models/setting/discovered.rb:43
679
+ #: ../app/models/setting/discovered.rb:44
672
680
  msgid "Discovery location"
673
681
  msgstr ""
674
682
 
675
- #: ../app/models/setting/discovered.rb:51
683
+ #: ../app/models/setting/discovered.rb:52
676
684
  msgid "The default organization to place discovered hosts in"
677
685
  msgstr ""
678
686
 
679
- #: ../app/models/setting/discovered.rb:51
687
+ #: ../app/models/setting/discovered.rb:52
680
688
  msgid "Discovery organization"
681
689
  msgstr ""
682
690
 
683
- #: ../app/services/foreman_discovery/fact_parser.rb:9
691
+ #: ../app/services/foreman_discovery/fact_parser.rb:4
692
+ msgid "Discovery fact parser does not work with non-discovery host '%{host}'"
693
+ msgstr ""
694
+
695
+ #: ../app/services/foreman_discovery/fact_parser.rb:6
696
+ msgid "Discovered host '%{host}' has all NICs filtered out, filter: %{filter}"
697
+ msgstr ""
698
+
699
+ #: ../app/services/foreman_discovery/fact_parser.rb:12
684
700
  msgid ""
685
- "Unable to detect primary interface using MAC '%{mac}' specified by discovery_f"
686
- "act '%{fact}'"
701
+ "Unable to find primary NIC with %{mac} specified via '%{fact}', NIC filter: %{"
702
+ "filter}"
687
703
  msgstr ""
688
704
 
689
705
  #: ../app/services/foreman_discovery/node_api/node_resource.rb:75
@@ -795,14 +811,6 @@ msgstr ""
795
811
  msgid "Provision %s"
796
812
  msgstr ""
797
813
 
798
- #: ../app/views/discovered_hosts/index.html.erb:2
799
- msgid "Reboot All"
800
- msgstr ""
801
-
802
- #: ../app/views/discovered_hosts/index.html.erb:3
803
- msgid "Auto Provision All"
804
- msgstr ""
805
-
806
814
  #: ../app/views/discovered_hosts/multiple_destroy.html.erb:3
807
815
  msgid ""
808
816
  "This might take a while, as all hosts, facts and reports will be destroyed as "
@@ -821,26 +829,30 @@ msgstr ""
821
829
  msgid "Discovered host: %s"
822
830
  msgstr ""
823
831
 
824
- #: ../app/views/discovered_hosts/show.html.erb:34
832
+ #: ../app/views/discovered_hosts/show.html.erb:37
825
833
  msgid "Interfaces"
826
834
  msgstr ""
827
835
 
828
- #: ../app/views/discovered_hosts/show.html.erb:41
836
+ #: ../app/views/discovered_hosts/show.html.erb:44
829
837
  msgid "Type"
830
838
  msgstr ""
831
839
 
832
- #: ../app/views/discovered_hosts/show.html.erb:42
840
+ #: ../app/views/discovered_hosts/show.html.erb:45
833
841
  msgid "Identifier"
834
842
  msgstr ""
835
843
 
836
- #: ../app/views/discovered_hosts/show.html.erb:43
844
+ #: ../app/views/discovered_hosts/show.html.erb:46
837
845
  msgid "MAC address"
838
846
  msgstr ""
839
847
 
840
- #: ../app/views/discovered_hosts/show.html.erb:44
848
+ #: ../app/views/discovered_hosts/show.html.erb:47
841
849
  msgid "IP address"
842
850
  msgstr ""
843
851
 
852
+ #: ../app/views/discovered_hosts/show.html.erb:66
853
+ msgid "Collapse All"
854
+ msgstr ""
855
+
844
856
  #: ../app/views/discovered_hosts/welcome.html.erb:7
845
857
  msgid "No discovered hosts found in this context."
846
858
  msgstr ""
@@ -958,7 +970,7 @@ msgid ""
958
970
  msgstr ""
959
971
 
960
972
  #: ../app/views/discovery_rules/edit.html.erb:1
961
- msgid "Edit Discovery Rule"
973
+ msgid "Edit %s"
962
974
  msgstr ""
963
975
 
964
976
  #: ../app/views/discovery_rules/index.html.erb:1
@@ -1013,29 +1025,29 @@ msgstr ""
1013
1025
  msgid "Details"
1014
1026
  msgstr ""
1015
1027
 
1016
- #: ../lib/foreman_discovery/engine.rb:152
1028
+ #: ../lib/foreman_discovery/engine.rb:158
1017
1029
  msgid "Discovered hosts"
1018
1030
  msgstr ""
1019
1031
 
1020
- #: ../lib/foreman_discovery/engine.rb:157
1032
+ #: ../lib/foreman_discovery/engine.rb:163
1021
1033
  msgid "Discovery rules"
1022
1034
  msgstr ""
1023
1035
 
1024
- #: ../lib/foreman_discovery/engine.rb:173
1036
+ #: ../lib/foreman_discovery/engine.rb:179
1025
1037
  msgid "Discovery Kexec template"
1026
1038
  msgstr ""
1027
1039
 
1028
- #: ../lib/foreman_discovery/engine.rb:182
1040
+ #: ../lib/foreman_discovery/engine.rb:188
1029
1041
  msgid "Discovery Proxy"
1030
1042
  msgstr ""
1031
1043
 
1032
- #: ../lib/foreman_discovery/engine.rb:183
1044
+ #: ../lib/foreman_discovery/engine.rb:189
1033
1045
  msgid ""
1034
1046
  "Discovery Proxy to use within this subnet for managing connection to discovere"
1035
1047
  "d hosts"
1036
1048
  msgstr ""
1037
1049
 
1038
- #: ../lib/foreman_discovery/engine.rb:184
1050
+ #: ../lib/foreman_discovery/engine.rb:190
1039
1051
  msgid ""
1040
1052
  "ID of Discovery Proxy to use within this subnet for managing connection to dis"
1041
1053
  "covered hosts"