foreman_discovery 18.0.4 → 19.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/concerns/foreman/controller/parameters/discovered_host.rb +16 -4
  3. data/app/controllers/discovered_hosts_controller.rb +3 -0
  4. data/app/helpers/discovered_hosts_helper.rb +2 -3
  5. data/app/models/host/discovered.rb +6 -1
  6. data/app/services/foreman_discovery/subnet_suggestion.rb +8 -1
  7. data/app/views/discovered_hosts/welcome.html.erb +1 -1
  8. data/app/views/discovery_rules/welcome.html.erb +1 -1
  9. data/app/views/foreman_discovery/redhat_kexec.erb +2 -2
  10. data/lib/foreman_discovery/engine.rb +2 -2
  11. data/lib/foreman_discovery/version.rb +1 -1
  12. data/locale/ca/LC_MESSAGES/foreman_discovery.mo +0 -0
  13. data/locale/ca/foreman_discovery.edit.po +41 -41
  14. data/locale/ca/foreman_discovery.po +5 -5
  15. data/locale/de/LC_MESSAGES/foreman_discovery.mo +0 -0
  16. data/locale/de/foreman_discovery.edit.po +74 -73
  17. data/locale/de/foreman_discovery.po +38 -37
  18. data/locale/en/LC_MESSAGES/foreman_discovery.mo +0 -0
  19. data/locale/en/foreman_discovery.edit.po +36 -36
  20. data/locale/en/foreman_discovery.po +1 -1
  21. data/locale/en_GB/LC_MESSAGES/foreman_discovery.mo +0 -0
  22. data/locale/en_GB/foreman_discovery.edit.po +38 -38
  23. data/locale/en_GB/foreman_discovery.po +2 -2
  24. data/locale/es/LC_MESSAGES/foreman_discovery.mo +0 -0
  25. data/locale/es/foreman_discovery.edit.po +39 -39
  26. data/locale/es/foreman_discovery.po +3 -3
  27. data/locale/foreman_discovery.pot +38 -38
  28. data/locale/fr/LC_MESSAGES/foreman_discovery.mo +0 -0
  29. data/locale/fr/foreman_discovery.edit.po +39 -39
  30. data/locale/fr/foreman_discovery.po +3 -3
  31. data/locale/gl/LC_MESSAGES/foreman_discovery.mo +0 -0
  32. data/locale/gl/foreman_discovery.edit.po +39 -39
  33. data/locale/gl/foreman_discovery.po +3 -3
  34. data/locale/it/LC_MESSAGES/foreman_discovery.mo +0 -0
  35. data/locale/it/foreman_discovery.edit.po +39 -39
  36. data/locale/it/foreman_discovery.po +3 -3
  37. data/locale/ja/LC_MESSAGES/foreman_discovery.mo +0 -0
  38. data/locale/ja/foreman_discovery.edit.po +39 -39
  39. data/locale/ja/foreman_discovery.po +3 -3
  40. data/locale/ko/LC_MESSAGES/foreman_discovery.mo +0 -0
  41. data/locale/ko/foreman_discovery.edit.po +39 -39
  42. data/locale/ko/foreman_discovery.po +3 -3
  43. data/locale/pt_BR/LC_MESSAGES/foreman_discovery.mo +0 -0
  44. data/locale/pt_BR/foreman_discovery.edit.po +39 -39
  45. data/locale/pt_BR/foreman_discovery.po +3 -3
  46. data/locale/ru/LC_MESSAGES/foreman_discovery.mo +0 -0
  47. data/locale/ru/foreman_discovery.edit.po +39 -39
  48. data/locale/ru/foreman_discovery.po +3 -3
  49. data/locale/sv_SE/LC_MESSAGES/foreman_discovery.mo +0 -0
  50. data/locale/sv_SE/foreman_discovery.edit.po +39 -39
  51. data/locale/sv_SE/foreman_discovery.po +3 -3
  52. data/locale/zh_CN/LC_MESSAGES/foreman_discovery.mo +0 -0
  53. data/locale/zh_CN/foreman_discovery.edit.po +39 -39
  54. data/locale/zh_CN/foreman_discovery.po +3 -3
  55. data/locale/zh_TW/LC_MESSAGES/foreman_discovery.mo +0 -0
  56. data/locale/zh_TW/foreman_discovery.edit.po +39 -39
  57. data/locale/zh_TW/foreman_discovery.po +3 -3
  58. data/test/unit/managed_extensions_test.rb +1 -1
  59. metadata +5 -5
@@ -5,11 +5,11 @@
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: foreman_discovery 17.1.0\n"
8
+ "Project-Id-Version: foreman_discovery 18.0.1\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2021-09-20 17:25+0200\n"
11
- "PO-Revision-Date: 2021-05-03 08:29+0000\n"
12
- "Last-Translator: 0868a4d1af5275b3f70b0a6dac4c99a4\n"
10
+ "POT-Creation-Date: 2021-11-25 10:15+0100\n"
11
+ "PO-Revision-Date: 2021-09-20 17:24+0000\n"
12
+ "Last-Translator: Transifex Bot <>\n"
13
13
  "Language-Team: Chinese (Taiwan) (http://www.transifex.com/foreman/foreman/lang"
14
14
  "uage/zh_TW/)\n"
15
15
  "MIME-Version: 1.0\n"
@@ -118,7 +118,7 @@ msgstr ""
118
118
  msgid "Execute rules against a discovered host"
119
119
  msgstr ""
120
120
 
121
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:136 ../app/controllers/discovered_hosts_controller.rb:160
121
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:136 ../app/controllers/discovered_hosts_controller.rb:163
122
122
  msgid "Host %{host} was provisioned with rule %{rule}"
123
123
  msgstr ""
124
124
 
@@ -126,7 +126,7 @@ msgstr ""
126
126
  msgid "Unable to provision %{host}: %{errors}"
127
127
  msgstr ""
128
128
 
129
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:145 ../app/controllers/discovered_hosts_controller.rb:167
129
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:145 ../app/controllers/discovered_hosts_controller.rb:170
130
130
  msgid "No rule found for host %s"
131
131
  msgstr ""
132
132
 
@@ -134,11 +134,11 @@ msgstr ""
134
134
  msgid "Execute rules against all currently discovered hosts"
135
135
  msgstr ""
136
136
 
137
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:156 ../app/controllers/discovered_hosts_controller.rb:173
137
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:156 ../app/controllers/discovered_hosts_controller.rb:176
138
138
  msgid "Errors during auto provisioning: %s"
139
139
  msgstr ""
140
140
 
141
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:159 ../app/controllers/discovered_hosts_controller.rb:176
141
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:159 ../app/controllers/discovered_hosts_controller.rb:179
142
142
  msgid "No discovered hosts to provision"
143
143
  msgstr ""
144
144
 
@@ -158,7 +158,7 @@ msgstr ""
158
158
  msgid "Rebooting all discovered hosts"
159
159
  msgstr ""
160
160
 
161
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:221 ../app/controllers/discovered_hosts_controller.rb:129
161
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:221 ../app/controllers/discovered_hosts_controller.rb:132
162
162
  msgid "Discovered hosts are rebooting now"
163
163
  msgstr ""
164
164
 
@@ -238,75 +238,75 @@ msgstr ""
238
238
  msgid "No discovered hosts to reboot"
239
239
  msgstr ""
240
240
 
241
- #: ../app/controllers/discovered_hosts_controller.rb:63
241
+ #: ../app/controllers/discovered_hosts_controller.rb:66
242
242
  msgid "Successfully provisioned %s"
243
243
  msgstr ""
244
244
 
245
- #: ../app/controllers/discovered_hosts_controller.rb:97
245
+ #: ../app/controllers/discovered_hosts_controller.rb:100
246
246
  msgid "Facts refreshed for %s"
247
247
  msgstr "%s 的詳情已刷新"
248
248
 
249
- #: ../app/controllers/discovered_hosts_controller.rb:99
249
+ #: ../app/controllers/discovered_hosts_controller.rb:102
250
250
  msgid "Failed to refresh facts for %s"
251
251
  msgstr "刷新 %s 的詳情失敗"
252
252
 
253
- #: ../app/controllers/discovered_hosts_controller.rb:102
253
+ #: ../app/controllers/discovered_hosts_controller.rb:105
254
254
  msgid "Failed to refresh facts for %{hostname} with error %{error_message}"
255
255
  msgstr ""
256
256
 
257
- #: ../app/controllers/discovered_hosts_controller.rb:109
257
+ #: ../app/controllers/discovered_hosts_controller.rb:112
258
258
  msgid "Host of type %s can not be rebooted"
259
259
  msgstr ""
260
260
 
261
- #: ../app/controllers/discovered_hosts_controller.rb:113
261
+ #: ../app/controllers/discovered_hosts_controller.rb:116
262
262
  msgid "Rebooting host %s"
263
263
  msgstr ""
264
264
 
265
- #: ../app/controllers/discovered_hosts_controller.rb:115
265
+ #: ../app/controllers/discovered_hosts_controller.rb:118
266
266
  msgid "Failed to reboot host %s"
267
267
  msgstr ""
268
268
 
269
- #: ../app/controllers/discovered_hosts_controller.rb:118
269
+ #: ../app/controllers/discovered_hosts_controller.rb:121
270
270
  msgid "Failed to reboot host %{hostname} with error %{error_message}"
271
271
  msgstr ""
272
272
 
273
- #: ../app/controllers/discovered_hosts_controller.rb:132
273
+ #: ../app/controllers/discovered_hosts_controller.rb:135
274
274
  msgid "Failed to reboot hosts with error %s"
275
275
  msgstr ""
276
276
 
277
- #: ../app/controllers/discovered_hosts_controller.rb:150
277
+ #: ../app/controllers/discovered_hosts_controller.rb:153
278
278
  msgid "Destroyed selected hosts"
279
279
  msgstr "刪除選擇的主機"
280
280
 
281
- #: ../app/controllers/discovered_hosts_controller.rb:152
281
+ #: ../app/controllers/discovered_hosts_controller.rb:155
282
282
  msgid "The following hosts were not deleted: %s"
283
283
  msgstr "下列主機尚未刪除:%s"
284
284
 
285
- #: ../app/controllers/discovered_hosts_controller.rb:164
285
+ #: ../app/controllers/discovered_hosts_controller.rb:167
286
286
  msgid "Failed to auto provision host %s: %s"
287
287
  msgstr ""
288
288
 
289
- #: ../app/controllers/discovered_hosts_controller.rb:192
289
+ #: ../app/controllers/discovered_hosts_controller.rb:195
290
290
  msgid "Discovered hosts are provisioning now"
291
291
  msgstr ""
292
292
 
293
- #: ../app/controllers/discovered_hosts_controller.rb:277
293
+ #: ../app/controllers/discovered_hosts_controller.rb:280
294
294
  msgid "Discovered host reported from unknown subnet, communication will not be proxied."
295
295
  msgstr ""
296
296
 
297
- #: ../app/controllers/discovered_hosts_controller.rb:282
297
+ #: ../app/controllers/discovered_hosts_controller.rb:285
298
298
  msgid "Discovered hosts reported from unknown subnet are %s, communication will not be proxied."
299
299
  msgstr ""
300
300
 
301
- #: ../app/controllers/discovered_hosts_controller.rb:296
301
+ #: ../app/controllers/discovered_hosts_controller.rb:299
302
302
  msgid "No hosts were found with that id or name"
303
303
  msgstr "沒有找到擁有此 ID 或名稱的主機"
304
304
 
305
- #: ../app/controllers/discovered_hosts_controller.rb:300
305
+ #: ../app/controllers/discovered_hosts_controller.rb:303
306
306
  msgid "No hosts selected"
307
307
  msgstr "未選擇主機"
308
308
 
309
- #: ../app/controllers/discovered_hosts_controller.rb:306
309
+ #: ../app/controllers/discovered_hosts_controller.rb:309
310
310
  msgid "Something went wrong while selecting hosts - %s"
311
311
  msgstr "選擇主機時發生了錯誤 - %s"
312
312
 
@@ -378,7 +378,7 @@ msgstr ""
378
378
  msgid "Provision"
379
379
  msgstr "佈建"
380
380
 
381
- #: ../app/helpers/discovery_rules_helper.rb:26 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:1 ../app/views/discovered_hosts/welcome.html.erb:8 ../lib/foreman_discovery/engine.rb:159 ../lib/foreman_discovery/engine.rb:174
381
+ #: ../app/helpers/discovery_rules_helper.rb:26 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:1 ../app/views/discovered_hosts/welcome.html.erb:8 ../lib/foreman_discovery/engine.rb:160 ../lib/foreman_discovery/engine.rb:175
382
382
  msgid "Discovered Hosts"
383
383
  msgstr ""
384
384
 
@@ -466,27 +466,27 @@ msgstr ""
466
466
  msgid "Invalid facts: hash does not contain a valid value for any of the facts in the discovery_hostname setting: %s"
467
467
  msgstr ""
468
468
 
469
- #: ../app/models/host/discovered.rb:100
469
+ #: ../app/models/host/discovered.rb:102
470
470
  msgid "Facts could not be imported"
471
471
  msgstr ""
472
472
 
473
- #: ../app/models/host/discovered.rb:155
473
+ #: ../app/models/host/discovered.rb:160
474
474
  msgid "Could not get facts from proxy %{url}: %{error}"
475
475
  msgstr ""
476
476
 
477
- #: ../app/models/host/discovered.rb:173
477
+ #: ../app/models/host/discovered.rb:178
478
478
  msgid "Unable to perform reboot on %{name} (%{url}): %{msg}"
479
479
  msgstr ""
480
480
 
481
- #: ../app/models/host/discovered.rb:177 ../app/models/host/discovered.rb:200
481
+ #: ../app/models/host/discovered.rb:182 ../app/models/host/discovered.rb:205
482
482
  msgid "Unable to perform %{action} on %{ips}"
483
483
  msgstr ""
484
484
 
485
- #: ../app/models/host/discovered.rb:196
485
+ #: ../app/models/host/discovered.rb:201
486
486
  msgid "Unable to perform kexec on %{name} (%{url}): %{msg}"
487
487
  msgstr ""
488
488
 
489
- #: ../app/models/host/discovered.rb:220
489
+ #: ../app/models/host/discovered.rb:225
490
490
  msgid "Invalid hostname: Could not normalize the hostname"
491
491
  msgstr ""
492
492
 
@@ -988,7 +988,7 @@ msgstr "複製 %s"
988
988
  msgid "Edit %s"
989
989
  msgstr "編輯 %s"
990
990
 
991
- #: ../app/views/discovery_rules/index.html.erb:1 ../lib/foreman_discovery/engine.rb:164
991
+ #: ../app/views/discovery_rules/index.html.erb:1 ../lib/foreman_discovery/engine.rb:165
992
992
  msgid "Discovery Rules"
993
993
  msgstr ""
994
994
 
@@ -1056,19 +1056,19 @@ msgstr "主機"
1056
1056
  msgid "Error message goes here"
1057
1057
  msgstr ""
1058
1058
 
1059
- #: ../lib/foreman_discovery/engine.rb:176
1059
+ #: ../lib/foreman_discovery/engine.rb:177
1060
1060
  msgid "Discovery Kexec template"
1061
1061
  msgstr ""
1062
1062
 
1063
- #: ../lib/foreman_discovery/engine.rb:185
1063
+ #: ../lib/foreman_discovery/engine.rb:186
1064
1064
  msgid "Discovery Proxy"
1065
1065
  msgstr ""
1066
1066
 
1067
- #: ../lib/foreman_discovery/engine.rb:186
1067
+ #: ../lib/foreman_discovery/engine.rb:187
1068
1068
  msgid "Discovery Proxy to use within this subnet for managing connection to discovered hosts"
1069
1069
  msgstr ""
1070
1070
 
1071
- #: ../lib/foreman_discovery/engine.rb:187
1071
+ #: ../lib/foreman_discovery/engine.rb:188
1072
1072
  msgid "ID of Discovery Proxy to use within this subnet for managing connection to discovered hosts"
1073
1073
  msgstr ""
1074
1074
 
@@ -5,10 +5,10 @@
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: foreman_discovery 17.1.0\n"
8
+ "Project-Id-Version: foreman_discovery 18.0.1\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
- "PO-Revision-Date: 2021-05-03 08:29+0000\n"
11
- "Last-Translator: 0868a4d1af5275b3f70b0a6dac4c99a4\n"
10
+ "PO-Revision-Date: 2021-09-20 17:24+0000\n"
11
+ "Last-Translator: Transifex Bot <>\n"
12
12
  "Language-Team: Chinese (Taiwan) (http://www.transifex.com/foreman/foreman/lang"
13
13
  "uage/zh_TW/)\n"
14
14
  "MIME-Version: 1.0\n"
@@ -91,7 +91,7 @@ class ManagedExtensionsTest < ActiveSupport::TestCase
91
91
 
92
92
  test "kexec template is correctly rendered" do
93
93
  expected = {
94
- "append" => "ks=http://foreman.some.host.fqdn/unattended/provision&static=yes inst.ks.sendmac ip=::::::none nameserver= ksdevice=bootif BOOTIF= nomodeset nokaslr nomodeset",
94
+ "append" => "inst.ks=http://foreman.some.host.fqdn/unattended/provision&static=yes inst.ks.sendmac ip=::::::none nameserver= ksdevice=bootif BOOTIF= nomodeset nokaslr nomodeset",
95
95
  "extra" => []
96
96
  }
97
97
  assert @host.operatingsystem.respond_to?(:pxe_type)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_discovery
3
3
  version: !ruby/object:Gem::Version
4
- version: 18.0.4
4
+ version: 19.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aditi Puntambekar
@@ -74,7 +74,7 @@ authors:
74
74
  autorequire:
75
75
  bindir: bin
76
76
  cert_chain: []
77
- date: 2021-10-18 00:00:00.000000000 Z
77
+ date: 2022-02-11 00:00:00.000000000 Z
78
78
  dependencies: []
79
79
  description: MaaS Discovery Plugin engine for Foreman
80
80
  email: gsutclif@redhat.com
@@ -362,10 +362,10 @@ test_files:
362
362
  - test/unit/lldp_neighbors_test.rb
363
363
  - test/unit/discovery_rule_test.rb
364
364
  - test/unit/fact_to_category_resolver_test.rb
365
- - test/unit/managed_extensions_test.rb
366
- - test/unit/host_discovered_test.rb
367
- - test/unit/discovered_extensions_test.rb
368
365
  - test/unit/discovery_attribute_set_test.rb
369
366
  - test/unit/fact_parser_test.rb
367
+ - test/unit/discovered_extensions_test.rb
368
+ - test/unit/host_discovered_test.rb
369
+ - test/unit/managed_extensions_test.rb
370
370
  - test/test_helper_discovery.rb
371
371
  - test/test_plugin_helper.rb