foreman_discovery 17.0.1 → 18.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/discovered_hosts_controller.rb +10 -3
  3. data/app/models/discovery_fact_name.rb +9 -0
  4. data/app/models/host/discovered.rb +26 -9
  5. data/app/models/host/managed_extensions.rb +2 -2
  6. data/app/models/setting/discovered.rb +1 -0
  7. data/app/services/discovery_fact_importer.rb +5 -0
  8. data/app/services/foreman_discovery/host_converter.rb +3 -3
  9. data/app/views/discovered_hosts/welcome.html.erb +0 -1
  10. data/app/views/discovery_rules/welcome.html.erb +0 -1
  11. data/lib/foreman_discovery/engine.rb +3 -1
  12. data/lib/foreman_discovery/version.rb +1 -1
  13. data/locale/ca/LC_MESSAGES/foreman_discovery.mo +0 -0
  14. data/locale/ca/foreman_discovery.edit.po +44 -40
  15. data/locale/ca/foreman_discovery.po +13 -7
  16. data/locale/de/LC_MESSAGES/foreman_discovery.mo +0 -0
  17. data/locale/de/foreman_discovery.edit.po +42 -38
  18. data/locale/de/foreman_discovery.po +11 -5
  19. data/locale/en/LC_MESSAGES/foreman_discovery.mo +0 -0
  20. data/locale/en/foreman_discovery.edit.po +37 -29
  21. data/locale/en/foreman_discovery.po +7 -1
  22. data/locale/en_GB/LC_MESSAGES/foreman_discovery.mo +0 -0
  23. data/locale/en_GB/foreman_discovery.edit.po +39 -35
  24. data/locale/en_GB/foreman_discovery.po +8 -2
  25. data/locale/es/LC_MESSAGES/foreman_discovery.mo +0 -0
  26. data/locale/es/foreman_discovery.edit.po +42 -38
  27. data/locale/es/foreman_discovery.po +11 -5
  28. data/locale/foreman_discovery.pot +38 -30
  29. data/locale/fr/LC_MESSAGES/foreman_discovery.mo +0 -0
  30. data/locale/fr/foreman_discovery.edit.po +88 -84
  31. data/locale/fr/foreman_discovery.po +57 -51
  32. data/locale/gl/LC_MESSAGES/foreman_discovery.mo +0 -0
  33. data/locale/gl/foreman_discovery.edit.po +42 -38
  34. data/locale/gl/foreman_discovery.po +11 -5
  35. data/locale/it/LC_MESSAGES/foreman_discovery.mo +0 -0
  36. data/locale/it/foreman_discovery.edit.po +42 -38
  37. data/locale/it/foreman_discovery.po +11 -5
  38. data/locale/ja/LC_MESSAGES/foreman_discovery.mo +0 -0
  39. data/locale/ja/foreman_discovery.edit.po +74 -70
  40. data/locale/ja/foreman_discovery.po +43 -37
  41. data/locale/ko/LC_MESSAGES/foreman_discovery.mo +0 -0
  42. data/locale/ko/foreman_discovery.edit.po +42 -38
  43. data/locale/ko/foreman_discovery.po +11 -5
  44. data/locale/pt_BR/LC_MESSAGES/foreman_discovery.mo +0 -0
  45. data/locale/pt_BR/foreman_discovery.edit.po +42 -38
  46. data/locale/pt_BR/foreman_discovery.po +11 -5
  47. data/locale/ru/LC_MESSAGES/foreman_discovery.mo +0 -0
  48. data/locale/ru/foreman_discovery.edit.po +46 -42
  49. data/locale/ru/foreman_discovery.po +15 -9
  50. data/locale/sv_SE/LC_MESSAGES/foreman_discovery.mo +0 -0
  51. data/locale/sv_SE/foreman_discovery.edit.po +42 -38
  52. data/locale/sv_SE/foreman_discovery.po +11 -5
  53. data/locale/zh_CN/LC_MESSAGES/foreman_discovery.mo +0 -0
  54. data/locale/zh_CN/foreman_discovery.edit.po +90 -86
  55. data/locale/zh_CN/foreman_discovery.po +59 -53
  56. data/locale/zh_TW/LC_MESSAGES/foreman_discovery.mo +0 -0
  57. data/locale/zh_TW/foreman_discovery.edit.po +42 -38
  58. data/locale/zh_TW/foreman_discovery.po +11 -5
  59. data/package.json +1 -1
  60. data/test/functional/api/v2/fact_value_extensions_test.rb +1 -4
  61. data/test/functional/discovered_hosts_controller_test.rb +6 -5
  62. data/test/integration/discovered_hosts_test.rb +10 -4
  63. data/test/test_helper_discovery.rb +35 -27
  64. data/test/test_plugin_helper.rb +7 -0
  65. data/test/unit/discovered_extensions_test.rb +36 -16
  66. data/test/unit/discovery_attribute_set_test.rb +2 -8
  67. data/test/unit/fact_parser_test.rb +1 -4
  68. data/test/unit/managed_extensions_test.rb +1 -0
  69. metadata +12 -15
  70. data/test/functional/api/v2/settings_controller_test.rb +0 -22
  71. data/test/models/setting_test.rb +0 -11
  72. data/test/unit/setting_discovered_test.rb +0 -9
@@ -5,9 +5,9 @@
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: foreman_discovery 16.3.4\n"
8
+ "Project-Id-Version: foreman_discovery 17.1.0\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
- "PO-Revision-Date: 2021-01-25 08:35+0000\n"
10
+ "PO-Revision-Date: 2021-05-18 15:01+0000\n"
11
11
  "Last-Translator: Amit Upadhye <aupadhye@redhat.com>\n"
12
12
  "Language-Team: Chinese (China) (http://www.transifex.com/foreman/foreman/langu"
13
13
  "age/zh_CN/)\n"
@@ -36,10 +36,10 @@ msgid "Actions"
36
36
  msgstr "操作"
37
37
 
38
38
  msgid "Assign Location"
39
- msgstr "指定位置"
39
+ msgstr "分配位置"
40
40
 
41
41
  msgid "Assign Organization"
42
- msgstr "指定組織"
42
+ msgstr "分配机构"
43
43
 
44
44
  msgid "Associated Hosts"
45
45
  msgstr "关联主机"
@@ -78,10 +78,10 @@ msgid "Clean all reported facts during provisioning (except discovery facts)"
78
78
  msgstr "置备期间清除所有报告的详情(发现详情除外)"
79
79
 
80
80
  msgid "Clone"
81
- msgstr ""
81
+ msgstr "克隆"
82
82
 
83
83
  msgid "Clone %s"
84
- msgstr ""
84
+ msgstr "克隆 %s"
85
85
 
86
86
  msgid "Collapse All"
87
87
  msgstr "全部折叠"
@@ -129,10 +129,10 @@ msgid "Delete rule '%s'?"
129
129
  msgstr "删除规则 '%s'?"
130
130
 
131
131
  msgid "Destroyed selected hosts"
132
- msgstr "刪除選擇的主機"
132
+ msgstr "销毁选定的主机"
133
133
 
134
134
  msgid "Details"
135
- msgstr "细节"
135
+ msgstr "详情"
136
136
 
137
137
  msgid "Disable"
138
138
  msgstr "禁用"
@@ -148,13 +148,13 @@ msgid "Discovered Hosts"
148
148
  msgstr "发现主机"
149
149
 
150
150
  msgid "Discovered Rules"
151
- msgstr ""
151
+ msgstr "发现规则"
152
152
 
153
153
  msgid "Discovered host '%{host}' has all NICs filtered out, filter: %{filter}"
154
154
  msgstr "发现的主机 '%{host}' 的所有 NIC 都被过滤掉,过滤:%{filter}"
155
155
 
156
156
  msgid "Discovered host reported from unknown subnet, communication will not be proxied."
157
- msgstr ""
157
+ msgstr "从未知子网报告发现的主机,通信数据将不会被代理。"
158
158
 
159
159
  msgid "Discovered host: %s"
160
160
  msgstr "发现的主机:%s"
@@ -169,7 +169,7 @@ msgid "Discovered hosts from Foreman server at %{foreman_url}"
169
169
  msgstr "来自 %{foreman_url} Foreman 服务器的发现主机"
170
170
 
171
171
  msgid "Discovered hosts reported from unknown subnet are %s, communication will not be proxied."
172
- msgstr ""
172
+ msgstr "从未知子网报告发现的主机为 %s,通信数据将不会被代理。"
173
173
 
174
174
  msgid "Discovered hosts summary"
175
175
  msgstr "发现主机摘要"
@@ -199,28 +199,28 @@ msgid "Discovery organization"
199
199
  msgstr "发现机构"
200
200
 
201
201
  msgid "DiscoveryRule|Enabled"
202
- msgstr "发现规则|已启用"
202
+ msgstr "DiscoveryRule|Enabled"
203
203
 
204
204
  msgid "DiscoveryRule|Name"
205
- msgstr "发现规则|名称"
205
+ msgstr "DiscoveryRule|Name"
206
206
 
207
207
  msgid "DiscoveryRule|Priority"
208
208
  msgstr "发现规则|优先级"
209
209
 
210
210
  msgid "DiscoveryRule|Query"
211
- msgstr "发现规则|查询"
211
+ msgstr "DiscoveryRule|Query"
212
212
 
213
213
  msgid "Disk Count"
214
214
  msgstr "磁盘计数"
215
215
 
216
216
  msgid "Disk count"
217
- msgstr "磁碟計數"
217
+ msgstr "磁盘计数"
218
218
 
219
219
  msgid "Disks Size"
220
220
  msgstr "磁盘大小"
221
221
 
222
222
  msgid "Disks size"
223
- msgstr "磁碟大小"
223
+ msgstr "磁盘大小"
224
224
 
225
225
  msgid "Do not allow to discover existing managed host matching MAC of a provisioning NIC (errors out early)"
226
226
  msgstr "不允许发现匹配一个置备 NIC 的 MAC 的已存在的管理的主机(早期出现错误)"
@@ -238,7 +238,7 @@ msgid "Enable rule '%s'?"
238
238
  msgstr "启用规则 '%s'?"
239
239
 
240
240
  msgid "Error message goes here"
241
- msgstr ""
241
+ msgstr "错误信息到这里"
242
242
 
243
243
  msgid "Error on existing NIC"
244
244
  msgstr "已存在的 NIC 上的错误"
@@ -319,16 +319,16 @@ msgid "Highlights"
319
319
  msgstr "亮点"
320
320
 
321
321
  msgid "Host"
322
- msgstr "主办"
322
+ msgstr "主机"
323
323
 
324
324
  msgid "Host %s has been dicovered"
325
- msgstr ""
325
+ msgstr "主机 %s 已被发现。"
326
326
 
327
327
  msgid "Host %{host} was provisioned with rule %{rule}"
328
328
  msgstr "主机 %{host} 被置备,带有规则 %{rule}"
329
329
 
330
330
  msgid "Host Group"
331
- msgstr "主機群組"
331
+ msgstr "主机组"
332
332
 
333
333
  msgid "Host group location %s must also be associated to the discovery rule"
334
334
  msgid_plural "Host group locations %s must also be associated to the discovery rule"
@@ -342,7 +342,7 @@ msgid "Host of type %s can not be rebooted"
342
342
  msgstr "%s 类型的主机不能重启"
343
343
 
344
344
  msgid "Host's owner type"
345
- msgstr "主机拥有者类型"
345
+ msgstr "主机所有者类型"
346
346
 
347
347
  msgid "Host's parameters (array or indexed hash)"
348
348
  msgstr "主机参数(阵列或索引哈希)"
@@ -363,7 +363,7 @@ msgid "Hosts"
363
363
  msgstr "主机"
364
364
 
365
365
  msgid "Hosts Limit"
366
- msgstr "主機限制"
366
+ msgstr "主机限制"
367
367
 
368
368
  msgid "Hosts/Limit"
369
369
  msgstr "主机/限制"
@@ -372,10 +372,10 @@ msgid "ID of Discovery Proxy to use within this subnet for managing connection t
372
372
  msgstr "本子网内用于管理到发现主机的连接的发现代理服务器 ID"
373
373
 
374
374
  msgid "IP Address"
375
- msgstr "IP地址"
375
+ msgstr "IP 地址"
376
376
 
377
377
  msgid "IP address"
378
- msgstr "IP 位址"
378
+ msgstr "IP 地址"
379
379
 
380
380
  msgid "IPAM must be configured for subnet '%s'"
381
381
  msgstr "必须为子网 '%s' 配置 IPAM"
@@ -432,10 +432,10 @@ msgid "Kexec template not associated with operating system"
432
432
  msgstr "Kexec 模板未与操作系统关联"
433
433
 
434
434
  msgid "Last Facts Upload"
435
- msgstr "最后详情上传"
435
+ msgstr "最后事实上传"
436
436
 
437
437
  msgid "List all discovered hosts"
438
- msgstr "列出所有发现主机"
438
+ msgstr "列出所有发现的主机"
439
439
 
440
440
  msgid "List all discovery rules"
441
441
  msgstr "列出所有发现规则"
@@ -444,7 +444,7 @@ msgid "List all fact values of a given discovered host"
444
444
  msgstr "列出给定发现主机的所有系统信息值"
445
445
 
446
446
  msgid "List of facts to use for the hostname (separated by comma, first wins)"
447
- msgstr "用于主机名的详情列表(用逗号隔开,首个 wins)"
447
+ msgstr "用于主机名的详情列表(用逗号隔开,第一个有最高优先级)"
448
448
 
449
449
  msgid "Location"
450
450
  msgstr "位置"
@@ -465,7 +465,7 @@ msgid "Locked PXELinux template name"
465
465
  msgstr "锁定的 PXELinux 模板名称"
466
466
 
467
467
  msgid "MAC address"
468
- msgstr "MAC 位址"
468
+ msgstr "MAC 地址"
469
469
 
470
470
  msgid "MAC-based name"
471
471
  msgstr "基于 MAC 的名称"
@@ -474,7 +474,7 @@ msgid "Maximum hosts provisioned with this rule (0 = unlimited)"
474
474
  msgstr "按照此规则置备的最大主机数(0 = 没有限制)"
475
475
 
476
476
  msgid "Memory"
477
- msgstr "记忆"
477
+ msgstr "内存"
478
478
 
479
479
  msgid "Miscellaneous"
480
480
  msgstr "杂项"
@@ -483,13 +483,13 @@ msgid "Model"
483
483
  msgstr "模型"
484
484
 
485
485
  msgid "N/A"
486
- msgstr "N / A"
486
+ msgstr "不适用"
487
487
 
488
488
  msgid "Name"
489
489
  msgstr "名称"
490
490
 
491
491
  msgid "Name of the parameter"
492
- msgstr "參數名稱"
492
+ msgstr "参数名"
493
493
 
494
494
  msgid "Network"
495
495
  msgstr "网络"
@@ -501,7 +501,7 @@ msgid "New Discovery Rule"
501
501
  msgstr "新建发现规则"
502
502
 
503
503
  msgid "New hosts"
504
- msgstr ""
504
+ msgstr "新主机"
505
505
 
506
506
  msgid "New in the last 24 hours"
507
507
  msgstr "在最近 24 小时之内新建"
@@ -522,10 +522,10 @@ msgid "No hostgroup associated with rule '%s'"
522
522
  msgstr "没有与规则 '%s' 关联的主机组"
523
523
 
524
524
  msgid "No hosts selected"
525
- msgstr "未選擇主機"
525
+ msgstr "未选择主机"
526
526
 
527
527
  msgid "No hosts were found with that id or name"
528
- msgstr "沒有找到擁有此 ID 或名稱的主機"
528
+ msgstr "找不到具有该 ID 或名称的主机"
529
529
 
530
530
  msgid "No new discovered hosts for this period"
531
531
  msgstr "此时间段内没有新发现主机"
@@ -558,7 +558,13 @@ msgid "Parameter value"
558
558
  msgstr "参数值"
559
559
 
560
560
  msgid "Please Confirm"
561
- msgstr "請確認"
561
+ msgstr "请确认"
562
+
563
+ msgid "Prefer IPv6"
564
+ msgstr ""
565
+
566
+ msgid "Prefer IPv6 to IPv4 when calling discovered nodes"
567
+ msgstr ""
562
568
 
563
569
  msgid "Primary"
564
570
  msgstr "主"
@@ -594,7 +600,7 @@ msgid "Rebuild DNS for %s"
594
600
  msgstr "为 %s 重建 DNS"
595
601
 
596
602
  msgid "Refresh facts"
597
- msgstr "刷新詳情"
603
+ msgstr "刷新详情"
598
604
 
599
605
  msgid "Refreshing the facts of a discovered host"
600
606
  msgstr "刷新发现主机的详情"
@@ -636,16 +642,16 @@ msgid "Rule priority (lower integer means higher priority)"
636
642
  msgstr "规则优先级(整数越小,优先级越高)"
637
643
 
638
644
  msgid "Select Action"
639
- msgstr "選擇動作"
645
+ msgstr "选择操作"
640
646
 
641
647
  msgid "Select all items in this page"
642
- msgstr "選擇這頁中的所有項目"
648
+ msgstr "选择这个页中的所有项"
643
649
 
644
650
  msgid "Select location"
645
- msgstr "選擇位置"
651
+ msgstr "选择位置"
646
652
 
647
653
  msgid "Select organization"
648
- msgstr "選擇組織"
654
+ msgstr "选择机构"
649
655
 
650
656
  msgid "Show a discovered host"
651
657
  msgstr "显示一个发现主机"
@@ -690,10 +696,10 @@ msgid "Target host group for this rule with all properties set"
690
696
  msgstr "此规则的目标主机组所有属性已设置"
691
697
 
692
698
  msgid "The default location to place discovered hosts in"
693
- msgstr "放置已發現之主機的預設位置"
699
+ msgstr "放置发现主机的默认位置"
694
700
 
695
701
  msgid "The default organization to place discovered hosts in"
696
- msgstr "放置已發現之主機的預設組織"
702
+ msgstr "放置发现主机的默认机构"
697
703
 
698
704
  msgid "The default prefix to use for the host name, must start with a letter"
699
705
  msgstr "使用的主机名默认前缀必须以字母开头"
@@ -702,10 +708,10 @@ msgid "The following hosts were not deleted: %s"
702
708
  msgstr "以下主机没有删除:%s"
703
709
 
704
710
  msgid "This might take a while, as all hosts, facts and reports will be destroyed as well"
705
- msgstr "這可能會花上一段時間,因為所有主機、詳情與報告皆會被刪除"
711
+ msgstr "这可能需要一段时间,因为所有主机,事实和报告也将被销毁。"
706
712
 
707
713
  msgid "Type"
708
- msgstr "類型"
714
+ msgstr "类型"
709
715
 
710
716
  msgid "Type of name generator"
711
717
  msgstr "名称生成器类型"
@@ -714,7 +720,7 @@ msgid "Type of value"
714
720
  msgstr "值类型"
715
721
 
716
722
  msgid "UUID to track orchestration tasks status, GET /api/orchestration/:UUID/tasks"
717
- msgstr "用來追蹤協調流程任務狀態的 UUID,GET /api/orchestration/:UUID/tasks"
723
+ msgstr "用于跟踪编配任务状态的 UUID,GET /api/orchestration/:UUID/tasks"
718
724
 
719
725
  msgid "Unable to find a discovery rule, no host provided (check permissions)"
720
726
  msgstr "无法找到发现规则,未提供主机(检查许可)"
@@ -738,7 +744,7 @@ msgid "Update a rule"
738
744
  msgstr "更新规则"
739
745
 
740
746
  msgid "Upload facts for a host, creating the host if required"
741
- msgstr "上傳主機的詳情,並視需求建立主機"
747
+ msgstr "上载主机的事实,并根据需要创建主机"
742
748
 
743
749
  msgid "When creating hostname patterns, make sure the resulting host names are unique."
744
750
  msgstr "创建主机名模式时,确保生成的主机名是唯一的。"
@@ -765,7 +771,7 @@ msgid "hash containing facts for the host with minimum set of facts: discovery_b
765
771
  msgstr "hash 包含具备最小详情集合的主机的详情:discovery_bootif、macaddress_eth0、ipaddress、ipaddress_eth0、interfaces: eth0(主接口名为 eth0 的示例)"
766
772
 
767
773
  msgid "items selected. Uncheck to Clear"
768
- msgstr "已選取項目。反選以清除"
774
+ msgstr "选择的项。取消选中以清除"
769
775
 
770
776
  msgid "location ID for provisioned hosts"
771
777
  msgstr "预配主机的位置 ID"
@@ -780,16 +786,16 @@ msgid "not required if it's a virtual machine"
780
786
  msgstr "如果是虚拟机,则不需要"
781
787
 
782
788
  msgid "not required if using a subnet with DHCP proxy"
783
- msgstr "若是使用一個含有 DHCP 協定的子網路則不需要"
789
+ msgstr "如果使用带有 DHCP 代理的子网则不需要"
784
790
 
785
791
  msgid "number of entries per request"
786
- msgstr "每個請求的項目數量"
792
+ msgstr "每个请求的条目数"
787
793
 
788
794
  msgid "organization ID for provisioned hosts"
789
795
  msgstr "预配主机的组织 ID"
790
796
 
791
797
  msgid "paginate results"
792
- msgstr "編頁結果"
798
+ msgstr "分页结果"
793
799
 
794
800
  msgid "puts the rules in order, low numbers go first. Must be greater then zero"
795
801
  msgstr "按顺序排列规则,低数值优先。必须大于 0"
@@ -804,16 +810,16 @@ msgid "required if host is managed and custom partition has not been defined"
804
810
  msgstr "如果已管理主机,且未定义自定义分区,则需填写。"
805
811
 
806
812
  msgid "required if host is managed and value is not inherited from host group"
807
- msgstr "若主機是個受管理的主機,並且值不是由主機群組所繼承的話便需要"
813
+ msgstr "如果主机是受管的,值没有从主机组继承时需要"
808
814
 
809
815
  msgid "required if not imaged based provisioning and host is managed and value is not inherited from host group"
810
- msgstr "若不是基於映像檔的佈建,而主機受管理並且值並非由主機群組所繼承的話便需要"
816
+ msgstr "如果不是基于置备镜像,主机是受管的,值没有从主机组继承时需要"
811
817
 
812
818
  msgid "required if value is not inherited from host group or default password in settings"
813
819
  msgstr "如果数值不是从主机组或设置中的默认密码继承,则需要。"
814
820
 
815
821
  msgid "sort results"
816
- msgstr "排序結果"
822
+ msgstr "排序结果"
817
823
 
818
824
  msgid "the hostgroup that is used to auto provision a host"
819
825
  msgstr "用于自动置备主机的主机组"
@@ -5,11 +5,11 @@
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: foreman_discovery 16.3.4\n"
8
+ "Project-Id-Version: foreman_discovery 17.1.0\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2021-05-03 08:46+0200\n"
11
- "PO-Revision-Date: 2021-01-25 08:35+0000\n"
12
- "Last-Translator: Transifex Bot <>\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"
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:157
121
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:136 ../app/controllers/discovered_hosts_controller.rb:160
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:164
129
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:145 ../app/controllers/discovered_hosts_controller.rb:167
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:170
137
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:156 ../app/controllers/discovered_hosts_controller.rb:173
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:173
141
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:159 ../app/controllers/discovered_hosts_controller.rb:176
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:126
161
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:221 ../app/controllers/discovered_hosts_controller.rb:129
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:60
241
+ #: ../app/controllers/discovered_hosts_controller.rb:63
242
242
  msgid "Successfully provisioned %s"
243
243
  msgstr ""
244
244
 
245
- #: ../app/controllers/discovered_hosts_controller.rb:94
245
+ #: ../app/controllers/discovered_hosts_controller.rb:97
246
246
  msgid "Facts refreshed for %s"
247
247
  msgstr "%s 的詳情已刷新"
248
248
 
249
- #: ../app/controllers/discovered_hosts_controller.rb:96
249
+ #: ../app/controllers/discovered_hosts_controller.rb:99
250
250
  msgid "Failed to refresh facts for %s"
251
251
  msgstr "刷新 %s 的詳情失敗"
252
252
 
253
- #: ../app/controllers/discovered_hosts_controller.rb:99
253
+ #: ../app/controllers/discovered_hosts_controller.rb:102
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:106
257
+ #: ../app/controllers/discovered_hosts_controller.rb:109
258
258
  msgid "Host of type %s can not be rebooted"
259
259
  msgstr ""
260
260
 
261
- #: ../app/controllers/discovered_hosts_controller.rb:110
261
+ #: ../app/controllers/discovered_hosts_controller.rb:113
262
262
  msgid "Rebooting host %s"
263
263
  msgstr ""
264
264
 
265
- #: ../app/controllers/discovered_hosts_controller.rb:112
265
+ #: ../app/controllers/discovered_hosts_controller.rb:115
266
266
  msgid "Failed to reboot host %s"
267
267
  msgstr ""
268
268
 
269
- #: ../app/controllers/discovered_hosts_controller.rb:115
269
+ #: ../app/controllers/discovered_hosts_controller.rb:118
270
270
  msgid "Failed to reboot host %{hostname} with error %{error_message}"
271
271
  msgstr ""
272
272
 
273
- #: ../app/controllers/discovered_hosts_controller.rb:129
273
+ #: ../app/controllers/discovered_hosts_controller.rb:132
274
274
  msgid "Failed to reboot hosts with error %s"
275
275
  msgstr ""
276
276
 
277
- #: ../app/controllers/discovered_hosts_controller.rb:147
277
+ #: ../app/controllers/discovered_hosts_controller.rb:150
278
278
  msgid "Destroyed selected hosts"
279
279
  msgstr "刪除選擇的主機"
280
280
 
281
- #: ../app/controllers/discovered_hosts_controller.rb:149
281
+ #: ../app/controllers/discovered_hosts_controller.rb:152
282
282
  msgid "The following hosts were not deleted: %s"
283
283
  msgstr "下列主機尚未刪除:%s"
284
284
 
285
- #: ../app/controllers/discovered_hosts_controller.rb:161
285
+ #: ../app/controllers/discovered_hosts_controller.rb:164
286
286
  msgid "Failed to auto provision host %s: %s"
287
287
  msgstr ""
288
288
 
289
- #: ../app/controllers/discovered_hosts_controller.rb:189
289
+ #: ../app/controllers/discovered_hosts_controller.rb:192
290
290
  msgid "Discovered hosts are provisioning now"
291
291
  msgstr ""
292
292
 
293
- #: ../app/controllers/discovered_hosts_controller.rb:270
293
+ #: ../app/controllers/discovered_hosts_controller.rb:277
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:275
297
+ #: ../app/controllers/discovered_hosts_controller.rb:282
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:289
301
+ #: ../app/controllers/discovered_hosts_controller.rb:296
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:293
305
+ #: ../app/controllers/discovered_hosts_controller.rb:300
306
306
  msgid "No hosts selected"
307
307
  msgstr "未選擇主機"
308
308
 
309
- #: ../app/controllers/discovered_hosts_controller.rb:299
309
+ #: ../app/controllers/discovered_hosts_controller.rb:306
310
310
  msgid "Something went wrong while selecting hosts - %s"
311
311
  msgstr "選擇主機時發生了錯誤 - %s"
312
312
 
@@ -404,7 +404,7 @@ msgstr ""
404
404
 
405
405
  #: ../app/helpers/discovery_rules_helper.rb:33
406
406
  msgid "Clone"
407
- msgstr ""
407
+ msgstr "複製"
408
408
 
409
409
  #: ../app/helpers/discovery_rules_helper.rb:34
410
410
  msgid "Delete rule '%s'?"
@@ -470,23 +470,23 @@ msgstr ""
470
470
  msgid "Facts could not be imported"
471
471
  msgstr ""
472
472
 
473
- #: ../app/models/host/discovered.rb:146
473
+ #: ../app/models/host/discovered.rb:155
474
474
  msgid "Could not get facts from proxy %{url}: %{error}"
475
475
  msgstr ""
476
476
 
477
- #: ../app/models/host/discovered.rb:160
477
+ #: ../app/models/host/discovered.rb:173
478
478
  msgid "Unable to perform reboot on %{name} (%{url}): %{msg}"
479
479
  msgstr ""
480
480
 
481
- #: ../app/models/host/discovered.rb:164 ../app/models/host/discovered.rb:183
481
+ #: ../app/models/host/discovered.rb:177 ../app/models/host/discovered.rb:200
482
482
  msgid "Unable to perform %{action} on %{ips}"
483
483
  msgstr ""
484
484
 
485
- #: ../app/models/host/discovered.rb:179
485
+ #: ../app/models/host/discovered.rb:196
486
486
  msgid "Unable to perform kexec on %{name} (%{url}): %{msg}"
487
487
  msgstr ""
488
488
 
489
- #: ../app/models/host/discovered.rb:203
489
+ #: ../app/models/host/discovered.rb:220
490
490
  msgid "Invalid hostname: Could not normalize the hostname"
491
491
  msgstr ""
492
492
 
@@ -694,6 +694,14 @@ msgstr ""
694
694
  msgid "Type of name generator"
695
695
  msgstr ""
696
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
+
697
705
  #: ../app/services/foreman_discovery/fact_parser.rb:4
698
706
  msgid "Discovery fact parser does not work with non-discovery host '%{host}'"
699
707
  msgstr ""
@@ -974,7 +982,7 @@ msgstr ""
974
982
 
975
983
  #: ../app/views/discovery_rules/clone.erb:1
976
984
  msgid "Clone %s"
977
- msgstr ""
985
+ msgstr "複製 %s"
978
986
 
979
987
  #: ../app/views/discovery_rules/edit.html.erb:1
980
988
  msgid "Edit %s"
@@ -1087,7 +1095,3 @@ msgstr "匯入詳情"
1087
1095
  #: action_names.rb:5
1088
1096
  msgid "Action with sub plans"
1089
1097
  msgstr "有子計畫的動作"
1090
-
1091
- #: ../app/helpers/discovered_hosts_helper.rb:10
1092
- #~ msgid "%s ago"
1093
- #~ msgstr "%s 之前"
@@ -5,10 +5,10 @@
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
- "Project-Id-Version: foreman_discovery 16.3.4\n"
8
+ "Project-Id-Version: foreman_discovery 17.1.0\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
- "PO-Revision-Date: 2021-01-25 08:35+0000\n"
11
- "Last-Translator: Transifex Bot <>\n"
10
+ "PO-Revision-Date: 2021-05-03 08:29+0000\n"
11
+ "Last-Translator: 0868a4d1af5275b3f70b0a6dac4c99a4\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"
@@ -78,10 +78,10 @@ msgid "Clean all reported facts during provisioning (except discovery facts)"
78
78
  msgstr ""
79
79
 
80
80
  msgid "Clone"
81
- msgstr ""
81
+ msgstr "複製"
82
82
 
83
83
  msgid "Clone %s"
84
- msgstr ""
84
+ msgstr "複製 %s"
85
85
 
86
86
  msgid "Collapse All"
87
87
  msgstr "全部收回"
@@ -563,6 +563,12 @@ msgstr "參數值"
563
563
  msgid "Please Confirm"
564
564
  msgstr "請確認"
565
565
 
566
+ msgid "Prefer IPv6"
567
+ msgstr ""
568
+
569
+ msgid "Prefer IPv6 to IPv4 when calling discovered nodes"
570
+ msgstr ""
571
+
566
572
  msgid "Primary"
567
573
  msgstr "主要"
568
574
 
data/package.json CHANGED
@@ -27,7 +27,7 @@
27
27
  "@babel/core": "^7.7.0",
28
28
  "@theforeman/builder": "^6.0.0",
29
29
  "@theforeman/eslint-plugin-foreman": "^6.0.0",
30
- "@theforeman/stories": "^6.0.0",
30
+ "@theforeman/stories": "^7.0.0",
31
31
  "@theforeman/test": "^8.0.0",
32
32
  "@theforeman/vendor-dev": "^6.0.0",
33
33
  "babel-eslint": "^10.0.3",
@@ -19,10 +19,7 @@ module Api
19
19
  "memorysize_mb" => "42000.42",
20
20
  "discovery_version" => "3.0.0",
21
21
  }
22
- FactoryBot.create(:setting,
23
- :name => 'discovery_hostname',
24
- :value => 'discovery_bootif',
25
- :category => 'Setting::Discovered')
22
+ Setting['discovery_hostname'] = 'discovery_bootif'
26
23
  end
27
24
 
28
25