foreman_discovery 16.3.5 → 17.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/api/v2/discovered_hosts_controller.rb +1 -0
- data/app/controllers/discovered_hosts_controller.rb +24 -35
- data/app/controllers/discovery_rules_controller.rb +12 -1
- data/app/helpers/discovered_hosts_helper.rb +1 -1
- data/app/helpers/discovery_rules_helper.rb +1 -0
- data/app/models/discovery_rule.rb +10 -5
- data/app/services/foreman_discovery/fact_to_category_resolver.rb +106 -0
- data/app/services/foreman_discovery/ui_notifications/failed_discovery.rb +34 -0
- data/app/services/foreman_discovery/ui_notifications/new_host.rb +2 -1
- data/app/views/discovered_hosts/_discovered_hosts_list.html.erb +44 -40
- data/app/views/discovery_rules/clone.erb +3 -0
- data/app/views/discovery_rules/index.html.erb +4 -0
- data/app/views/discovery_rules/welcome.html.erb +15 -0
- data/app/views/foreman_discovery/debian_kexec.erb +1 -1
- data/app/views/foreman_discovery/redhat_kexec.erb +1 -1
- data/config/routes.rb +2 -0
- data/db/seeds.d/80_discovery_ui_notification.rb +11 -5
- data/lib/foreman_discovery/engine.rb +3 -7
- data/lib/foreman_discovery/version.rb +1 -1
- data/locale/ca/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/ca/foreman_discovery.edit.po +103 -70
- data/locale/ca/foreman_discovery.po +36 -9
- data/locale/de/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/de/foreman_discovery.edit.po +109 -76
- data/locale/de/foreman_discovery.po +45 -18
- data/locale/en/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/en/foreman_discovery.edit.po +98 -66
- data/locale/en/foreman_discovery.po +31 -4
- data/locale/en_GB/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/en_GB/foreman_discovery.edit.po +107 -74
- data/locale/en_GB/foreman_discovery.po +36 -9
- data/locale/es/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/es/foreman_discovery.edit.po +109 -76
- data/locale/es/foreman_discovery.po +70 -41
- data/locale/foreman_discovery.pot +142 -97
- data/locale/fr/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/fr/foreman_discovery.edit.po +151 -118
- data/locale/fr/foreman_discovery.po +76 -49
- data/locale/gl/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/gl/foreman_discovery.edit.po +101 -68
- data/locale/gl/foreman_discovery.po +32 -5
- data/locale/it/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/it/foreman_discovery.edit.po +107 -74
- data/locale/it/foreman_discovery.po +44 -17
- data/locale/ja/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/ja/foreman_discovery.edit.po +136 -103
- data/locale/ja/foreman_discovery.po +79 -54
- data/locale/ko/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/ko/foreman_discovery.edit.po +107 -74
- data/locale/ko/foreman_discovery.po +43 -16
- data/locale/pt_BR/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/pt_BR/foreman_discovery.edit.po +109 -76
- data/locale/pt_BR/foreman_discovery.po +69 -39
- data/locale/ru/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/ru/foreman_discovery.edit.po +112 -79
- data/locale/ru/foreman_discovery.po +43 -16
- data/locale/sv_SE/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/sv_SE/foreman_discovery.edit.po +101 -68
- data/locale/sv_SE/foreman_discovery.po +34 -7
- data/locale/zh_CN/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/zh_CN/foreman_discovery.edit.po +153 -120
- data/locale/zh_CN/foreman_discovery.po +114 -90
- data/locale/zh_TW/LC_MESSAGES/foreman_discovery.mo +0 -0
- data/locale/zh_TW/foreman_discovery.edit.po +107 -74
- data/locale/zh_TW/foreman_discovery.po +43 -16
- data/package.json +6 -6
- data/test/functional/api/v2/discovered_hosts_controller_test.rb +9 -0
- data/test/functional/discovery_rules_controller_test.rb +6 -1
- data/test/integration/discovered_hosts_test.rb +53 -5
- data/test/test_helper_discovery.rb +5 -0
- data/test/unit/discovery_rule_test.rb +24 -2
- data/test/unit/fact_to_category_resolver_test.rb +41 -0
- data/test/unit/ui_notifications/destroy_host_test.rb +2 -9
- data/test/unit/ui_notifications/new_host_test.rb +3 -3
- data/webpack/__mocks__/foremanReact/common/I18n.js +3 -0
- data/webpack/__mocks__/foremanReact/common/helpers.js +1 -0
- data/webpack/__mocks__/foremanReact/common/index.js +5 -0
- data/webpack/__mocks__/foremanReact/components/common/EmptyState/DefaultEmptyState.js +69 -0
- data/webpack/__mocks__/foremanReact/components/common/EmptyState/EmptyStatePattern.js +77 -0
- data/webpack/__mocks__/foremanReact/components/common/EmptyState/EmptyStatePropTypes.js +29 -0
- data/webpack/__mocks__/foremanReact/components/common/EmptyState/index.js +5 -0
- data/webpack/index.js +9 -8
- data/webpack/src/ForemanDiscovery/DiscoveredHosts/Components/EmptyState/EmptyState.js +7 -7
- data/webpack/src/ForemanDiscovery/DiscoveredHosts/Components/EmptyState/__test__/EmptyState.test.js +12 -0
- data/webpack/src/ForemanDiscovery/DiscoveredHosts/Components/EmptyState/__test__/__snapshots__/EmptyState.test.js.snap +16 -0
- data/webpack/src/ForemanDiscovery/DiscoveredHosts/Components/EmptyState/index.js +1 -1
- data/webpack/src/ForemanDiscovery/DiscoveredHosts/index.js +3 -3
- data/webpack/src/ForemanDiscovery/DiscoveryRules/Components/EmptyState/EmptyState.js +34 -0
- data/webpack/src/ForemanDiscovery/DiscoveryRules/Components/EmptyState/index.js +1 -0
- data/webpack/src/ForemanDiscovery/DiscoveryRules/Components/__test__/EmptyState.test.js +19 -0
- data/webpack/src/ForemanDiscovery/DiscoveryRules/Components/__test__/__snapshots__/EmptyState.test.js.snap +22 -0
- data/webpack/src/ForemanDiscovery/DiscoveryRules/index.js +6 -0
- data/webpack/src/reducers.js +0 -2
- metadata +32 -10
@@ -5,10 +5,11 @@
|
|
5
5
|
# Translators:
|
6
6
|
msgid ""
|
7
7
|
msgstr ""
|
8
|
-
"Project-Id-Version: foreman_discovery
|
8
|
+
"Project-Id-Version: foreman_discovery 17.1.0\n"
|
9
9
|
"Report-Msgid-Bugs-To: \n"
|
10
|
-
"
|
11
|
-
"
|
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"
|
12
13
|
"Language-Team: Chinese (Taiwan) (http://www.transifex.com/foreman/foreman/lang"
|
13
14
|
"uage/zh_TW/)\n"
|
14
15
|
"MIME-Version: 1.0\n"
|
@@ -113,51 +114,51 @@ msgstr "上傳主機的詳情,並視需求建立主機"
|
|
113
114
|
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)"
|
114
115
|
msgstr ""
|
115
116
|
|
116
|
-
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:
|
117
|
+
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:130
|
117
118
|
msgid "Execute rules against a discovered host"
|
118
119
|
msgstr ""
|
119
120
|
|
120
|
-
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:
|
121
|
+
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:136 ../app/controllers/discovered_hosts_controller.rb:160
|
121
122
|
msgid "Host %{host} was provisioned with rule %{rule}"
|
122
123
|
msgstr ""
|
123
124
|
|
124
|
-
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:
|
125
|
+
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:139
|
125
126
|
msgid "Unable to provision %{host}: %{errors}"
|
126
127
|
msgstr ""
|
127
128
|
|
128
|
-
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:
|
129
|
+
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:145 ../app/controllers/discovered_hosts_controller.rb:167
|
129
130
|
msgid "No rule found for host %s"
|
130
131
|
msgstr ""
|
131
132
|
|
132
|
-
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:
|
133
|
+
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:152
|
133
134
|
msgid "Execute rules against all currently discovered hosts"
|
134
135
|
msgstr ""
|
135
136
|
|
136
|
-
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:
|
137
|
+
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:156 ../app/controllers/discovered_hosts_controller.rb:173
|
137
138
|
msgid "Errors during auto provisioning: %s"
|
138
139
|
msgstr ""
|
139
140
|
|
140
|
-
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:
|
141
|
+
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:159 ../app/controllers/discovered_hosts_controller.rb:176
|
141
142
|
msgid "No discovered hosts to provision"
|
142
143
|
msgstr ""
|
143
144
|
|
144
|
-
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:
|
145
|
+
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:181
|
145
146
|
msgid "%s discovered hosts were provisioned"
|
146
147
|
msgstr ""
|
147
148
|
|
148
|
-
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:
|
149
|
+
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:192
|
149
150
|
msgid "Refreshing the facts of a discovered host"
|
150
151
|
msgstr ""
|
151
152
|
|
152
|
-
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:
|
153
|
+
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:201
|
153
154
|
msgid "Rebooting a discovered host"
|
154
155
|
msgstr ""
|
155
156
|
|
156
|
-
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:
|
157
|
+
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:210
|
157
158
|
msgid "Rebooting all discovered hosts"
|
158
159
|
msgstr ""
|
159
160
|
|
160
|
-
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:
|
161
|
+
#: ../app/controllers/api/v2/discovered_hosts_controller.rb:221 ../app/controllers/discovered_hosts_controller.rb:129
|
161
162
|
msgid "Discovered hosts are rebooting now"
|
162
163
|
msgstr ""
|
163
164
|
|
@@ -289,58 +290,34 @@ msgstr ""
|
|
289
290
|
msgid "Discovered hosts are provisioning now"
|
290
291
|
msgstr ""
|
291
292
|
|
292
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
293
|
-
msgid "
|
293
|
+
#: ../app/controllers/discovered_hosts_controller.rb:277
|
294
|
+
msgid "Discovered host reported from unknown subnet, communication will not be proxied."
|
294
295
|
msgstr ""
|
295
296
|
|
296
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
297
|
-
msgid "
|
298
|
-
msgstr "
|
299
|
-
|
300
|
-
#: ../app/controllers/discovered_hosts_controller.rb:226
|
301
|
-
msgid "Hardware"
|
302
|
-
msgstr "硬體"
|
303
|
-
|
304
|
-
#: ../app/controllers/discovered_hosts_controller.rb:226
|
305
|
-
msgid "Network"
|
306
|
-
msgstr "網路"
|
307
|
-
|
308
|
-
#: ../app/controllers/discovered_hosts_controller.rb:226
|
309
|
-
msgid "Software"
|
310
|
-
msgstr "軟體"
|
311
|
-
|
312
|
-
#: ../app/controllers/discovered_hosts_controller.rb:226
|
313
|
-
msgid "IPMI"
|
314
|
-
msgstr "IPMI"
|
315
|
-
|
316
|
-
#: ../app/controllers/discovered_hosts_controller.rb:226
|
317
|
-
msgid "Miscellaneous"
|
318
|
-
msgstr "雜項"
|
297
|
+
#: ../app/controllers/discovered_hosts_controller.rb:282
|
298
|
+
msgid "Discovered hosts reported from unknown subnet are %s, communication will not be proxied."
|
299
|
+
msgstr ""
|
319
300
|
|
320
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
301
|
+
#: ../app/controllers/discovered_hosts_controller.rb:296
|
321
302
|
msgid "No hosts were found with that id or name"
|
322
303
|
msgstr "沒有找到擁有此 ID 或名稱的主機"
|
323
304
|
|
324
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
305
|
+
#: ../app/controllers/discovered_hosts_controller.rb:300
|
325
306
|
msgid "No hosts selected"
|
326
307
|
msgstr "未選擇主機"
|
327
308
|
|
328
|
-
#: ../app/controllers/discovered_hosts_controller.rb:
|
309
|
+
#: ../app/controllers/discovered_hosts_controller.rb:306
|
329
310
|
msgid "Something went wrong while selecting hosts - %s"
|
330
311
|
msgstr "選擇主機時發生了錯誤 - %s"
|
331
312
|
|
332
|
-
#: ../app/controllers/discovery_rules_controller.rb:
|
313
|
+
#: ../app/controllers/discovery_rules_controller.rb:79
|
333
314
|
msgid "Rule enabled"
|
334
315
|
msgstr ""
|
335
316
|
|
336
|
-
#: ../app/controllers/discovery_rules_controller.rb:
|
317
|
+
#: ../app/controllers/discovery_rules_controller.rb:79
|
337
318
|
msgid "Rule disabled"
|
338
319
|
msgstr ""
|
339
320
|
|
340
|
-
#: ../app/helpers/discovered_hosts_helper.rb:10
|
341
|
-
msgid "%s ago"
|
342
|
-
msgstr "%s 之前"
|
343
|
-
|
344
321
|
#: ../app/helpers/discovered_hosts_helper.rb:14 ../app/helpers/discovered_hosts_helper.rb:29 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:40
|
345
322
|
msgid "Auto Provision"
|
346
323
|
msgstr ""
|
@@ -426,6 +403,10 @@ msgid "Enable rule '%s'?"
|
|
426
403
|
msgstr ""
|
427
404
|
|
428
405
|
#: ../app/helpers/discovery_rules_helper.rb:33
|
406
|
+
msgid "Clone"
|
407
|
+
msgstr "複製"
|
408
|
+
|
409
|
+
#: ../app/helpers/discovery_rules_helper.rb:34
|
429
410
|
msgid "Delete rule '%s'?"
|
430
411
|
msgstr ""
|
431
412
|
|
@@ -449,13 +430,13 @@ msgstr ""
|
|
449
430
|
msgid "must be present."
|
450
431
|
msgstr ""
|
451
432
|
|
452
|
-
#: ../app/models/discovery_rule.rb:
|
433
|
+
#: ../app/models/discovery_rule.rb:57
|
453
434
|
msgid "Host group organization %s must also be associated to the discovery rule"
|
454
435
|
msgid_plural "Host group organizations %s must also be associated to the discovery rule"
|
455
436
|
msgstr[0] ""
|
456
437
|
msgstr[1] ""
|
457
438
|
|
458
|
-
#: ../app/models/discovery_rule.rb:
|
439
|
+
#: ../app/models/discovery_rule.rb:61
|
459
440
|
msgid "Host group location %s must also be associated to the discovery rule"
|
460
441
|
msgid_plural "Host group locations %s must also be associated to the discovery rule"
|
461
442
|
msgstr[0] ""
|
@@ -489,23 +470,23 @@ msgstr ""
|
|
489
470
|
msgid "Facts could not be imported"
|
490
471
|
msgstr ""
|
491
472
|
|
492
|
-
#: ../app/models/host/discovered.rb:
|
473
|
+
#: ../app/models/host/discovered.rb:155
|
493
474
|
msgid "Could not get facts from proxy %{url}: %{error}"
|
494
475
|
msgstr ""
|
495
476
|
|
496
|
-
#: ../app/models/host/discovered.rb:
|
477
|
+
#: ../app/models/host/discovered.rb:173
|
497
478
|
msgid "Unable to perform reboot on %{name} (%{url}): %{msg}"
|
498
479
|
msgstr ""
|
499
480
|
|
500
|
-
#: ../app/models/host/discovered.rb:
|
481
|
+
#: ../app/models/host/discovered.rb:177 ../app/models/host/discovered.rb:200
|
501
482
|
msgid "Unable to perform %{action} on %{ips}"
|
502
483
|
msgstr ""
|
503
484
|
|
504
|
-
#: ../app/models/host/discovered.rb:
|
485
|
+
#: ../app/models/host/discovered.rb:196
|
505
486
|
msgid "Unable to perform kexec on %{name} (%{url}): %{msg}"
|
506
487
|
msgstr ""
|
507
488
|
|
508
|
-
#: ../app/models/host/discovered.rb:
|
489
|
+
#: ../app/models/host/discovered.rb:220
|
509
490
|
msgid "Invalid hostname: Could not normalize the hostname"
|
510
491
|
msgstr ""
|
511
492
|
|
@@ -713,6 +694,14 @@ msgstr ""
|
|
713
694
|
msgid "Type of name generator"
|
714
695
|
msgstr ""
|
715
696
|
|
697
|
+
#: ../app/models/setting/discovered.rb:40
|
698
|
+
msgid "Prefer IPv6 to IPv4 when calling discovered nodes"
|
699
|
+
msgstr ""
|
700
|
+
|
701
|
+
#: ../app/models/setting/discovered.rb:40
|
702
|
+
msgid "Prefer IPv6"
|
703
|
+
msgstr ""
|
704
|
+
|
716
705
|
#: ../app/services/foreman_discovery/fact_parser.rb:4
|
717
706
|
msgid "Discovery fact parser does not work with non-discovery host '%{host}'"
|
718
707
|
msgstr ""
|
@@ -725,6 +714,34 @@ msgstr ""
|
|
725
714
|
msgid "Unable to find primary NIC with %{mac} specified via '%{fact}', NIC filter: %{filter}"
|
726
715
|
msgstr ""
|
727
716
|
|
717
|
+
#: ../app/services/foreman_discovery/fact_to_category_resolver.rb:7
|
718
|
+
msgid "Highlights"
|
719
|
+
msgstr ""
|
720
|
+
|
721
|
+
#: ../app/services/foreman_discovery/fact_to_category_resolver.rb:8
|
722
|
+
msgid "Storage"
|
723
|
+
msgstr "儲存裝置"
|
724
|
+
|
725
|
+
#: ../app/services/foreman_discovery/fact_to_category_resolver.rb:9
|
726
|
+
msgid "Hardware"
|
727
|
+
msgstr "硬體"
|
728
|
+
|
729
|
+
#: ../app/services/foreman_discovery/fact_to_category_resolver.rb:10
|
730
|
+
msgid "Network"
|
731
|
+
msgstr "網路"
|
732
|
+
|
733
|
+
#: ../app/services/foreman_discovery/fact_to_category_resolver.rb:11
|
734
|
+
msgid "Software"
|
735
|
+
msgstr "軟體"
|
736
|
+
|
737
|
+
#: ../app/services/foreman_discovery/fact_to_category_resolver.rb:12
|
738
|
+
msgid "IPMI"
|
739
|
+
msgstr "IPMI"
|
740
|
+
|
741
|
+
#: ../app/services/foreman_discovery/fact_to_category_resolver.rb:13
|
742
|
+
msgid "Miscellaneous"
|
743
|
+
msgstr "雜項"
|
744
|
+
|
728
745
|
#: ../app/services/foreman_discovery/host_converter.rb:47
|
729
746
|
msgid "IPAM must be configured for subnet '%s'"
|
730
747
|
msgstr ""
|
@@ -737,6 +754,10 @@ msgstr ""
|
|
737
754
|
msgid "Image API processing error: %{msg} (HTTP/%{code}, body: %{body})"
|
738
755
|
msgstr ""
|
739
756
|
|
757
|
+
#: ../app/services/foreman_discovery/ui_notifications/new_host.rb:22
|
758
|
+
msgid "Host %s has been dicovered"
|
759
|
+
msgstr ""
|
760
|
+
|
740
761
|
#: ../app/views/dashboard/_discovery_widget.html.erb:5
|
741
762
|
msgid "Discovered Host"
|
742
763
|
msgid_plural "Discovered Hosts"
|
@@ -795,11 +816,11 @@ msgstr ""
|
|
795
816
|
msgid "Disks Size"
|
796
817
|
msgstr ""
|
797
818
|
|
798
|
-
#: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:16 ../app/views/discovered_hosts/_selected_hosts.html.erb:9
|
819
|
+
#: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:16 ../app/views/discovered_hosts/_selected_hosts.html.erb:9 ../app/views/discovery_rules/index.html.erb:11
|
799
820
|
msgid "Location"
|
800
821
|
msgstr "位置"
|
801
822
|
|
802
|
-
#: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:17 ../app/views/discovered_hosts/_selected_hosts.html.erb:10
|
823
|
+
#: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:17 ../app/views/discovered_hosts/_selected_hosts.html.erb:10 ../app/views/discovery_rules/index.html.erb:12
|
803
824
|
msgid "Organization"
|
804
825
|
msgstr "組織"
|
805
826
|
|
@@ -811,7 +832,7 @@ msgstr "子網路"
|
|
811
832
|
msgid "Last Facts Upload"
|
812
833
|
msgstr ""
|
813
834
|
|
814
|
-
#: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:20 ../app/views/discovery_rules/index.html.erb:
|
835
|
+
#: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:20 ../app/views/discovery_rules/index.html.erb:14
|
815
836
|
msgid "Actions"
|
816
837
|
msgstr "動作"
|
817
838
|
|
@@ -959,6 +980,10 @@ msgstr ""
|
|
959
980
|
msgid "Hostnames must not start with numbers. A good approach is to use unique information provided by facter (MAC address, BIOS or serial ID)."
|
960
981
|
msgstr ""
|
961
982
|
|
983
|
+
#: ../app/views/discovery_rules/clone.erb:1
|
984
|
+
msgid "Clone %s"
|
985
|
+
msgstr "複製 %s"
|
986
|
+
|
962
987
|
#: ../app/views/discovery_rules/edit.html.erb:1
|
963
988
|
msgid "Edit %s"
|
964
989
|
msgstr "編輯 %s"
|
@@ -991,7 +1016,7 @@ msgstr "主機群組"
|
|
991
1016
|
msgid "Hosts/Limit"
|
992
1017
|
msgstr ""
|
993
1018
|
|
994
|
-
#: ../app/views/discovery_rules/index.html.erb:
|
1019
|
+
#: ../app/views/discovery_rules/index.html.erb:13
|
995
1020
|
msgid "DiscoveryRule|Enabled"
|
996
1021
|
msgstr ""
|
997
1022
|
|
@@ -1012,8 +1037,8 @@ msgid "A summary of discovered hosts"
|
|
1012
1037
|
msgstr ""
|
1013
1038
|
|
1014
1039
|
#: ../db/seeds.d/80_discovery_ui_notification.rb:4
|
1015
|
-
msgid "
|
1016
|
-
msgstr "
|
1040
|
+
msgid "New hosts"
|
1041
|
+
msgstr ""
|
1017
1042
|
|
1018
1043
|
#: ../db/seeds.d/80_discovery_ui_notification.rb:6
|
1019
1044
|
msgid "One or more hosts have been discovered"
|
@@ -1023,19 +1048,27 @@ msgstr ""
|
|
1023
1048
|
msgid "Details"
|
1024
1049
|
msgstr "詳細資料"
|
1025
1050
|
|
1026
|
-
#: ../
|
1051
|
+
#: ../db/seeds.d/80_discovery_ui_notification.rb:18
|
1052
|
+
msgid "Hosts"
|
1053
|
+
msgstr "主機"
|
1054
|
+
|
1055
|
+
#: ../db/seeds.d/80_discovery_ui_notification.rb:20
|
1056
|
+
msgid "Error message goes here"
|
1057
|
+
msgstr ""
|
1058
|
+
|
1059
|
+
#: ../lib/foreman_discovery/engine.rb:176
|
1027
1060
|
msgid "Discovery Kexec template"
|
1028
1061
|
msgstr ""
|
1029
1062
|
|
1030
|
-
#: ../lib/foreman_discovery/engine.rb:
|
1063
|
+
#: ../lib/foreman_discovery/engine.rb:185
|
1031
1064
|
msgid "Discovery Proxy"
|
1032
1065
|
msgstr ""
|
1033
1066
|
|
1034
|
-
#: ../lib/foreman_discovery/engine.rb:
|
1067
|
+
#: ../lib/foreman_discovery/engine.rb:186
|
1035
1068
|
msgid "Discovery Proxy to use within this subnet for managing connection to discovered hosts"
|
1036
1069
|
msgstr ""
|
1037
1070
|
|
1038
|
-
#: ../lib/foreman_discovery/engine.rb:
|
1071
|
+
#: ../lib/foreman_discovery/engine.rb:187
|
1039
1072
|
msgid "ID of Discovery Proxy to use within this subnet for managing connection to discovered hosts"
|
1040
1073
|
msgstr ""
|
1041
1074
|
|
@@ -1048,17 +1081,17 @@ msgid "documentation"
|
|
1048
1081
|
msgstr ""
|
1049
1082
|
|
1050
1083
|
#: action_names.rb:2
|
1051
|
-
msgid "
|
1052
|
-
msgstr "
|
1084
|
+
msgid "Remote action:"
|
1085
|
+
msgstr "遠端動作:"
|
1053
1086
|
|
1054
1087
|
#: action_names.rb:3
|
1055
|
-
msgid "Import facts"
|
1056
|
-
msgstr "匯入詳情"
|
1057
|
-
|
1058
|
-
#: action_names.rb:4
|
1059
1088
|
msgid "Import Puppet classes"
|
1060
1089
|
msgstr "匯入 Puppet 類別"
|
1061
1090
|
|
1091
|
+
#: action_names.rb:4
|
1092
|
+
msgid "Import facts"
|
1093
|
+
msgstr "匯入詳情"
|
1094
|
+
|
1062
1095
|
#: action_names.rb:5
|
1063
|
-
msgid "
|
1064
|
-
msgstr "
|
1096
|
+
msgid "Action with sub plans"
|
1097
|
+
msgstr "有子計畫的動作"
|
@@ -5,9 +5,9 @@
|
|
5
5
|
# Translators:
|
6
6
|
msgid ""
|
7
7
|
msgstr ""
|
8
|
-
"Project-Id-Version: foreman_discovery 16.
|
8
|
+
"Project-Id-Version: foreman_discovery 16.3.4\n"
|
9
9
|
"Report-Msgid-Bugs-To: \n"
|
10
|
-
"PO-Revision-Date:
|
10
|
+
"PO-Revision-Date: 2021-01-25 08:35+0000\n"
|
11
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"
|
@@ -20,9 +20,6 @@ msgstr ""
|
|
20
20
|
msgid "%s - The following hosts are about to be changed"
|
21
21
|
msgstr "%s - 以下主機即將受到更改"
|
22
22
|
|
23
|
-
msgid "%s ago"
|
24
|
-
msgstr "%s 之前"
|
25
|
-
|
26
23
|
msgid "%s discovered hosts were provisioned"
|
27
24
|
msgstr ""
|
28
25
|
|
@@ -33,7 +30,7 @@ msgid "A summary of discovered hosts"
|
|
33
30
|
msgstr ""
|
34
31
|
|
35
32
|
msgid "Action with sub plans"
|
36
|
-
msgstr ""
|
33
|
+
msgstr "有子計畫的動作"
|
37
34
|
|
38
35
|
msgid "Actions"
|
39
36
|
msgstr "動作"
|
@@ -80,6 +77,12 @@ msgstr ""
|
|
80
77
|
msgid "Clean all reported facts during provisioning (except discovery facts)"
|
81
78
|
msgstr ""
|
82
79
|
|
80
|
+
msgid "Clone"
|
81
|
+
msgstr ""
|
82
|
+
|
83
|
+
msgid "Clone %s"
|
84
|
+
msgstr ""
|
85
|
+
|
83
86
|
msgid "Collapse All"
|
84
87
|
msgstr "全部收回"
|
85
88
|
|
@@ -145,9 +148,15 @@ msgstr[1] ""
|
|
145
148
|
msgid "Discovered Hosts"
|
146
149
|
msgstr ""
|
147
150
|
|
151
|
+
msgid "Discovered Rules"
|
152
|
+
msgstr ""
|
153
|
+
|
148
154
|
msgid "Discovered host '%{host}' has all NICs filtered out, filter: %{filter}"
|
149
155
|
msgstr ""
|
150
156
|
|
157
|
+
msgid "Discovered host reported from unknown subnet, communication will not be proxied."
|
158
|
+
msgstr ""
|
159
|
+
|
151
160
|
msgid "Discovered host: %s"
|
152
161
|
msgstr "發現的主機:%s"
|
153
162
|
|
@@ -160,6 +169,9 @@ msgstr ""
|
|
160
169
|
msgid "Discovered hosts from Foreman server at %{foreman_url}"
|
161
170
|
msgstr ""
|
162
171
|
|
172
|
+
msgid "Discovered hosts reported from unknown subnet are %s, communication will not be proxied."
|
173
|
+
msgstr ""
|
174
|
+
|
163
175
|
msgid "Discovered hosts summary"
|
164
176
|
msgstr ""
|
165
177
|
|
@@ -226,6 +238,9 @@ msgstr "啟用"
|
|
226
238
|
msgid "Enable rule '%s'?"
|
227
239
|
msgstr ""
|
228
240
|
|
241
|
+
msgid "Error message goes here"
|
242
|
+
msgstr ""
|
243
|
+
|
229
244
|
msgid "Error on existing NIC"
|
230
245
|
msgstr ""
|
231
246
|
|
@@ -280,6 +295,9 @@ msgstr "刷新 %s 的詳情失敗"
|
|
280
295
|
msgid "Failed to refresh facts for %{hostname} with error %{error_message}"
|
281
296
|
msgstr ""
|
282
297
|
|
298
|
+
msgid "For more information please see "
|
299
|
+
msgstr ""
|
300
|
+
|
283
301
|
msgid "Force DNS"
|
284
302
|
msgstr ""
|
285
303
|
|
@@ -304,6 +322,9 @@ msgstr ""
|
|
304
322
|
msgid "Host"
|
305
323
|
msgstr "主機"
|
306
324
|
|
325
|
+
msgid "Host %s has been dicovered"
|
326
|
+
msgstr ""
|
327
|
+
|
307
328
|
msgid "Host %{host} was provisioned with rule %{rule}"
|
308
329
|
msgstr ""
|
309
330
|
|
@@ -324,10 +345,10 @@ msgid "Host of type %s can not be rebooted"
|
|
324
345
|
msgstr ""
|
325
346
|
|
326
347
|
msgid "Host's owner type"
|
327
|
-
msgstr ""
|
348
|
+
msgstr "主機的擁有者類型"
|
328
349
|
|
329
350
|
msgid "Host's parameters (array or indexed hash)"
|
330
|
-
msgstr ""
|
351
|
+
msgstr "主機參數(陣列或索引過的雜湊)"
|
331
352
|
|
332
353
|
msgid "Hostname facts"
|
333
354
|
msgstr ""
|
@@ -378,10 +399,10 @@ msgid "Image API returned HTTP/%{code} with '%{body}"
|
|
378
399
|
msgstr ""
|
379
400
|
|
380
401
|
msgid "Import Puppet classes"
|
381
|
-
msgstr ""
|
402
|
+
msgstr "匯入 Puppet 類別"
|
382
403
|
|
383
404
|
msgid "Import facts"
|
384
|
-
msgstr ""
|
405
|
+
msgstr "匯入詳情"
|
385
406
|
|
386
407
|
msgid "In addition to @host attribute function rand for random integers is available. Examples:"
|
387
408
|
msgstr ""
|
@@ -471,7 +492,7 @@ msgid "Name"
|
|
471
492
|
msgstr "名稱"
|
472
493
|
|
473
494
|
msgid "Name of the parameter"
|
474
|
-
msgstr ""
|
495
|
+
msgstr "參數名稱"
|
475
496
|
|
476
497
|
msgid "Network"
|
477
498
|
msgstr "網路"
|
@@ -482,6 +503,9 @@ msgstr ""
|
|
482
503
|
msgid "New Discovery Rule"
|
483
504
|
msgstr ""
|
484
505
|
|
506
|
+
msgid "New hosts"
|
507
|
+
msgstr ""
|
508
|
+
|
485
509
|
msgid "New in the last 24 hours"
|
486
510
|
msgstr ""
|
487
511
|
|
@@ -534,7 +558,7 @@ msgid "PXELinux template to be used when pinning a host to discovery"
|
|
534
558
|
msgstr ""
|
535
559
|
|
536
560
|
msgid "Parameter value"
|
537
|
-
msgstr ""
|
561
|
+
msgstr "參數值"
|
538
562
|
|
539
563
|
msgid "Please Confirm"
|
540
564
|
msgstr "請確認"
|
@@ -600,7 +624,7 @@ msgid "Reloading kernel on %s"
|
|
600
624
|
msgstr ""
|
601
625
|
|
602
626
|
msgid "Remote action:"
|
603
|
-
msgstr ""
|
627
|
+
msgstr "遠端動作:"
|
604
628
|
|
605
629
|
msgid "Reported in the last 7 days"
|
606
630
|
msgstr ""
|
@@ -728,6 +752,9 @@ msgstr ""
|
|
728
752
|
msgid "defines a pattern to assign human-readable hostnames to the matching hosts"
|
729
753
|
msgstr ""
|
730
754
|
|
755
|
+
msgid "documentation"
|
756
|
+
msgstr ""
|
757
|
+
|
731
758
|
msgid "enables to limit maximum amount of provisioned hosts per rule"
|
732
759
|
msgstr ""
|
733
760
|
|
@@ -777,13 +804,13 @@ msgid "represents rule name shown to the users"
|
|
777
804
|
msgstr ""
|
778
805
|
|
779
806
|
msgid "required if host is managed and custom partition has not been defined"
|
780
|
-
msgstr ""
|
807
|
+
msgstr "若主機是個受管理的主機,並且尚未定義自訂分割區的話便需要"
|
781
808
|
|
782
809
|
msgid "required if host is managed and value is not inherited from host group"
|
783
|
-
msgstr ""
|
810
|
+
msgstr "若主機是個受管理的主機,並且值不是由主機群組所繼承的話便需要"
|
784
811
|
|
785
812
|
msgid "required if not imaged based provisioning and host is managed and value is not inherited from host group"
|
786
|
-
msgstr ""
|
813
|
+
msgstr "若不是基於映像檔的佈建,而主機受管理並且值並非由主機群組所繼承的話便需要"
|
787
814
|
|
788
815
|
msgid "required if value is not inherited from host group or default password in settings"
|
789
816
|
msgstr ""
|
data/package.json
CHANGED
@@ -21,15 +21,15 @@
|
|
21
21
|
"url": "http://projects.theforeman.org/projects/foreman_discovery/issues"
|
22
22
|
},
|
23
23
|
"peerDependencies": {
|
24
|
-
"@theforeman/vendor": "
|
24
|
+
"@theforeman/vendor": "^6.0.0"
|
25
25
|
},
|
26
26
|
"devDependencies": {
|
27
27
|
"@babel/core": "^7.7.0",
|
28
|
-
"@theforeman/builder": "^
|
29
|
-
"@theforeman/eslint-plugin-foreman": "
|
30
|
-
"@theforeman/stories": "^
|
31
|
-
"@theforeman/test": "^
|
32
|
-
"@theforeman/vendor-dev": "^
|
28
|
+
"@theforeman/builder": "^6.0.0",
|
29
|
+
"@theforeman/eslint-plugin-foreman": "^6.0.0",
|
30
|
+
"@theforeman/stories": "^6.0.0",
|
31
|
+
"@theforeman/test": "^8.0.0",
|
32
|
+
"@theforeman/vendor-dev": "^6.0.0",
|
33
33
|
"babel-eslint": "^10.0.3",
|
34
34
|
"eslint": "^6.7.2",
|
35
35
|
"prettier": "^1.19.1",
|
@@ -4,6 +4,8 @@ class Api::V2::DiscoveredHostsControllerTest < ActionController::TestCase
|
|
4
4
|
include FactImporterIsolation
|
5
5
|
allow_transactions_for_any_importer
|
6
6
|
|
7
|
+
alias_method :blueprint, :failed_discovery_blueprint
|
8
|
+
|
7
9
|
def switch_controller(klass)
|
8
10
|
old_controller = @controller
|
9
11
|
@controller = klass.new
|
@@ -26,6 +28,8 @@ class Api::V2::DiscoveredHostsControllerTest < ActionController::TestCase
|
|
26
28
|
set_default_settings
|
27
29
|
::ForemanDiscovery::NodeAPI::PowerService.any_instance.stubs(:reboot).returns(true)
|
28
30
|
::ForemanDiscovery::HostConverter.stubs(:unused_ip_for_host)
|
31
|
+
|
32
|
+
assert blueprint
|
29
33
|
end
|
30
34
|
|
31
35
|
def test_get_index
|
@@ -206,4 +210,9 @@ class Api::V2::DiscoveredHostsControllerTest < ActionController::TestCase
|
|
206
210
|
assert_response :success
|
207
211
|
end
|
208
212
|
|
213
|
+
def test_failed_discovery_notification
|
214
|
+
bad_facts = { this_is: 'bad' }
|
215
|
+
post :facts, params: { facts: bad_facts }
|
216
|
+
assert_equal 1, Notification.all.count
|
217
|
+
end
|
209
218
|
end
|
@@ -12,7 +12,6 @@ class DiscoveryRulesControllerTest < ActionController::TestCase
|
|
12
12
|
test "reader role should get index" do
|
13
13
|
get :index, params: {}, session: set_session_user_default_reader
|
14
14
|
assert_response :success
|
15
|
-
assert_not_nil assigns(:discovery_rules)
|
16
15
|
end
|
17
16
|
|
18
17
|
test "should get new" do
|
@@ -72,6 +71,12 @@ class DiscoveryRulesControllerTest < ActionController::TestCase
|
|
72
71
|
assert_redirected_to discovery_rules_path
|
73
72
|
end
|
74
73
|
|
74
|
+
test 'clone' do
|
75
|
+
rule = FactoryBot.create(:discovery_rule)
|
76
|
+
get :clone, params: { :id => rule.id }, session: set_session_user
|
77
|
+
assert_template 'clone'
|
78
|
+
end
|
79
|
+
|
75
80
|
private
|
76
81
|
|
77
82
|
def initialize_host
|