foreman_discovery 5.0.2 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/api/v2/discovered_hosts_controller.rb +4 -7
  3. data/app/controllers/api/v2/discovery_rules_controller.rb +1 -0
  4. data/app/controllers/api/v2/fact_values_controller_extensions.rb +11 -0
  5. data/app/controllers/concerns/foreman/controller/discovered_extensions.rb +6 -3
  6. data/app/controllers/discovered_hosts_controller.rb +46 -11
  7. data/app/controllers/discovery_rules_controller.rb +1 -1
  8. data/app/helpers/discovered_hosts_helper.rb +33 -16
  9. data/app/models/concerns/discovery_taxonomy_extensions.rb +7 -0
  10. data/app/models/concerns/fact_value_extensions.rb +8 -0
  11. data/app/models/discovery_rule.rb +4 -6
  12. data/app/models/host/discovered.rb +29 -10
  13. data/app/models/host/managed_extensions.rb +2 -10
  14. data/app/models/setting/discovered.rb +22 -28
  15. data/app/services/foreman_discovery/host_converter.rb +19 -10
  16. data/app/views/api/v2/discovered_hosts/main.json.rabl +1 -1
  17. data/app/views/dashboard/_discovery_widget_host.html.erb +1 -1
  18. data/app/views/discovered_hosts/_discovered_host.html.erb +1 -1
  19. data/app/views/discovered_hosts/_discovered_hosts_list.html.erb +32 -1
  20. data/app/views/discovered_hosts/index.html.erb +2 -2
  21. data/app/views/discovered_hosts/show.html.erb +5 -5
  22. data/app/views/discovered_mailer/_discovered_host.html.erb +1 -1
  23. data/app/views/discovered_mailer/discovered_summary.text.erb +2 -2
  24. data/app/views/discovery_rules/_form.html.erb +2 -19
  25. data/app/views/discovery_rules/_template_inline.erb +10 -0
  26. data/app/views/discovery_rules/index.html.erb +1 -1
  27. data/app/views/foreman_discovery/debian_kexec.erb +34 -0
  28. data/app/views/foreman_discovery/redhat_kexec.erb +5 -4
  29. data/config/routes.rb +4 -0
  30. data/db/migrate/20141223142759_fill_discovery_attribute_sets_for_existing_hosts.rb +15 -1
  31. data/db/migrate/20160719124942_add_missing_view_permissions.rb +18 -0
  32. data/db/seeds.d/50_discovery_templates.rb +15 -13
  33. data/lib/discovery.rake +1 -0
  34. data/lib/foreman_discovery/engine.rb +24 -10
  35. data/lib/foreman_discovery/version.rb +1 -1
  36. data/locale/ca/LC_MESSAGES/foreman_discovery.mo +0 -0
  37. data/locale/ca/foreman_discovery.edit.po +274 -136
  38. data/locale/ca/foreman_discovery.po +396 -328
  39. data/locale/de/LC_MESSAGES/foreman_discovery.mo +0 -0
  40. data/locale/de/foreman_discovery.edit.po +309 -171
  41. data/locale/de/foreman_discovery.po +419 -361
  42. data/locale/en/LC_MESSAGES/foreman_discovery.mo +0 -0
  43. data/locale/en/foreman_discovery.edit.po +881 -0
  44. data/locale/en/foreman_discovery.po +665 -0
  45. data/locale/en_GB/LC_MESSAGES/foreman_discovery.mo +0 -0
  46. data/locale/en_GB/foreman_discovery.edit.po +279 -141
  47. data/locale/en_GB/foreman_discovery.po +446 -391
  48. data/locale/es/LC_MESSAGES/foreman_discovery.mo +0 -0
  49. data/locale/es/foreman_discovery.edit.po +277 -139
  50. data/locale/es/foreman_discovery.po +415 -362
  51. data/locale/foreman_discovery.pot +241 -135
  52. data/locale/fr/LC_MESSAGES/foreman_discovery.mo +0 -0
  53. data/locale/fr/foreman_discovery.edit.po +289 -151
  54. data/locale/fr/foreman_discovery.po +439 -411
  55. data/locale/gl/LC_MESSAGES/foreman_discovery.mo +0 -0
  56. data/locale/gl/foreman_discovery.edit.po +266 -128
  57. data/locale/gl/foreman_discovery.po +320 -246
  58. data/locale/it/LC_MESSAGES/foreman_discovery.mo +0 -0
  59. data/locale/it/foreman_discovery.edit.po +277 -139
  60. data/locale/it/foreman_discovery.po +407 -352
  61. data/locale/ja/LC_MESSAGES/foreman_discovery.mo +0 -0
  62. data/locale/ja/foreman_discovery.edit.po +279 -141
  63. data/locale/ja/foreman_discovery.po +411 -339
  64. data/locale/ko/LC_MESSAGES/foreman_discovery.mo +0 -0
  65. data/locale/ko/foreman_discovery.edit.po +277 -139
  66. data/locale/ko/foreman_discovery.po +411 -339
  67. data/locale/pt_BR/LC_MESSAGES/foreman_discovery.mo +0 -0
  68. data/locale/pt_BR/foreman_discovery.edit.po +282 -144
  69. data/locale/pt_BR/foreman_discovery.po +430 -394
  70. data/locale/ru/LC_MESSAGES/foreman_discovery.mo +0 -0
  71. data/locale/ru/foreman_discovery.edit.po +371 -232
  72. data/locale/ru/foreman_discovery.po +448 -385
  73. data/locale/sv_SE/LC_MESSAGES/foreman_discovery.mo +0 -0
  74. data/locale/sv_SE/foreman_discovery.edit.po +270 -132
  75. data/locale/sv_SE/foreman_discovery.po +336 -260
  76. data/locale/zh_CN/LC_MESSAGES/foreman_discovery.mo +0 -0
  77. data/locale/zh_CN/foreman_discovery.edit.po +279 -141
  78. data/locale/zh_CN/foreman_discovery.po +412 -336
  79. data/locale/zh_TW/LC_MESSAGES/foreman_discovery.mo +0 -0
  80. data/locale/zh_TW/foreman_discovery.edit.po +279 -141
  81. data/locale/zh_TW/foreman_discovery.po +412 -338
  82. data/test/functional/api/v2/discovered_hosts_controller_test.rb +30 -22
  83. data/test/functional/api/v2/discovery_rules_controller_test.rb +7 -0
  84. data/test/functional/api/v2/fact_value_extensions_test.rb +37 -0
  85. data/test/functional/discovered_hosts_controller_test.rb +89 -16
  86. data/test/functional/discovery_rules_controller_test.rb +1 -1
  87. data/test/test_helper_discovery.rb +1 -1
  88. data/test/unit/discovered_extensions_test.rb +65 -21
  89. data/test/unit/discovery_attribute_set_test.rb +4 -4
  90. data/test/unit/discovery_taxonomy_extensions_test.rb +31 -0
  91. data/test/unit/host_discovered_test.rb +110 -14
  92. metadata +121 -110
  93. data/app/helpers/concerns/foreman_discovery/settings_helper_extensions.rb +0 -34
@@ -9,11 +9,11 @@
9
9
  # Lukáš Zapletal, 2015
10
10
  msgid ""
11
11
  msgstr ""
12
- "Project-Id-Version: Foreman\n"
12
+ "Project-Id-Version: foreman_discovery 5.0.2\n"
13
13
  "Report-Msgid-Bugs-To: \n"
14
- "POT-Creation-Date: 2016-02-25 10:58+0100\n"
15
- "PO-Revision-Date: 2016-02-28 09:21+0000\n"
16
- "Last-Translator: Andi Chandler <andi@gowling.com>\n"
14
+ "POT-Creation-Date: 2016-07-27 14:13+0200\n"
15
+ "PO-Revision-Date: 2016-07-28 09:01+0000\n"
16
+ "Last-Translator: Lukáš Zapletal\n"
17
17
  "Language-Team: English (United Kingdom) (http://www.transifex.com/foreman/foreman/language/en_GB/)\n"
18
18
  "MIME-Version: 1.0\n"
19
19
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -91,56 +91,56 @@ msgid ""
91
91
  "eth0 (example in case primary interface is named eth0)"
92
92
  msgstr "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)"
93
93
 
94
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:112
94
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:109
95
95
  msgid "Execute rules against a discovered host"
96
96
  msgstr "Execute rules against a discovered host"
97
97
 
98
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:118
99
- #: ../app/controllers/discovered_hosts_controller.rb:147
98
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:115
99
+ #: ../app/controllers/discovered_hosts_controller.rb:164
100
100
  msgid "Host %{host} was provisioned with rule %{rule}"
101
101
  msgstr "Host %{host} was provisioned with rule %{rule}"
102
102
 
103
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:121
103
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:118
104
104
  msgid "Unable to provision %{host}: %{errors}"
105
105
  msgstr "Unable to provision %{host}: %{errors}"
106
106
 
107
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:127
108
- #: ../app/controllers/discovered_hosts_controller.rb:154
107
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:124
108
+ #: ../app/controllers/discovered_hosts_controller.rb:171
109
109
  msgid "No rule found for host %s"
110
110
  msgstr "No rule found for host %s"
111
111
 
112
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:134
112
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:131
113
113
  msgid "Execute rules against all currently discovered hosts"
114
114
  msgstr "Execute rules against all currently discovered hosts"
115
115
 
116
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:138
117
- #: ../app/controllers/discovered_hosts_controller.rb:160
116
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:135
117
+ #: ../app/controllers/discovered_hosts_controller.rb:177
118
118
  msgid "Errors during auto provisioning: %s"
119
119
  msgstr "Errors during auto provisioning: %s"
120
120
 
121
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:141
122
- #: ../app/controllers/discovered_hosts_controller.rb:163
121
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:138
122
+ #: ../app/controllers/discovered_hosts_controller.rb:180
123
123
  msgid "No discovered hosts to provision"
124
124
  msgstr "No discovered hosts to provision"
125
125
 
126
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:163
126
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:160
127
127
  msgid "%s discovered hosts were provisioned"
128
128
  msgstr "%s discovered hosts were provisioned"
129
129
 
130
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:174
130
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:171
131
131
  msgid "Refreshing the facts of a discovered host"
132
132
  msgstr "Refreshing the facts of a discovered host"
133
133
 
134
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:183
134
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:180
135
135
  msgid "Rebooting a discovered host"
136
136
  msgstr "Rebooting a discovered host"
137
137
 
138
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:192
138
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:189
139
139
  msgid "Rebooting all discovered hosts"
140
140
  msgstr "Rebooting all discovered hosts"
141
141
 
142
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:203
143
- #: ../app/controllers/discovered_hosts_controller.rb:105
142
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:200
143
+ #: ../app/controllers/discovered_hosts_controller.rb:122
144
144
  msgid "Discovered hosts are rebooting now"
145
145
  msgstr "Discovered hosts are rebooting now"
146
146
 
@@ -182,18 +182,22 @@ msgstr "puts the rules in order, low numbers go first. Must be greater then zero
182
182
  msgid "flag is used for temporary shutdown of rules"
183
183
  msgstr "flag is used for temporary shutdown of rules"
184
184
 
185
- #: ../app/controllers/api/v2/discovery_rules_controller.rb:41
185
+ #: ../app/controllers/api/v2/discovery_rules_controller.rb:42
186
186
  msgid "Create a discovery rule"
187
187
  msgstr "Create a discovery rule"
188
188
 
189
- #: ../app/controllers/api/v2/discovery_rules_controller.rb:49
189
+ #: ../app/controllers/api/v2/discovery_rules_controller.rb:50
190
190
  msgid "Update a rule"
191
191
  msgstr "Update a rule"
192
192
 
193
- #: ../app/controllers/api/v2/discovery_rules_controller.rb:57
193
+ #: ../app/controllers/api/v2/discovery_rules_controller.rb:58
194
194
  msgid "Delete a rule"
195
195
  msgstr "Delete a rule"
196
196
 
197
+ #: ../app/controllers/api/v2/fact_values_controller_extensions.rb:7
198
+ msgid "List all fact values of a given discovered host"
199
+ msgstr ""
200
+
197
201
  #: ../app/controllers/concerns/foreman/controller/discovered_extensions.rb:6
198
202
  msgid "Unable to find a discovery rule, no host provided (check permissions)"
199
203
  msgstr "Unable to find a discovery rule, no host provided (check permissions)"
@@ -202,156 +206,186 @@ msgstr "Unable to find a discovery rule, no host provided (check permissions)"
202
206
  msgid "No hostgroup associated with rule '%s'"
203
207
  msgstr "No hostgroup associated with rule '%s'"
204
208
 
205
- #: ../app/controllers/concerns/foreman/controller/discovered_extensions.rb:63
209
+ #: ../app/controllers/concerns/foreman/controller/discovered_extensions.rb:66
206
210
  msgid "Errors during reboot: %s"
207
211
  msgstr "Errors during reboot: %s"
208
212
 
209
- #: ../app/controllers/concerns/foreman/controller/discovered_extensions.rb:81
213
+ #: ../app/controllers/concerns/foreman/controller/discovered_extensions.rb:84
210
214
  msgid "No discovered hosts to reboot"
211
215
  msgstr "No discovered hosts to reboot"
212
216
 
213
- #: ../app/controllers/discovered_hosts_controller.rb:73
217
+ #: ../app/controllers/discovered_hosts_controller.rb:58
218
+ msgid "Successfully provisioned %s"
219
+ msgstr ""
220
+
221
+ #: ../app/controllers/discovered_hosts_controller.rb:90
214
222
  msgid "Facts refreshed for %s"
215
223
  msgstr "Facts refreshed for %s"
216
224
 
217
- #: ../app/controllers/discovered_hosts_controller.rb:75
225
+ #: ../app/controllers/discovered_hosts_controller.rb:92
218
226
  msgid "Failed to refresh facts for %s"
219
227
  msgstr "Failed to refresh facts for %s"
220
228
 
221
- #: ../app/controllers/discovered_hosts_controller.rb:78
229
+ #: ../app/controllers/discovered_hosts_controller.rb:95
222
230
  msgid "Failed to refresh facts for %{hostname} with error %{error_message}"
223
231
  msgstr "Failed to refresh facts for %{hostname} with error %{error_message}"
224
232
 
225
- #: ../app/controllers/discovered_hosts_controller.rb:85
233
+ #: ../app/controllers/discovered_hosts_controller.rb:102
226
234
  msgid "Host of type %s can not be rebooted"
227
235
  msgstr "Host of type %s can not be rebooted"
228
236
 
229
- #: ../app/controllers/discovered_hosts_controller.rb:89
237
+ #: ../app/controllers/discovered_hosts_controller.rb:106
230
238
  msgid "Rebooting host %s"
231
239
  msgstr "Rebooting host %s"
232
240
 
233
- #: ../app/controllers/discovered_hosts_controller.rb:91
241
+ #: ../app/controllers/discovered_hosts_controller.rb:108
234
242
  msgid "Failed to reboot host %s"
235
243
  msgstr "Failed to reboot host %s"
236
244
 
237
- #: ../app/controllers/discovered_hosts_controller.rb:94
245
+ #: ../app/controllers/discovered_hosts_controller.rb:111
238
246
  msgid "Failed to reboot host %{hostname} with error %{error_message}"
239
247
  msgstr "Failed to reboot host %{hostname} with error %{error_message}"
240
248
 
241
- #: ../app/controllers/discovered_hosts_controller.rb:108
249
+ #: ../app/controllers/discovered_hosts_controller.rb:125
242
250
  msgid "Failed to reboot hosts with error %s"
243
251
  msgstr "Failed to reboot hosts with error %s"
244
252
 
245
- #: ../app/controllers/discovered_hosts_controller.rb:122
253
+ #: ../app/controllers/discovered_hosts_controller.rb:139
246
254
  msgid "Destroyed selected hosts"
247
255
  msgstr "Destroyed selected hosts"
248
256
 
249
- #: ../app/controllers/discovered_hosts_controller.rb:124
257
+ #: ../app/controllers/discovered_hosts_controller.rb:141
250
258
  msgid "The following hosts were not deleted: %s"
251
259
  msgstr "The following hosts were not deleted: %s"
252
260
 
253
- #: ../app/controllers/discovered_hosts_controller.rb:151
261
+ #: ../app/controllers/discovered_hosts_controller.rb:168
254
262
  msgid "Failed to auto provision host %s: %s"
255
263
  msgstr "Failed to auto provision host %s: %s"
256
264
 
257
- #: ../app/controllers/discovered_hosts_controller.rb:179
265
+ #: ../app/controllers/discovered_hosts_controller.rb:196
258
266
  msgid "Discovered hosts are provisioning now"
259
267
  msgstr "Discovered hosts are provisioning now"
260
268
 
261
- #: ../app/controllers/discovered_hosts_controller.rb:267
269
+ #: ../app/controllers/discovered_hosts_controller.rb:225
270
+ msgid "Highlights"
271
+ msgstr "Highlights"
272
+
273
+ #: ../app/controllers/discovered_hosts_controller.rb:225
274
+ msgid "Storage"
275
+ msgstr "Storage"
276
+
277
+ #: ../app/controllers/discovered_hosts_controller.rb:225
278
+ msgid "Hardware"
279
+ msgstr "Hardware"
280
+
281
+ #: ../app/controllers/discovered_hosts_controller.rb:225
282
+ msgid "Network"
283
+ msgstr "Network"
284
+
285
+ #: ../app/controllers/discovered_hosts_controller.rb:225
286
+ msgid "Software"
287
+ msgstr "Software"
288
+
289
+ #: ../app/controllers/discovered_hosts_controller.rb:225
290
+ msgid "IPMI"
291
+ msgstr "IPMI"
292
+
293
+ #: ../app/controllers/discovered_hosts_controller.rb:225
294
+ msgid "Miscellaneous"
295
+ msgstr "Miscellaneous"
296
+
297
+ #: ../app/controllers/discovered_hosts_controller.rb:302
262
298
  msgid "No hosts were found with that id or name"
263
299
  msgstr "No hosts were found with that id or name"
264
300
 
265
- #: ../app/controllers/discovered_hosts_controller.rb:271
301
+ #: ../app/controllers/discovered_hosts_controller.rb:306
266
302
  msgid "No hosts selected"
267
303
  msgstr "No hosts selected"
268
304
 
269
- #: ../app/controllers/discovered_hosts_controller.rb:277
305
+ #: ../app/controllers/discovered_hosts_controller.rb:312
270
306
  msgid "Something went wrong while selecting hosts - %s"
271
307
  msgstr "Something went wrong while selecting hosts - %s"
272
308
 
273
- #: ../app/controllers/discovery_rules_controller.rb:66
274
- msgid "Rule disabled"
275
- msgstr "Rule disabled"
276
-
277
309
  #: ../app/controllers/discovery_rules_controller.rb:66
278
310
  msgid "Rule enabled"
279
311
  msgstr "Rule enabled"
280
312
 
281
- #: ../app/helpers/discovered_hosts_helper.rb:11
313
+ #: ../app/controllers/discovery_rules_controller.rb:66
314
+ msgid "Rule disabled"
315
+ msgstr "Rule disabled"
316
+
317
+ #: ../app/helpers/discovered_hosts_helper.rb:10
282
318
  msgid "%s ago"
283
319
  msgstr "%s ago"
284
320
 
285
- #: ../app/helpers/discovered_hosts_helper.rb:15
286
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:42
321
+ #: ../app/helpers/discovered_hosts_helper.rb:14
322
+ #: ../app/helpers/discovered_hosts_helper.rb:94
287
323
  msgid "Provision"
288
324
  msgstr "Provision"
289
325
 
290
- #: ../app/helpers/discovered_hosts_helper.rb:16
291
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:43
326
+ #: ../app/helpers/discovered_hosts_helper.rb:15
327
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:74
292
328
  msgid "Auto Provision"
293
329
  msgstr "Auto Provision"
294
330
 
295
- #: ../app/helpers/discovered_hosts_helper.rb:17
296
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:44
331
+ #: ../app/helpers/discovered_hosts_helper.rb:16
332
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:75
297
333
  msgid "Refresh facts"
298
334
  msgstr "Refresh facts"
299
335
 
300
- #: ../app/helpers/discovered_hosts_helper.rb:18
301
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:45
336
+ #: ../app/helpers/discovered_hosts_helper.rb:17
337
+ #: ../app/models/setting/discovered.rb:23
338
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:76
302
339
  msgid "Reboot"
303
340
  msgstr "Reboot"
304
341
 
305
- #: ../app/helpers/discovered_hosts_helper.rb:21
342
+ #: ../app/helpers/discovered_hosts_helper.rb:20
306
343
  msgid "Back"
307
344
  msgstr "Back"
308
345
 
309
- #: ../app/helpers/discovered_hosts_helper.rb:23
310
- #: ../app/helpers/discovered_hosts_helper.rb:46
346
+ #: ../app/helpers/discovered_hosts_helper.rb:22
347
+ #: ../app/helpers/discovered_hosts_helper.rb:39
311
348
  msgid "Select Action"
312
349
  msgstr "Select Action"
313
350
 
314
- #: ../app/helpers/discovered_hosts_helper.rb:30
351
+ #: ../app/helpers/discovered_hosts_helper.rb:24
315
352
  msgid "Expand All"
316
353
  msgstr "Expand All"
317
354
 
318
- #: ../app/helpers/discovered_hosts_helper.rb:35
319
- msgid "Delete"
320
- msgstr "Delete"
321
-
322
- #: ../app/helpers/discovered_hosts_helper.rb:36
323
- msgid "Are you sure?"
324
- msgstr "Are you sure?"
355
+ #: ../app/helpers/discovered_hosts_helper.rb:29
356
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:77
357
+ msgid "Delete %s?"
358
+ msgstr "Delete %s?"
325
359
 
326
- #: ../app/helpers/discovered_hosts_helper.rb:42
360
+ #: ../app/helpers/discovered_hosts_helper.rb:35
327
361
  msgid "Delete hosts"
328
362
  msgstr "Delete hosts"
329
363
 
330
- #: ../app/helpers/discovered_hosts_helper.rb:43
364
+ #: ../app/helpers/discovered_hosts_helper.rb:36
331
365
  msgid "Assign Organization"
332
366
  msgstr "Assign Organisation"
333
367
 
334
- #: ../app/helpers/discovered_hosts_helper.rb:44
368
+ #: ../app/helpers/discovered_hosts_helper.rb:37
335
369
  msgid "Assign Location"
336
370
  msgstr "Assign Location"
337
371
 
338
- #: ../app/helpers/discovered_hosts_helper.rb:48
372
+ #: ../app/helpers/discovered_hosts_helper.rb:41
339
373
  msgid "%s - The following hosts are about to be changed"
340
374
  msgstr "%s - The following hosts are about to be changed"
341
375
 
342
- #: ../app/helpers/discovered_hosts_helper.rb:57
376
+ #: ../app/helpers/discovered_hosts_helper.rb:50
343
377
  msgid "N/A"
344
378
  msgstr "N/A"
345
379
 
346
- #: ../app/helpers/discovered_hosts_helper.rb:69
380
+ #: ../app/helpers/discovered_hosts_helper.rb:62
347
381
  msgid "New in the last 24 hours"
348
382
  msgstr "New in the last 24 hours"
349
383
 
350
- #: ../app/helpers/discovered_hosts_helper.rb:73
384
+ #: ../app/helpers/discovered_hosts_helper.rb:66
351
385
  msgid "Not reported in more than 7 days"
352
386
  msgstr "Not reported in more than 7 days"
353
387
 
354
- #: ../app/helpers/discovered_hosts_helper.rb:77
388
+ #: ../app/helpers/discovered_hosts_helper.rb:70
355
389
  msgid "Reported in the last 7 days"
356
390
  msgstr "Reported in the last 7 days"
357
391
 
@@ -363,14 +397,14 @@ msgstr "Discovered Hosts"
363
397
  msgid "Associated Hosts"
364
398
  msgstr "Associated Hosts"
365
399
 
366
- #: ../app/helpers/discovery_rules_helper.rb:29
367
- msgid "Disable rule '%s'?"
368
- msgstr "Disable rule '%s'?"
369
-
370
400
  #: ../app/helpers/discovery_rules_helper.rb:29
371
401
  msgid "Disable"
372
402
  msgstr "Disable"
373
403
 
404
+ #: ../app/helpers/discovery_rules_helper.rb:29
405
+ msgid "Disable rule '%s'?"
406
+ msgstr "Disable rule '%s'?"
407
+
374
408
  #: ../app/helpers/discovery_rules_helper.rb:31
375
409
  msgid "Enable"
376
410
  msgstr "Enable"
@@ -399,7 +433,7 @@ msgstr "can't contain white spaces."
399
433
  msgid "must start with a letter or ERB."
400
434
  msgstr "must start with a letter or ERB."
401
435
 
402
- #: ../app/models/discovery_rule.rb:49
436
+ #: ../app/models/discovery_rule.rb:47
403
437
  msgid ""
404
438
  "Host group organization %s must also be associated to the discovery rule"
405
439
  msgid_plural ""
@@ -407,46 +441,50 @@ msgid_plural ""
407
441
  msgstr[0] "Host group organisation %s must also be associated to the discovery rule"
408
442
  msgstr[1] "Host group organisations %s must also be associated to the discovery rule"
409
443
 
410
- #: ../app/models/discovery_rule.rb:55
444
+ #: ../app/models/discovery_rule.rb:53
411
445
  msgid "Host group location %s must also be associated to the discovery rule"
412
446
  msgid_plural ""
413
447
  "Host group locations %s must also be associated to the discovery rule"
414
448
  msgstr[0] "Host group location %s must also be associated to the discovery rule"
415
449
  msgstr[1] "Host group locations %s must also be associated to the discovery rule"
416
450
 
417
- #: ../app/models/host/discovered.rb:34
451
+ #: ../app/models/host/discovered.rb:35
418
452
  msgid "Invalid facts, must be a Hash"
419
453
  msgstr "Invalid facts, must be a Hash"
420
454
 
421
- #: ../app/models/host/discovered.rb:39
455
+ #: ../app/models/host/discovered.rb:40
422
456
  msgid ""
423
457
  "Expected discovery_fact '%s' is missing, unable to detect primary interface "
424
458
  "and set hostname"
425
459
  msgstr "Expected discovery_fact '%s' is missing, unable to detect primary interface and set hostname"
426
460
 
427
- #: ../app/models/host/discovered.rb:46
461
+ #: ../app/models/host/discovered.rb:47
428
462
  msgid ""
429
463
  "Invalid facts: hash does not contain a valid value for any of the facts in "
430
464
  "the discovery_hostname setting: %s"
431
465
  msgstr "Invalid facts: hash does not contain a valid value for any of the facts in the discovery_hostname setting: %s"
432
466
 
433
- #: ../app/models/host/discovered.rb:107
467
+ #: ../app/models/host/discovered.rb:64
468
+ msgid "Facts could not be imported"
469
+ msgstr ""
470
+
471
+ #: ../app/models/host/discovered.rb:114
434
472
  msgid "Unable to assign subnet, primary interface is missing IP address"
435
473
  msgstr "Unable to assign subnet, primary interface is missing IP address"
436
474
 
437
- #: ../app/models/host/discovered.rb:149
475
+ #: ../app/models/host/discovered.rb:168
438
476
  msgid "Could not get facts from proxy %{url}: %{error}"
439
477
  msgstr "Could not get facts from proxy %{url}: %{error}"
440
478
 
441
- #: ../app/models/host/discovered.rb:165
479
+ #: ../app/models/host/discovered.rb:184
442
480
  msgid "Unable to reboot %{name} via %{url}: %{msg}"
443
481
  msgstr "Unable to reboot %{name} via %{url}: %{msg}"
444
482
 
445
- #: ../app/models/host/discovered.rb:173
483
+ #: ../app/models/host/discovered.rb:192
446
484
  msgid "Unable to perform kexec on %{name} via %{url}: %{msg}"
447
485
  msgstr "Unable to perform kexec on %{name} via %{url}: %{msg}"
448
486
 
449
- #: ../app/models/host/discovered.rb:192
487
+ #: ../app/models/host/discovered.rb:211
450
488
  msgid "Invalid hostname: Could not normalize the hostname"
451
489
  msgstr "Invalid hostname: Could not normalise the hostname"
452
490
 
@@ -474,60 +512,138 @@ msgstr "Kexec template not associated with operating system"
474
512
  msgid "Fact name to use for primary interface detection"
475
513
  msgstr "Fact name to use for primary interface detection"
476
514
 
515
+ #: ../app/models/setting/discovered.rb:19
516
+ msgid "Interface fact"
517
+ msgstr ""
518
+
477
519
  #: ../app/models/setting/discovered.rb:20
520
+ msgid "Clean all reported facts during provisioning (except discovery facts)"
521
+ msgstr ""
522
+
523
+ #: ../app/models/setting/discovered.rb:20
524
+ msgid "Clean all facts"
525
+ msgstr ""
526
+
527
+ #: ../app/models/setting/discovered.rb:21
478
528
  msgid "List of facts to use for the hostname (separated by comma, first wins)"
479
529
  msgstr "List of facts to use for the hostname (separated by comma, first wins)"
480
530
 
481
531
  #: ../app/models/setting/discovered.rb:21
532
+ msgid "Hostname facts"
533
+ msgstr ""
534
+
535
+ #: ../app/models/setting/discovered.rb:22
482
536
  msgid ""
483
537
  "Automatically provision newly discovered hosts, according to the "
484
538
  "provisioning rules"
485
539
  msgstr "Automatically provision newly discovered hosts, according to the provisioning rules"
486
540
 
487
541
  #: ../app/models/setting/discovered.rb:22
488
- msgid "Automatically reboot discovered host during provisioning"
489
- msgstr "Automatically reboot discovered host during provisioning"
542
+ msgid "Auto provisioning"
543
+ msgstr ""
490
544
 
491
- #: ../app/models/setting/discovered.rb:28
545
+ #: ../app/models/setting/discovered.rb:23
546
+ msgid "Automatically reboot or kexec discovered host during provisioning"
547
+ msgstr ""
548
+
549
+ #: ../app/models/setting/discovered.rb:24
492
550
  msgid "The default prefix to use for the host name, must start with a letter"
493
551
  msgstr "The default prefix to use for the host name, must start with a letter"
494
552
 
495
- #: ../app/models/setting/discovered.rb:34
553
+ #: ../app/models/setting/discovered.rb:24
554
+ msgid "Hostname prefix"
555
+ msgstr ""
556
+
557
+ #: ../app/models/setting/discovered.rb:25
496
558
  msgid "Extra facter columns to show in host lists (separate by comma)"
497
559
  msgstr "Extra facter columns to show in host lists (separate by comma)"
498
560
 
499
- #: ../app/models/setting/discovered.rb:41
500
- msgid "The default location to place discovered hosts in"
501
- msgstr "The default location to place discovered hosts in"
561
+ #: ../app/models/setting/discovered.rb:25
562
+ msgid "Fact columns"
563
+ msgstr ""
502
564
 
503
- #: ../app/models/setting/discovered.rb:48
504
- msgid "The default organization to place discovered hosts in"
505
- msgstr "The default organisation to place discovered hosts in"
565
+ #: ../app/models/setting/discovered.rb:26
566
+ msgid "Regex to organize facts for highlights section - e.g. ^(abc|cde)$"
567
+ msgstr "Regex to organise facts for highlights section - e.g. ^(abc|cde)$"
506
568
 
507
- #: ../app/models/setting/discovered.rb:55
508
- msgid "Regex to organize facts for highlights section"
509
- msgstr "Regex to organise facts for highlights section"
569
+ #: ../app/models/setting/discovered.rb:26
570
+ msgid "Highlighted facts"
571
+ msgstr ""
510
572
 
511
- #: ../app/models/setting/discovered.rb:56
573
+ #: ../app/models/setting/discovered.rb:27
512
574
  msgid "Regex to organize facts for storage section"
513
575
  msgstr "Regex to organise facts for storage section"
514
576
 
515
- #: ../app/models/setting/discovered.rb:57
577
+ #: ../app/models/setting/discovered.rb:27
578
+ msgid "Storage facts"
579
+ msgstr ""
580
+
581
+ #: ../app/models/setting/discovered.rb:28
516
582
  msgid "Regex to organize facts for software section"
517
583
  msgstr "Regex to organise facts for software section"
518
584
 
519
- #: ../app/models/setting/discovered.rb:58
585
+ #: ../app/models/setting/discovered.rb:28
586
+ msgid "Software facts"
587
+ msgstr ""
588
+
589
+ #: ../app/models/setting/discovered.rb:29
520
590
  msgid "Regex to organize facts for hardware section"
521
591
  msgstr "Regex to organise facts for hardware section"
522
592
 
523
- #: ../app/models/setting/discovered.rb:59
593
+ #: ../app/models/setting/discovered.rb:29
594
+ msgid "Hardware facts"
595
+ msgstr ""
596
+
597
+ #: ../app/models/setting/discovered.rb:30
524
598
  msgid "Regex to organize facts for network section"
525
599
  msgstr "Regex to organise facts for network section"
526
600
 
527
- #: ../app/models/setting/discovered.rb:60
601
+ #: ../app/models/setting/discovered.rb:30
602
+ msgid "Network facts"
603
+ msgstr ""
604
+
605
+ #: ../app/models/setting/discovered.rb:31
528
606
  msgid "Regex to organize facts for ipmi section"
529
607
  msgstr "Regex to organise facts for IPMI section"
530
608
 
609
+ #: ../app/models/setting/discovered.rb:31
610
+ msgid "IPMI facts"
611
+ msgstr ""
612
+
613
+ #: ../app/models/setting/discovered.rb:32
614
+ msgid ""
615
+ "Automatically generate PXE configuration to pin a newly discovered host to "
616
+ "discovery"
617
+ msgstr ""
618
+
619
+ #: ../app/models/setting/discovered.rb:32
620
+ msgid "Lock PXE"
621
+ msgstr ""
622
+
623
+ #: ../app/models/setting/discovered.rb:33
624
+ msgid "PXE template to be used when pinning a host to discovery"
625
+ msgstr ""
626
+
627
+ #: ../app/models/setting/discovered.rb:33
628
+ msgid "Locked template name"
629
+ msgstr ""
630
+
631
+ #: ../app/models/setting/discovered.rb:40
632
+ msgid "The default location to place discovered hosts in"
633
+ msgstr "The default location to place discovered hosts in"
634
+
635
+ #: ../app/models/setting/discovered.rb:40
636
+ msgid "Discovery location"
637
+ msgstr ""
638
+
639
+ #: ../app/models/setting/discovered.rb:48
640
+ msgid "The default organization to place discovered hosts in"
641
+ msgstr "The default organisation to place discovered hosts in"
642
+
643
+ #: ../app/models/setting/discovered.rb:48
644
+ msgid "Discovery organization"
645
+ msgstr ""
646
+
531
647
  #: ../app/services/foreman_discovery/fact_parser.rb:9
532
648
  msgid ""
533
649
  "Unable to detect primary interface using MAC '%{mac}' specified by "
@@ -573,18 +689,18 @@ msgid "Memory"
573
689
  msgstr "Memory"
574
690
 
575
691
  #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:2
576
- #: ../lib/foreman_discovery/engine.rb:136
692
+ #: ../lib/foreman_discovery/engine.rb:147
577
693
  msgid "Discovered hosts"
578
694
  msgstr "Discovered hosts"
579
695
 
580
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:5
581
- msgid "items selected. Uncheck to Clear"
582
- msgstr "items selected. Uncheck to Clear"
583
-
584
696
  #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:5
585
697
  msgid "Select all items in this page"
586
698
  msgstr "Select all items in this page"
587
699
 
700
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:5
701
+ msgid "items selected. Uncheck to Clear"
702
+ msgstr "items selected. Uncheck to Clear"
703
+
588
704
  #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:6
589
705
  #: ../app/views/discovered_hosts/_selected_hosts.html.erb:7
590
706
  #: ../app/views/discovered_mailer/discovered_summary.html.erb:17
@@ -628,19 +744,27 @@ msgstr "Subnet"
628
744
  msgid "Last facts upload"
629
745
  msgstr "Last facts upload"
630
746
 
631
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:46
632
- msgid "Delete %s?"
633
- msgstr "Delete %s?"
747
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:48
748
+ msgid "Select initial host properties"
749
+ msgstr ""
750
+
751
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:65
752
+ msgid "Quick create"
753
+ msgstr ""
754
+
755
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:66
756
+ msgid "Create host"
757
+ msgstr ""
634
758
 
635
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:57
759
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:88
636
760
  msgid "Please Confirm"
637
761
  msgstr "Please Confirm"
638
762
 
639
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:63
763
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:94
640
764
  msgid "Cancel"
641
765
  msgstr "Cancel"
642
766
 
643
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:64
767
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:95
644
768
  msgid "Submit"
645
769
  msgstr "Submit"
646
770
 
@@ -674,6 +798,10 @@ msgstr "Select organisation"
674
798
  msgid "Discovered host: %s"
675
799
  msgstr "Discovered host: %s"
676
800
 
801
+ #: ../app/views/discovered_hosts/show.html.erb:24
802
+ msgid "Interfaces"
803
+ msgstr "Interfaces"
804
+
677
805
  #: ../app/views/discovered_hosts/show.html.erb:32
678
806
  msgid "Identifier"
679
807
  msgstr "Identifier"
@@ -737,41 +865,51 @@ msgid "Template"
737
865
  msgstr "Template"
738
866
 
739
867
  #: ../app/views/discovery_rules/_form.html.erb:26
740
- msgid ""
741
- "Specify target hostname template pattern in the same syntax as in "
742
- "Provisioning Templates (ERB)."
743
- msgstr "Specify target hostname template pattern in the same syntax as in Provisioning Templates (ERB)."
744
-
745
- #: ../app/views/discovery_rules/_form.html.erb:29
746
- msgid ""
747
- "Domain will be appended automatically. A hostname based on MAC address will "
748
- "be used when left blank. In addition to @host attribute function rand for "
749
- "random integers is available. Examples:"
750
- msgstr "Domain will be appended automatically. A hostname based on MAC address will be used when left blank. In addition to @host attribute function rand for random integers is available. Examples:"
751
-
752
- #: ../app/views/discovery_rules/_form.html.erb:42
753
- msgid ""
754
- "When creating hostname patterns, make sure the resulting host names are "
755
- "unique. Hostnames must not start with numbers. A good approach is to use "
756
- "unique information provided by facter (MAC address, BIOS or serial ID)."
757
- msgstr "When creating hostname patterns, make sure the resulting host names are unique. Hostnames must not start with numbers. A good approach is to use unique information provided by facter (MAC address, BIOS or serial ID)."
758
-
759
- #: ../app/views/discovery_rules/_form.html.erb:43
760
868
  msgid "Hostname for provisioned hosts"
761
869
  msgstr "Hostname for provisioned hosts"
762
870
 
763
- #: ../app/views/discovery_rules/_form.html.erb:44
871
+ #: ../app/views/discovery_rules/_form.html.erb:27
764
872
  msgid "Hosts limit"
765
873
  msgstr "Hosts limit"
766
874
 
767
- #: ../app/views/discovery_rules/_form.html.erb:44
875
+ #: ../app/views/discovery_rules/_form.html.erb:27
768
876
  msgid "Maximum hosts provisioned with this rule (0 = unlimited)"
769
877
  msgstr "Maximum hosts provisioned with this rule (0 = unlimited)"
770
878
 
771
- #: ../app/views/discovery_rules/_form.html.erb:45
879
+ #: ../app/views/discovery_rules/_form.html.erb:28
772
880
  msgid "Rule priority (lower integer means higher priority)"
773
881
  msgstr "Rule priority (lower integer means higher priority)"
774
882
 
883
+ #: ../app/views/discovery_rules/_template_inline.erb:2
884
+ msgid ""
885
+ "Specify target hostname template pattern in the same syntax as in "
886
+ "Provisioning Templates (ERB)."
887
+ msgstr "Specify target hostname template pattern in the same syntax as in Provisioning Templates (ERB)."
888
+
889
+ #: ../app/views/discovery_rules/_template_inline.erb:4
890
+ msgid ""
891
+ "Domain will be appended automatically. A hostname based on MAC address will "
892
+ "be used when left blank."
893
+ msgstr ""
894
+
895
+ #: ../app/views/discovery_rules/_template_inline.erb:5
896
+ msgid ""
897
+ "In addition to @host attribute function rand for random integers is "
898
+ "available. Examples:"
899
+ msgstr ""
900
+
901
+ #: ../app/views/discovery_rules/_template_inline.erb:8
902
+ msgid ""
903
+ "When creating hostname patterns, make sure the resulting host names are "
904
+ "unique."
905
+ msgstr ""
906
+
907
+ #: ../app/views/discovery_rules/_template_inline.erb:9
908
+ msgid ""
909
+ "Hostnames must not start with numbers. A good approach is to use unique "
910
+ "information provided by facter (MAC address, BIOS or serial ID)."
911
+ msgstr ""
912
+
775
913
  #: ../app/views/discovery_rules/edit.html.erb:1
776
914
  msgid "Edit Discovery Rule"
777
915
  msgstr "Edit Discovery Rule"
@@ -816,10 +954,10 @@ msgstr "New Discovery Rule"
816
954
  msgid "A summary of discovered hosts"
817
955
  msgstr "A summary of discovered hosts"
818
956
 
819
- #: ../lib/foreman_discovery/engine.rb:141
957
+ #: ../lib/foreman_discovery/engine.rb:152
820
958
  msgid "Discovery rules"
821
959
  msgstr "Discovery rules"
822
960
 
823
- #: ../lib/foreman_discovery/engine.rb:146
961
+ #: ../lib/foreman_discovery/engine.rb:157
824
962
  msgid "Discovery widget"
825
963
  msgstr "Discovery widget"