foreman_discovery 11.0.0 → 12.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +5 -5
  2. data/app/controllers/api/v2/discovered_hosts_controller.rb +1 -2
  3. data/app/controllers/concerns/foreman/controller/discovered_extensions.rb +1 -1
  4. data/app/controllers/discovered_hosts_controller.rb +21 -11
  5. data/app/controllers/foreman_discovery/concerns/hosts_controller_extensions.rb +1 -1
  6. data/app/helpers/discovered_hosts_helper.rb +9 -11
  7. data/app/models/discovery_rule.rb +3 -0
  8. data/app/models/host/discovered.rb +59 -19
  9. data/app/models/setting/discovered.rb +1 -0
  10. data/app/services/foreman_discovery/fact_parser.rb +6 -2
  11. data/app/services/foreman_discovery/ui_notifications/new_host.rb +3 -1
  12. data/app/views/dashboard/_discovery_widget_host_list.html.erb +1 -1
  13. data/app/views/discovered_hosts/_discovered_hosts_list.html.erb +2 -3
  14. data/app/views/discovered_hosts/_selected_hosts.html.erb +1 -1
  15. data/app/views/discovered_hosts/index.html.erb +0 -2
  16. data/app/views/discovered_hosts/multiple_auto_provision.html.erb +4 -0
  17. data/app/views/discovered_hosts/multiple_reboot.html.erb +4 -0
  18. data/app/views/discovered_hosts/show.html.erb +27 -15
  19. data/app/views/discovery_rules/_form.html.erb +9 -3
  20. data/app/views/discovery_rules/edit.html.erb +1 -1
  21. data/app/views/discovery_rules/index.html.erb +2 -2
  22. data/app/views/foreman_discovery/debian_kexec.erb +1 -1
  23. data/app/views/foreman_discovery/redhat_kexec.erb +1 -1
  24. data/config/as_deprecation_whitelist.yaml +395 -0
  25. data/config/routes.rb +7 -5
  26. data/db/migrate/20171222120314_add_constraints_on_discovery_rules_hostgroups.rb +10 -0
  27. data/db/migrate/20180412124505_add_priority_score_to_discovery_rules.rb +24 -0
  28. data/extra/discover-host +7 -5
  29. data/extra/discovery/simple-bond.json +167 -0
  30. data/lib/foreman_discovery/engine.rb +9 -3
  31. data/lib/foreman_discovery/version.rb +1 -1
  32. data/locale/ca/LC_MESSAGES/foreman_discovery.mo +0 -0
  33. data/locale/ca/foreman_discovery.edit.po +148 -221
  34. data/locale/ca/foreman_discovery.po +25 -19
  35. data/locale/de/LC_MESSAGES/foreman_discovery.mo +0 -0
  36. data/locale/de/foreman_discovery.edit.po +147 -221
  37. data/locale/de/foreman_discovery.po +26 -20
  38. data/locale/en/foreman_discovery.edit.po +106 -98
  39. data/locale/en/foreman_discovery.po +24 -18
  40. data/locale/en_GB/LC_MESSAGES/foreman_discovery.mo +0 -0
  41. data/locale/en_GB/foreman_discovery.edit.po +149 -222
  42. data/locale/en_GB/foreman_discovery.po +26 -20
  43. data/locale/es/LC_MESSAGES/foreman_discovery.mo +0 -0
  44. data/locale/es/foreman_discovery.edit.po +149 -222
  45. data/locale/es/foreman_discovery.po +26 -20
  46. data/locale/foreman_discovery.pot +115 -103
  47. data/locale/fr/LC_MESSAGES/foreman_discovery.mo +0 -0
  48. data/locale/fr/foreman_discovery.edit.po +147 -221
  49. data/locale/fr/foreman_discovery.po +26 -20
  50. data/locale/gl/foreman_discovery.edit.po +147 -220
  51. data/locale/gl/foreman_discovery.po +24 -18
  52. data/locale/it/LC_MESSAGES/foreman_discovery.mo +0 -0
  53. data/locale/it/foreman_discovery.edit.po +148 -221
  54. data/locale/it/foreman_discovery.po +25 -19
  55. data/locale/ja/LC_MESSAGES/foreman_discovery.mo +0 -0
  56. data/locale/ja/foreman_discovery.edit.po +149 -222
  57. data/locale/ja/foreman_discovery.po +26 -20
  58. data/locale/ko/LC_MESSAGES/foreman_discovery.mo +0 -0
  59. data/locale/ko/foreman_discovery.edit.po +149 -221
  60. data/locale/ko/foreman_discovery.po +26 -20
  61. data/locale/pt_BR/LC_MESSAGES/foreman_discovery.mo +0 -0
  62. data/locale/pt_BR/foreman_discovery.edit.po +149 -222
  63. data/locale/pt_BR/foreman_discovery.po +26 -20
  64. data/locale/ru/LC_MESSAGES/foreman_discovery.mo +0 -0
  65. data/locale/ru/foreman_discovery.edit.po +152 -223
  66. data/locale/ru/foreman_discovery.po +26 -20
  67. data/locale/sv_SE/LC_MESSAGES/foreman_discovery.mo +0 -0
  68. data/locale/sv_SE/foreman_discovery.edit.po +147 -220
  69. data/locale/sv_SE/foreman_discovery.po +24 -18
  70. data/locale/zh_CN/LC_MESSAGES/foreman_discovery.mo +0 -0
  71. data/locale/zh_CN/foreman_discovery.edit.po +155 -224
  72. data/locale/zh_CN/foreman_discovery.po +26 -20
  73. data/locale/zh_TW/LC_MESSAGES/foreman_discovery.mo +0 -0
  74. data/locale/zh_TW/foreman_discovery.edit.po +151 -222
  75. data/locale/zh_TW/foreman_discovery.po +26 -20
  76. data/test/functional/api/v2/discovered_hosts_controller_test.rb +2 -0
  77. data/test/functional/api/v2/discovery_rules_controller_test.rb +96 -9
  78. data/test/functional/api/v2/settings_controller_test.rb +22 -0
  79. data/test/functional/discovered_hosts_controller_test.rb +20 -21
  80. data/test/functional/discovery_rules_controller_test.rb +5 -4
  81. data/test/integration/discovered_hosts_test.rb +20 -10
  82. data/test/models/setting_test.rb +11 -0
  83. data/test/test_helper_discovery.rb +1 -0
  84. data/test/unit/discovered_extensions_test.rb +2 -13
  85. data/test/unit/discovery_rule_test.rb +87 -1
  86. data/test/unit/fact_parser_test.rb +2 -2
  87. data/test/unit/host_discovered_test.rb +60 -28
  88. data/test/unit/ui_notifications/destroy_host_test.rb +14 -4
  89. data/test/unit/ui_notifications/new_host_test.rb +8 -1
  90. metadata +22 -4
@@ -44,9 +44,6 @@ msgstr "关联主机"
44
44
  msgid "Auto Provision"
45
45
  msgstr "自动置备"
46
46
 
47
- msgid "Auto Provision All"
48
- msgstr "全部自动置备"
49
-
50
47
  msgid "Auto provisioning"
51
48
  msgstr "自动置备"
52
49
 
@@ -74,6 +71,9 @@ msgstr "清除所有详情"
74
71
  msgid "Clean all reported facts during provisioning (except discovery facts)"
75
72
  msgstr "置备期间清除所有报告的详情(发现详情除外)"
76
73
 
74
+ msgid "Collapse All"
75
+ msgstr ""
76
+
77
77
  msgid "Could not get facts from proxy %{url}: %{error}"
78
78
  msgstr "无法从代理 %{url} 获得详情:%{error}"
79
79
 
@@ -95,6 +95,9 @@ msgstr ""
95
95
  msgid "DHCP filename option (Grub2 or PXELinux by default)"
96
96
  msgstr "DHCP 文件名选项(默认为 Grub2 或 PXELinux)"
97
97
 
98
+ msgid "Delete"
99
+ msgstr ""
100
+
98
101
  msgid "Delete %s?"
99
102
  msgstr "删除 %s"
100
103
 
@@ -104,9 +107,6 @@ msgstr "删除发现主机"
104
107
  msgid "Delete a rule"
105
108
  msgstr "删除规则"
106
109
 
107
- msgid "Delete hosts"
108
- msgstr "删除主机"
109
-
110
110
  msgid "Delete rule '%s'?"
111
111
  msgstr "删除规则 '%s'?"
112
112
 
@@ -125,6 +125,9 @@ msgstr "禁用规则 '%s'?"
125
125
  msgid "Discovered Hosts"
126
126
  msgstr "发现主机"
127
127
 
128
+ msgid "Discovered host '%{host}' has all NICs filtered out, filter: %{filter}"
129
+ msgstr ""
130
+
128
131
  msgid "Discovered host: %s"
129
132
  msgstr "找到的主机:%s"
130
133
 
@@ -155,6 +158,9 @@ msgstr "本子网内用于管理到发现主机的连接的发现代理服务器
155
158
  msgid "Discovery Rules"
156
159
  msgstr "发现规则"
157
160
 
161
+ msgid "Discovery fact parser does not work with non-discovery host '%{host}'"
162
+ msgstr ""
163
+
158
164
  msgid "Discovery location"
159
165
  msgstr "发现位置"
160
166
 
@@ -188,11 +194,14 @@ msgstr "磁盘大小"
188
194
  msgid "Disks size"
189
195
  msgstr "磁盘大小"
190
196
 
197
+ msgid "Do not allow to discover existing managed host matching MAC of a provisioning NIC (errors out early)"
198
+ msgstr ""
199
+
191
200
  msgid "Domain will be appended automatically. A hostname based on MAC address will be used when left blank."
192
201
  msgstr "域将自动附加。留空时将使用基于 MAC 地址的主机名。"
193
202
 
194
- msgid "Edit Discovery Rule"
195
- msgstr "编辑发现规则"
203
+ msgid "Edit %s"
204
+ msgstr ""
196
205
 
197
206
  msgid "Enable"
198
207
  msgstr "启用"
@@ -200,6 +209,9 @@ msgstr "启用"
200
209
  msgid "Enable rule '%s'?"
201
210
  msgstr "启用规则 '%s'?"
202
211
 
212
+ msgid "Error on existing NIC"
213
+ msgstr ""
214
+
203
215
  msgid "Errors during auto provisioning: %s"
204
216
  msgstr "自动置备期间出错:%s"
205
217
 
@@ -212,9 +224,6 @@ msgstr "对发现主机执行规则"
212
224
  msgid "Execute rules against all currently discovered hosts"
213
225
  msgstr "对当前所有发现主机执行规则"
214
226
 
215
- msgid "Expand All"
216
- msgstr "展开全部"
217
-
218
227
  msgid "Expected discovery_fact '%s' is missing, unable to detect primary interface and set hostname"
219
228
  msgstr "期望的 discovery_fact '%s' 缺失,无法检测主接口和设置主机名称"
220
229
 
@@ -509,9 +518,6 @@ msgstr "置备发现主机"
509
518
  msgid "Reboot"
510
519
  msgstr "重启"
511
520
 
512
- msgid "Reboot All"
513
- msgstr "全部重启"
514
-
515
521
  msgid "Rebooting %s"
516
522
  msgstr "正在重启 %s"
517
523
 
@@ -644,15 +650,12 @@ msgstr "类型"
644
650
  msgid "UUID to track orchestration tasks status, GET /api/orchestration/:UUID/tasks"
645
651
  msgstr "用来跟踪业务流程任务状态的 UUID,GET /api/orchestration/:UUID/tasks"
646
652
 
647
- msgid "Unable to assign subnet, primary interface is missing IP address"
648
- msgstr "无法分配子网,主接口缺少 IP 地址"
649
-
650
- msgid "Unable to detect primary interface using MAC '%{mac}' specified by discovery_fact '%{fact}'"
651
- msgstr "无法使用 discovery_fact '%{fact}' 指定的 MAC '%{mac}' 监测到主接口"
652
-
653
653
  msgid "Unable to find a discovery rule, no host provided (check permissions)"
654
654
  msgstr "无法找到发现规则,未提供主机(检查许可)"
655
655
 
656
+ msgid "Unable to find primary NIC with %{mac} specified via '%{fact}', NIC filter: %{filter}"
657
+ msgstr ""
658
+
656
659
  msgid "Unable to perform kexec on %{name} via %{url}: %{msg}"
657
660
  msgstr "无法通过 %{url} 在 %{name} 上执行 kexec:%{msg}"
658
661
 
@@ -695,6 +698,9 @@ msgstr "已选择项目。取消选择清除。"
695
698
  msgid "location ID for provisioned hosts"
696
699
  msgstr ""
697
700
 
701
+ msgid "must be present."
702
+ msgstr ""
703
+
698
704
  msgid "must start with a letter or ERB."
699
705
  msgstr "必须以字母或 ERB 开始。"
700
706
 
@@ -1,16 +1,16 @@
1
1
  # SOME DESCRIPTIVE TITLE.
2
2
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
3
  # This file is distributed under the same license as the foreman_discovery package.
4
- #
4
+ #
5
5
  # Translators:
6
6
  msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: foreman_discovery 10.0.0\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2017-12-11 10:28+0100\n"
11
10
  "PO-Revision-Date: 2017-12-11 11:31+0000\n"
12
11
  "Last-Translator: Lukáš Zapletal\n"
13
- "Language-Team: Chinese (Taiwan) (http://www.transifex.com/foreman/foreman/language/zh_TW/)\n"
12
+ "Language-Team: Chinese (Taiwan) (http://www.transifex.com/foreman/foreman/lang"
13
+ "uage/zh_TW/)\n"
14
14
  "MIME-Version: 1.0\n"
15
15
  "Content-Type: text/plain; charset=UTF-8\n"
16
16
  "Content-Transfer-Encoding: 8bit\n"
@@ -21,23 +21,19 @@ msgstr ""
21
21
  msgid "List all discovered hosts"
22
22
  msgstr "列出所有發現的主機"
23
23
 
24
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:17
25
- #: ../app/controllers/api/v2/discovery_rules_controller.rb:15
24
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:17 ../app/controllers/api/v2/discovery_rules_controller.rb:15
26
25
  msgid "filter results"
27
26
  msgstr "篩選結果"
28
27
 
29
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:18
30
- #: ../app/controllers/api/v2/discovery_rules_controller.rb:16
28
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:18 ../app/controllers/api/v2/discovery_rules_controller.rb:16
31
29
  msgid "sort results"
32
30
  msgstr "排序結果"
33
31
 
34
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:19
35
- #: ../app/controllers/api/v2/discovery_rules_controller.rb:17
32
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:19 ../app/controllers/api/v2/discovery_rules_controller.rb:17
36
33
  msgid "paginate results"
37
34
  msgstr "編頁結果"
38
35
 
39
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:20
40
- #: ../app/controllers/api/v2/discovery_rules_controller.rb:18
36
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:20 ../app/controllers/api/v2/discovery_rules_controller.rb:18
41
37
  msgid "number of entries per request"
42
38
  msgstr "每個請求的項目數量"
43
39
 
@@ -45,8 +41,7 @@ msgstr "每個請求的項目數量"
45
41
  msgid "Show a discovered host"
46
42
  msgstr "顯示發現的主機"
47
43
 
48
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:37
49
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:79
44
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:37 ../app/controllers/api/v2/discovered_hosts_controller.rb:79
50
45
  msgid "DHCP filename option (Grub2 or PXELinux by default)"
51
46
  msgstr ""
52
47
 
@@ -67,14 +62,11 @@ msgid "not required if it's a virtual machine"
67
62
  msgstr "若是虛擬機器則不需要"
68
63
 
69
64
  #: ../app/controllers/api/v2/discovered_hosts_controller.rb:76
70
- msgid ""
71
- "UUID to track orchestration tasks status, GET /api/orchestration/:UUID/tasks"
65
+ msgid "UUID to track orchestration tasks status, GET /api/orchestration/:UUID/tasks"
72
66
  msgstr "用來追蹤協調流程任務狀態的 UUID,GET /api/orchestration/:UUID/tasks"
73
67
 
74
68
  #: ../app/controllers/api/v2/discovered_hosts_controller.rb:78
75
- msgid ""
76
- "required if value is not inherited from host group or default password in "
77
- "settings"
69
+ msgid "required if value is not inherited from host group or default password in settings"
78
70
  msgstr "若值並非從主機群組或設定中的預設密碼所繼承的話則需要"
79
71
 
80
72
  #: ../app/controllers/api/v2/discovered_hosts_controller.rb:89
@@ -86,62 +78,54 @@ msgid "Upload facts for a host, creating the host if required"
86
78
  msgstr "上傳主機的詳情,並視需求建立主機"
87
79
 
88
80
  #: ../app/controllers/api/v2/discovered_hosts_controller.rb:97
89
- msgid ""
90
- "hash containing facts for the host with minimum set of facts: "
91
- "discovery_bootif, macaddress_eth0, ipaddress, ipaddress_eth0, interfaces: "
92
- "eth0 (example in case primary interface is named eth0)"
81
+ 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)"
93
82
  msgstr "包含主機詳情的雜湊,其中有最基本的詳情:discovery_bootif、macaddress_eth0、ipaddress、ipaddress_eth0、interfaces:eth0(大部分範例中,主介面的名稱都是 eth0)"
94
83
 
95
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:117
84
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:116
96
85
  msgid "Execute rules against a discovered host"
97
86
  msgstr "針對於一部發現的主機執行規則"
98
87
 
99
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:123
100
- #: ../app/controllers/discovered_hosts_controller.rb:150
88
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:122 ../app/controllers/discovered_hosts_controller.rb:159
101
89
  msgid "Host %{host} was provisioned with rule %{rule}"
102
90
  msgstr "主機 %{host} 已透過規則 %{rule} 佈建"
103
91
 
104
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:126
92
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:125
105
93
  msgid "Unable to provision %{host}: %{errors}"
106
94
  msgstr "無法供給 %{host}:%{errors}"
107
95
 
108
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:132
109
- #: ../app/controllers/discovered_hosts_controller.rb:157
96
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:131 ../app/controllers/discovered_hosts_controller.rb:166
110
97
  msgid "No rule found for host %s"
111
98
  msgstr "未找到主機 %s 的規則"
112
99
 
113
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:139
100
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:138
114
101
  msgid "Execute rules against all currently discovered hosts"
115
102
  msgstr "針對於所有目前已發現的主機執行規則"
116
103
 
117
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:143
118
- #: ../app/controllers/discovered_hosts_controller.rb:163
104
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:142 ../app/controllers/discovered_hosts_controller.rb:172
119
105
  msgid "Errors during auto provisioning: %s"
120
106
  msgstr "進行自動佈建時發生了錯誤:%s"
121
107
 
122
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:146
123
- #: ../app/controllers/discovered_hosts_controller.rb:166
108
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:145 ../app/controllers/discovered_hosts_controller.rb:175
124
109
  msgid "No discovered hosts to provision"
125
110
  msgstr "未發現可佈建的主機"
126
111
 
127
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:168
112
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:167
128
113
  msgid "%s discovered hosts were provisioned"
129
114
  msgstr "%s 已發現的主機已供給"
130
115
 
131
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:179
116
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:178
132
117
  msgid "Refreshing the facts of a discovered host"
133
118
  msgstr "刷新一部已發現之主機的詳情"
134
119
 
135
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:188
120
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:187
136
121
  msgid "Rebooting a discovered host"
137
122
  msgstr "重新啟動一部已發現的主機"
138
123
 
139
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:197
124
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:196
140
125
  msgid "Rebooting all discovered hosts"
141
126
  msgstr "重新啟動所有已發現的主機"
142
127
 
143
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:208
144
- #: ../app/controllers/discovered_hosts_controller.rb:125
128
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:207 ../app/controllers/discovered_hosts_controller.rb:128
145
129
  msgid "Discovered hosts are rebooting now"
146
130
  msgstr "發現的主機正在重新啟動"
147
131
 
@@ -166,8 +150,7 @@ msgid "the hostgroup that is used to auto provision a host"
166
150
  msgstr "用來自動佈建一部主機的主機群組"
167
151
 
168
152
  #: ../app/controllers/api/v2/discovery_rules_controller.rb:35
169
- msgid ""
170
- "defines a pattern to assign human-readable hostnames to the matching hosts"
153
+ msgid "defines a pattern to assign human-readable hostnames to the matching hosts"
171
154
  msgstr "定義一項模式來為相符的主機指定易讀的主機名稱"
172
155
 
173
156
  #: ../app/controllers/api/v2/discovery_rules_controller.rb:36
@@ -175,8 +158,7 @@ msgid "enables to limit maximum amount of provisioned hosts per rule"
175
158
  msgstr "啟用來限制每個規則所能搭配的最大已佈建主機之數量"
176
159
 
177
160
  #: ../app/controllers/api/v2/discovery_rules_controller.rb:37
178
- msgid ""
179
- "puts the rules in order, low numbers go first. Must be greater then zero"
161
+ msgid "puts the rules in order, low numbers go first. Must be greater then zero"
180
162
  msgstr "按照順序排序規則,數字較小的優先。必須大於零"
181
163
 
182
164
  #: ../app/controllers/api/v2/discovery_rules_controller.rb:38
@@ -223,95 +205,95 @@ msgstr "重新開機時發生了錯誤:%s"
223
205
  msgid "No discovered hosts to reboot"
224
206
  msgstr "未發現可重新啟動的主機"
225
207
 
226
- #: ../app/controllers/discovered_hosts_controller.rb:61
208
+ #: ../app/controllers/discovered_hosts_controller.rb:63
227
209
  msgid "Successfully provisioned %s"
228
210
  msgstr ""
229
211
 
230
- #: ../app/controllers/discovered_hosts_controller.rb:93
212
+ #: ../app/controllers/discovered_hosts_controller.rb:96
231
213
  msgid "Facts refreshed for %s"
232
214
  msgstr "%s 的詳情已刷新"
233
215
 
234
- #: ../app/controllers/discovered_hosts_controller.rb:95
216
+ #: ../app/controllers/discovered_hosts_controller.rb:98
235
217
  msgid "Failed to refresh facts for %s"
236
218
  msgstr "刷新 %s 的詳情失敗"
237
219
 
238
- #: ../app/controllers/discovered_hosts_controller.rb:98
220
+ #: ../app/controllers/discovered_hosts_controller.rb:101
239
221
  msgid "Failed to refresh facts for %{hostname} with error %{error_message}"
240
222
  msgstr "重新刷新主機 %{hostname} 的事實失敗,錯誤訊息為 %{error_message}"
241
223
 
242
- #: ../app/controllers/discovered_hosts_controller.rb:105
224
+ #: ../app/controllers/discovered_hosts_controller.rb:108
243
225
  msgid "Host of type %s can not be rebooted"
244
226
  msgstr "類型為 %s 的主機無法重新啟動"
245
227
 
246
- #: ../app/controllers/discovered_hosts_controller.rb:109
228
+ #: ../app/controllers/discovered_hosts_controller.rb:112
247
229
  msgid "Rebooting host %s"
248
230
  msgstr "重新啟動主機 %s"
249
231
 
250
- #: ../app/controllers/discovered_hosts_controller.rb:111
232
+ #: ../app/controllers/discovered_hosts_controller.rb:114
251
233
  msgid "Failed to reboot host %s"
252
234
  msgstr "重新啟動主機 %s 失敗"
253
235
 
254
- #: ../app/controllers/discovered_hosts_controller.rb:114
236
+ #: ../app/controllers/discovered_hosts_controller.rb:117
255
237
  msgid "Failed to reboot host %{hostname} with error %{error_message}"
256
238
  msgstr "重新啟動主機 %{hostname} 失敗,錯誤訊息為 %{error_message}"
257
239
 
258
- #: ../app/controllers/discovered_hosts_controller.rb:128
240
+ #: ../app/controllers/discovered_hosts_controller.rb:131
259
241
  msgid "Failed to reboot hosts with error %s"
260
242
  msgstr "重新啟動主機失敗,錯誤訊息為 %s"
261
243
 
262
- #: ../app/controllers/discovered_hosts_controller.rb:140
244
+ #: ../app/controllers/discovered_hosts_controller.rb:149
263
245
  msgid "Destroyed selected hosts"
264
246
  msgstr "刪除選擇的主機"
265
247
 
266
- #: ../app/controllers/discovered_hosts_controller.rb:142
248
+ #: ../app/controllers/discovered_hosts_controller.rb:151
267
249
  msgid "The following hosts were not deleted: %s"
268
250
  msgstr "下列主機尚未刪除:%s"
269
251
 
270
- #: ../app/controllers/discovered_hosts_controller.rb:154
252
+ #: ../app/controllers/discovered_hosts_controller.rb:163
271
253
  msgid "Failed to auto provision host %s: %s"
272
254
  msgstr "自動佈建主機 %s 失敗:%s"
273
255
 
274
- #: ../app/controllers/discovered_hosts_controller.rb:182
256
+ #: ../app/controllers/discovered_hosts_controller.rb:191
275
257
  msgid "Discovered hosts are provisioning now"
276
258
  msgstr "發現的主機現在正在佈建"
277
259
 
278
- #: ../app/controllers/discovered_hosts_controller.rb:214
260
+ #: ../app/controllers/discovered_hosts_controller.rb:223
279
261
  msgid "Highlights"
280
262
  msgstr ""
281
263
 
282
- #: ../app/controllers/discovered_hosts_controller.rb:214
264
+ #: ../app/controllers/discovered_hosts_controller.rb:223
283
265
  msgid "Storage"
284
266
  msgstr "儲存裝置"
285
267
 
286
- #: ../app/controllers/discovered_hosts_controller.rb:214
268
+ #: ../app/controllers/discovered_hosts_controller.rb:223
287
269
  msgid "Hardware"
288
270
  msgstr "硬體"
289
271
 
290
- #: ../app/controllers/discovered_hosts_controller.rb:214
272
+ #: ../app/controllers/discovered_hosts_controller.rb:223
291
273
  msgid "Network"
292
274
  msgstr "網路"
293
275
 
294
- #: ../app/controllers/discovered_hosts_controller.rb:214
276
+ #: ../app/controllers/discovered_hosts_controller.rb:223
295
277
  msgid "Software"
296
278
  msgstr "軟體"
297
279
 
298
- #: ../app/controllers/discovered_hosts_controller.rb:214
280
+ #: ../app/controllers/discovered_hosts_controller.rb:223
299
281
  msgid "IPMI"
300
282
  msgstr "IPMI"
301
283
 
302
- #: ../app/controllers/discovered_hosts_controller.rb:214
284
+ #: ../app/controllers/discovered_hosts_controller.rb:223
303
285
  msgid "Miscellaneous"
304
286
  msgstr "雜項"
305
287
 
306
- #: ../app/controllers/discovered_hosts_controller.rb:291
288
+ #: ../app/controllers/discovered_hosts_controller.rb:301
307
289
  msgid "No hosts were found with that id or name"
308
290
  msgstr "沒有找到擁有此 ID 或名稱的主機"
309
291
 
310
- #: ../app/controllers/discovered_hosts_controller.rb:295
292
+ #: ../app/controllers/discovered_hosts_controller.rb:305
311
293
  msgid "No hosts selected"
312
294
  msgstr "未選擇主機"
313
295
 
314
- #: ../app/controllers/discovered_hosts_controller.rb:301
296
+ #: ../app/controllers/discovered_hosts_controller.rb:311
315
297
  msgid "Something went wrong while selecting hosts - %s"
316
298
  msgstr "選擇主機時發生了錯誤 - %s"
317
299
 
@@ -327,19 +309,15 @@ msgstr "規則已停用"
327
309
  msgid "%s ago"
328
310
  msgstr "%s 之前"
329
311
 
330
- #: ../app/helpers/discovered_hosts_helper.rb:14
331
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:46
312
+ #: ../app/helpers/discovered_hosts_helper.rb:14 ../app/helpers/discovered_hosts_helper.rb:29 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:46
332
313
  msgid "Auto Provision"
333
314
  msgstr "自動佈建"
334
315
 
335
- #: ../app/helpers/discovered_hosts_helper.rb:15
336
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:47
316
+ #: ../app/helpers/discovered_hosts_helper.rb:15 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:47
337
317
  msgid "Refresh facts"
338
318
  msgstr "刷新詳情"
339
319
 
340
- #: ../app/helpers/discovered_hosts_helper.rb:16
341
- #: ../app/models/setting/discovered.rb:23
342
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:48
320
+ #: ../app/helpers/discovered_hosts_helper.rb:16 ../app/helpers/discovered_hosts_helper.rb:30 ../app/models/setting/discovered.rb:23 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:48
343
321
  msgid "Reboot"
344
322
  msgstr "重新開機"
345
323
 
@@ -347,62 +325,51 @@ msgstr "重新開機"
347
325
  msgid "Back"
348
326
  msgstr "上一步"
349
327
 
350
- #: ../app/helpers/discovered_hosts_helper.rb:21
351
- #: ../app/helpers/discovered_hosts_helper.rb:37
328
+ #: ../app/helpers/discovered_hosts_helper.rb:21 ../app/helpers/discovered_hosts_helper.rb:35
352
329
  msgid "Select Action"
353
330
  msgstr "選擇動作"
354
331
 
355
- #: ../app/helpers/discovered_hosts_helper.rb:23
356
- msgid "Expand All"
357
- msgstr "全部展開"
358
-
359
- #: ../app/helpers/discovered_hosts_helper.rb:27
360
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:49
332
+ #: ../app/helpers/discovered_hosts_helper.rb:23 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:49
361
333
  msgid "Delete %s?"
362
334
  msgstr "刪除 %s?"
363
335
 
364
- #: ../app/helpers/discovered_hosts_helper.rb:33
365
- msgid "Delete hosts"
366
- msgstr "刪除主機"
367
-
368
- #: ../app/helpers/discovered_hosts_helper.rb:34
336
+ #: ../app/helpers/discovered_hosts_helper.rb:31
369
337
  msgid "Assign Organization"
370
338
  msgstr "指定組織"
371
339
 
372
- #: ../app/helpers/discovered_hosts_helper.rb:35
340
+ #: ../app/helpers/discovered_hosts_helper.rb:32
373
341
  msgid "Assign Location"
374
342
  msgstr "指定位置"
375
343
 
376
- #: ../app/helpers/discovered_hosts_helper.rb:39
344
+ #: ../app/helpers/discovered_hosts_helper.rb:33
345
+ msgid "Delete"
346
+ msgstr ""
347
+
348
+ #: ../app/helpers/discovered_hosts_helper.rb:37
377
349
  msgid "%s - The following hosts are about to be changed"
378
350
  msgstr "%s - 以下主機即將受到更改"
379
351
 
380
- #: ../app/helpers/discovered_hosts_helper.rb:48
381
- #: ../app/views/dashboard/_discovery_widget_host.html.erb:2
352
+ #: ../app/helpers/discovered_hosts_helper.rb:46 ../app/views/dashboard/_discovery_widget_host.html.erb:2
382
353
  msgid "N/A"
383
354
  msgstr "N/A"
384
355
 
385
- #: ../app/helpers/discovered_hosts_helper.rb:60
356
+ #: ../app/helpers/discovered_hosts_helper.rb:58
386
357
  msgid "New in the last 24 hours"
387
358
  msgstr "過去 24 小時的新項目"
388
359
 
389
- #: ../app/helpers/discovered_hosts_helper.rb:64
360
+ #: ../app/helpers/discovered_hosts_helper.rb:62
390
361
  msgid "Not reported in more than 7 days"
391
362
  msgstr "七天內未回報"
392
363
 
393
- #: ../app/helpers/discovered_hosts_helper.rb:68
364
+ #: ../app/helpers/discovered_hosts_helper.rb:66
394
365
  msgid "Reported in the last 7 days"
395
366
  msgstr "過去七天內已回報"
396
367
 
397
- #: ../app/helpers/discovered_hosts_helper.rb:92
368
+ #: ../app/helpers/discovered_hosts_helper.rb:90
398
369
  msgid "Provision"
399
370
  msgstr "佈建"
400
371
 
401
- #: ../app/helpers/discovery_rules_helper.rb:26
402
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:2
403
- #: ../app/views/discovered_hosts/welcome.html.erb:1
404
- #: ../app/views/discovered_hosts/welcome.html.erb:6
405
- #: ../lib/foreman_discovery/engine.rb:166
372
+ #: ../app/helpers/discovery_rules_helper.rb:26 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:2 ../app/views/discovered_hosts/welcome.html.erb:1 ../app/views/discovered_hosts/welcome.html.erb:6 ../lib/foreman_discovery/engine.rb:173
406
373
  msgid "Discovered Hosts"
407
374
  msgstr ""
408
375
 
@@ -438,64 +405,59 @@ msgstr "必須指定一位啟用了電子郵件的使用者"
438
405
  msgid "Discovered hosts summary"
439
406
  msgstr ""
440
407
 
441
- #: ../app/models/discovery_rule.rb:9
408
+ #: ../app/models/discovery_rule.rb:10
442
409
  msgid "can't contain white spaces."
443
410
  msgstr "不可包含空格。"
444
411
 
445
- #: ../app/models/discovery_rule.rb:11
412
+ #: ../app/models/discovery_rule.rb:12
446
413
  msgid "must start with a letter or ERB."
447
414
  msgstr "必須以字母或是 ERB 作為起始。"
448
415
 
449
- #: ../app/models/discovery_rule.rb:45
450
- msgid ""
451
- "Host group organization %s must also be associated to the discovery rule"
452
- msgid_plural ""
453
- "Host group organizations %s must also be associated to the discovery rule"
416
+ #: ../app/models/discovery_rule.rb:15
417
+ msgid "must be present."
418
+ msgstr ""
419
+
420
+ #: ../app/models/discovery_rule.rb:48
421
+ msgid "Host group organization %s must also be associated to the discovery rule"
422
+ msgid_plural "Host group organizations %s must also be associated to the discovery rule"
454
423
  msgstr[0] ""
424
+ msgstr[1] ""
455
425
 
456
- #: ../app/models/discovery_rule.rb:51
426
+ #: ../app/models/discovery_rule.rb:54
457
427
  msgid "Host group location %s must also be associated to the discovery rule"
458
- msgid_plural ""
459
- "Host group locations %s must also be associated to the discovery rule"
428
+ msgid_plural "Host group locations %s must also be associated to the discovery rule"
460
429
  msgstr[0] ""
430
+ msgstr[1] ""
461
431
 
462
- #: ../app/models/host/discovered.rb:37
432
+ #: ../app/models/host/discovered.rb:51
463
433
  msgid "Invalid facts, must be a Hash"
464
434
  msgstr "詳情無效,必須是雜湊"
465
435
 
466
- #: ../app/models/host/discovered.rb:42
467
- msgid ""
468
- "Expected discovery_fact '%s' is missing, unable to detect primary interface "
469
- "and set hostname"
436
+ #: ../app/models/host/discovered.rb:56
437
+ msgid "Expected discovery_fact '%s' is missing, unable to detect primary interface and set hostname"
470
438
  msgstr "沒有預期的 discovery_fact '%s',無法偵測主介面並設定主機名稱"
471
439
 
472
- #: ../app/models/host/discovered.rb:49
473
- msgid ""
474
- "Invalid facts: hash does not contain a valid value for any of the facts in "
475
- "the discovery_hostname setting: %s"
440
+ #: ../app/models/host/discovered.rb:63
441
+ msgid "Invalid facts: hash does not contain a valid value for any of the facts in the discovery_hostname setting: %s"
476
442
  msgstr ""
477
443
 
478
- #: ../app/models/host/discovered.rb:66
444
+ #: ../app/models/host/discovered.rb:89
479
445
  msgid "Facts could not be imported"
480
446
  msgstr ""
481
447
 
482
- #: ../app/models/host/discovered.rb:133
483
- msgid "Unable to assign subnet, primary interface is missing IP address"
484
- msgstr "無法指定子網路,主介面沒有 IP 位址"
485
-
486
- #: ../app/models/host/discovered.rb:190
448
+ #: ../app/models/host/discovered.rb:212
487
449
  msgid "Could not get facts from proxy %{url}: %{error}"
488
450
  msgstr "無法由協定 %{url} 取得詳細資料:%{error}"
489
451
 
490
- #: ../app/models/host/discovered.rb:198
452
+ #: ../app/models/host/discovered.rb:220
491
453
  msgid "Unable to reboot %{name} via %{url}: %{msg}"
492
454
  msgstr "無法透過 %{url} 重新啟動 %{name}:%{msg}"
493
455
 
494
- #: ../app/models/host/discovered.rb:206
456
+ #: ../app/models/host/discovered.rb:228
495
457
  msgid "Unable to perform kexec on %{name} via %{url}: %{msg}"
496
458
  msgstr "無法透過 %{url} 在 %{name} 上執行 kexec:%{msg}"
497
459
 
498
- #: ../app/models/host/discovered.rb:225
460
+ #: ../app/models/host/discovered.rb:247
499
461
  msgid "Invalid hostname: Could not normalize the hostname"
500
462
  msgstr ""
501
463
 
@@ -548,9 +510,7 @@ msgid "Hostname facts"
548
510
  msgstr ""
549
511
 
550
512
  #: ../app/models/setting/discovered.rb:22
551
- msgid ""
552
- "Automatically provision newly discovered hosts, according to the "
553
- "provisioning rules"
513
+ msgid "Automatically provision newly discovered hosts, according to the provisioning rules"
554
514
  msgstr "根據佈建規則來自動佈建新發現的主機"
555
515
 
556
516
  #: ../app/models/setting/discovered.rb:22
@@ -626,9 +586,7 @@ msgid "IPMI facts"
626
586
  msgstr ""
627
587
 
628
588
  #: ../app/models/setting/discovered.rb:32
629
- msgid ""
630
- "Automatically generate PXE configuration to pin a newly discovered host to "
631
- "discovery"
589
+ msgid "Automatically generate PXE configuration to pin a newly discovered host to discovery"
632
590
  msgstr ""
633
591
 
634
592
  #: ../app/models/setting/discovered.rb:32
@@ -667,27 +625,41 @@ msgstr ""
667
625
  msgid "Force DNS"
668
626
  msgstr ""
669
627
 
670
- #: ../app/models/setting/discovered.rb:43
628
+ #: ../app/models/setting/discovered.rb:37
629
+ msgid "Do not allow to discover existing managed host matching MAC of a provisioning NIC (errors out early)"
630
+ msgstr ""
631
+
632
+ #: ../app/models/setting/discovered.rb:37
633
+ msgid "Error on existing NIC"
634
+ msgstr ""
635
+
636
+ #: ../app/models/setting/discovered.rb:44
671
637
  msgid "The default location to place discovered hosts in"
672
638
  msgstr "放置已發現之主機的預設位置"
673
639
 
674
- #: ../app/models/setting/discovered.rb:43
640
+ #: ../app/models/setting/discovered.rb:44
675
641
  msgid "Discovery location"
676
642
  msgstr ""
677
643
 
678
- #: ../app/models/setting/discovered.rb:51
644
+ #: ../app/models/setting/discovered.rb:52
679
645
  msgid "The default organization to place discovered hosts in"
680
646
  msgstr "放置已發現之主機的預設組織"
681
647
 
682
- #: ../app/models/setting/discovered.rb:51
648
+ #: ../app/models/setting/discovered.rb:52
683
649
  msgid "Discovery organization"
684
650
  msgstr ""
685
651
 
686
- #: ../app/services/foreman_discovery/fact_parser.rb:9
687
- msgid ""
688
- "Unable to detect primary interface using MAC '%{mac}' specified by "
689
- "discovery_fact '%{fact}'"
690
- msgstr "無法偵測使用 MAC '%{mac}' 的主介面,由 discovery_fact '%{fact}' 所指定"
652
+ #: ../app/services/foreman_discovery/fact_parser.rb:4
653
+ msgid "Discovery fact parser does not work with non-discovery host '%{host}'"
654
+ msgstr ""
655
+
656
+ #: ../app/services/foreman_discovery/fact_parser.rb:6
657
+ msgid "Discovered host '%{host}' has all NICs filtered out, filter: %{filter}"
658
+ msgstr ""
659
+
660
+ #: ../app/services/foreman_discovery/fact_parser.rb:12
661
+ msgid "Unable to find primary NIC with %{mac} specified via '%{fact}', NIC filter: %{filter}"
662
+ msgstr ""
691
663
 
692
664
  #: ../app/services/foreman_discovery/node_api/node_resource.rb:75
693
665
  msgid "Image API returned HTTP/%{code} with '%{body}"
@@ -705,25 +677,15 @@ msgstr "未發現可用的主機"
705
677
  msgid "Host"
706
678
  msgstr "主機"
707
679
 
708
- #: ../app/views/dashboard/_discovery_widget_host_list.html.erb:4
709
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:7
710
- #: ../app/views/discovered_hosts/_selected_hosts.html.erb:8
711
- #: ../app/views/discovered_mailer/discovered_summary.html.erb:18
712
- #: ../app/views/discovered_mailer/discovered_summary.text.erb:10
680
+ #: ../app/views/dashboard/_discovery_widget_host_list.html.erb:4 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:7 ../app/views/discovered_hosts/_selected_hosts.html.erb:8 ../app/views/discovered_mailer/discovered_summary.html.erb:18 ../app/views/discovered_mailer/discovered_summary.text.erb:10
713
681
  msgid "Model"
714
682
  msgstr "型號"
715
683
 
716
- #: ../app/views/dashboard/_discovery_widget_host_list.html.erb:5
717
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:9
718
- #: ../app/views/discovered_mailer/discovered_summary.html.erb:20
719
- #: ../app/views/discovered_mailer/discovered_summary.text.erb:12
684
+ #: ../app/views/dashboard/_discovery_widget_host_list.html.erb:5 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:9 ../app/views/discovered_mailer/discovered_summary.html.erb:20 ../app/views/discovered_mailer/discovered_summary.text.erb:12
720
685
  msgid "CPUs"
721
686
  msgstr "CPU"
722
687
 
723
- #: ../app/views/dashboard/_discovery_widget_host_list.html.erb:6
724
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:10
725
- #: ../app/views/discovered_mailer/discovered_summary.html.erb:21
726
- #: ../app/views/discovered_mailer/discovered_summary.text.erb:13
688
+ #: ../app/views/dashboard/_discovery_widget_host_list.html.erb:6 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:10 ../app/views/discovered_mailer/discovered_summary.html.erb:21 ../app/views/discovered_mailer/discovered_summary.text.erb:13
727
689
  msgid "Memory"
728
690
  msgstr "記憶體"
729
691
 
@@ -743,16 +705,11 @@ msgstr "選擇這頁中的所有項目"
743
705
  msgid "items selected. Uncheck to Clear"
744
706
  msgstr "已選取項目。反選以清除"
745
707
 
746
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:6
747
- #: ../app/views/discovered_hosts/_selected_hosts.html.erb:7
748
- #: ../app/views/discovered_mailer/discovered_summary.html.erb:17
749
- #: ../app/views/discovered_mailer/discovered_summary.text.erb:9
708
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:6 ../app/views/discovered_hosts/_selected_hosts.html.erb:7 ../app/views/discovered_mailer/discovered_summary.html.erb:17 ../app/views/discovered_mailer/discovered_summary.text.erb:9
750
709
  msgid "Name"
751
710
  msgstr "名稱"
752
711
 
753
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:8
754
- #: ../app/views/discovered_mailer/discovered_summary.html.erb:19
755
- #: ../app/views/discovered_mailer/discovered_summary.text.erb:11
712
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:8 ../app/views/discovered_mailer/discovered_summary.html.erb:19 ../app/views/discovered_mailer/discovered_summary.text.erb:11
756
713
  msgid "IP Address"
757
714
  msgstr "IP 位址"
758
715
 
@@ -764,13 +721,11 @@ msgstr ""
764
721
  msgid "Disks Size"
765
722
  msgstr ""
766
723
 
767
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:17
768
- #: ../app/views/discovered_hosts/_selected_hosts.html.erb:10
724
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:17 ../app/views/discovered_hosts/_selected_hosts.html.erb:10
769
725
  msgid "Location"
770
726
  msgstr "位置"
771
727
 
772
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:20
773
- #: ../app/views/discovered_hosts/_selected_hosts.html.erb:13
728
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:20 ../app/views/discovered_hosts/_selected_hosts.html.erb:13
774
729
  msgid "Organization"
775
730
  msgstr "組織"
776
731
 
@@ -798,18 +753,8 @@ msgstr "提交"
798
753
  msgid "Provision %s"
799
754
  msgstr ""
800
755
 
801
- #: ../app/views/discovered_hosts/index.html.erb:2
802
- msgid "Reboot All"
803
- msgstr "全部重新開機"
804
-
805
- #: ../app/views/discovered_hosts/index.html.erb:3
806
- msgid "Auto Provision All"
807
- msgstr "自動佈建全部"
808
-
809
756
  #: ../app/views/discovered_hosts/multiple_destroy.html.erb:3
810
- msgid ""
811
- "This might take a while, as all hosts, facts and reports will be destroyed "
812
- "as well"
757
+ msgid "This might take a while, as all hosts, facts and reports will be destroyed as well"
813
758
  msgstr "這可能會花上一段時間,因為所有主機、詳情與報告皆會被刪除"
814
759
 
815
760
  #: ../app/views/discovered_hosts/select_multiple_location.html.erb:5
@@ -824,34 +769,36 @@ msgstr "選擇組織"
824
769
  msgid "Discovered host: %s"
825
770
  msgstr "發現的主機:%s"
826
771
 
827
- #: ../app/views/discovered_hosts/show.html.erb:34
772
+ #: ../app/views/discovered_hosts/show.html.erb:37
828
773
  msgid "Interfaces"
829
774
  msgstr "介面"
830
775
 
831
- #: ../app/views/discovered_hosts/show.html.erb:41
776
+ #: ../app/views/discovered_hosts/show.html.erb:44
832
777
  msgid "Type"
833
778
  msgstr "種類"
834
779
 
835
- #: ../app/views/discovered_hosts/show.html.erb:42
780
+ #: ../app/views/discovered_hosts/show.html.erb:45
836
781
  msgid "Identifier"
837
782
  msgstr "辨識碼"
838
783
 
839
- #: ../app/views/discovered_hosts/show.html.erb:43
784
+ #: ../app/views/discovered_hosts/show.html.erb:46
840
785
  msgid "MAC address"
841
786
  msgstr "MAC 位址"
842
787
 
843
- #: ../app/views/discovered_hosts/show.html.erb:44
788
+ #: ../app/views/discovered_hosts/show.html.erb:47
844
789
  msgid "IP address"
845
790
  msgstr "IP 位址"
846
791
 
792
+ #: ../app/views/discovered_hosts/show.html.erb:66
793
+ msgid "Collapse All"
794
+ msgstr ""
795
+
847
796
  #: ../app/views/discovered_hosts/welcome.html.erb:7
848
797
  msgid "No discovered hosts found in this context."
849
798
  msgstr ""
850
799
 
851
800
  #: ../app/views/discovered_hosts/welcome.html.erb:8
852
- msgid ""
853
- "This page shows discovered bare-metal or virtual nodes waiting to be "
854
- "provisioned."
801
+ msgid "This page shows discovered bare-metal or virtual nodes waiting to be provisioned."
855
802
  msgstr ""
856
803
 
857
804
  #: ../app/views/discovered_hosts/welcome.html.erb:9
@@ -866,23 +813,19 @@ msgstr ""
866
813
  msgid "<b>Foreman</b> Discovered hosts summary"
867
814
  msgstr ""
868
815
 
869
- #: ../app/views/discovered_mailer/discovered_summary.html.erb:10
870
- #: ../app/views/discovered_mailer/discovered_summary.text.erb:5
816
+ #: ../app/views/discovered_mailer/discovered_summary.html.erb:10 ../app/views/discovered_mailer/discovered_summary.text.erb:5
871
817
  msgid "Summary from %{time} ago to %{now}"
872
818
  msgstr ""
873
819
 
874
- #: ../app/views/discovered_mailer/discovered_summary.html.erb:11
875
- #: ../app/views/discovered_mailer/discovered_summary.text.erb:3
820
+ #: ../app/views/discovered_mailer/discovered_summary.html.erb:11 ../app/views/discovered_mailer/discovered_summary.text.erb:3
876
821
  msgid "Discovered hosts from Foreman server at %{foreman_url}"
877
822
  msgstr ""
878
823
 
879
- #: ../app/views/discovered_mailer/discovered_summary.html.erb:22
880
- #: ../app/views/discovered_mailer/discovered_summary.text.erb:14
824
+ #: ../app/views/discovered_mailer/discovered_summary.html.erb:22 ../app/views/discovered_mailer/discovered_summary.text.erb:14
881
825
  msgid "Disk count"
882
826
  msgstr "磁碟計數"
883
827
 
884
- #: ../app/views/discovered_mailer/discovered_summary.html.erb:23
885
- #: ../app/views/discovered_mailer/discovered_summary.text.erb:15
828
+ #: ../app/views/discovered_mailer/discovered_summary.html.erb:23 ../app/views/discovered_mailer/discovered_summary.text.erb:15
886
829
  msgid "Disks size"
887
830
  msgstr "磁碟大小"
888
831
 
@@ -931,38 +874,28 @@ msgid "Rule priority (lower integer means higher priority)"
931
874
  msgstr "規則優先順序(愈小的數字代表愈高的優先權)"
932
875
 
933
876
  #: ../app/views/discovery_rules/_template_inline.erb:2
934
- msgid ""
935
- "Specify target hostname template pattern in the same syntax as in "
936
- "Provisioning Templates (ERB)."
877
+ msgid "Specify target hostname template pattern in the same syntax as in Provisioning Templates (ERB)."
937
878
  msgstr "以在佈建範本(ERB)中的相同語法,指定目標主機名稱範本格式。"
938
879
 
939
880
  #: ../app/views/discovery_rules/_template_inline.erb:4
940
- msgid ""
941
- "Domain will be appended automatically. A hostname based on MAC address will "
942
- "be used when left blank."
881
+ msgid "Domain will be appended automatically. A hostname based on MAC address will be used when left blank."
943
882
  msgstr ""
944
883
 
945
884
  #: ../app/views/discovery_rules/_template_inline.erb:5
946
- msgid ""
947
- "In addition to @host attribute function rand for random integers is "
948
- "available. Examples:"
885
+ msgid "In addition to @host attribute function rand for random integers is available. Examples:"
949
886
  msgstr ""
950
887
 
951
888
  #: ../app/views/discovery_rules/_template_inline.erb:8
952
- msgid ""
953
- "When creating hostname patterns, make sure the resulting host names are "
954
- "unique."
889
+ msgid "When creating hostname patterns, make sure the resulting host names are unique."
955
890
  msgstr ""
956
891
 
957
892
  #: ../app/views/discovery_rules/_template_inline.erb:9
958
- msgid ""
959
- "Hostnames must not start with numbers. A good approach is to use unique "
960
- "information provided by facter (MAC address, BIOS or serial ID)."
893
+ msgid "Hostnames must not start with numbers. A good approach is to use unique information provided by facter (MAC address, BIOS or serial ID)."
961
894
  msgstr ""
962
895
 
963
896
  #: ../app/views/discovery_rules/edit.html.erb:1
964
- msgid "Edit Discovery Rule"
965
- msgstr "編輯搜尋規則"
897
+ msgid "Edit %s"
898
+ msgstr ""
966
899
 
967
900
  #: ../app/views/discovery_rules/index.html.erb:1
968
901
  msgid "Discovery Rules"
@@ -1016,30 +949,26 @@ msgstr ""
1016
949
  msgid "Details"
1017
950
  msgstr "詳細資料"
1018
951
 
1019
- #: ../lib/foreman_discovery/engine.rb:151
952
+ #: ../lib/foreman_discovery/engine.rb:158
1020
953
  msgid "Discovered hosts"
1021
954
  msgstr "發現的主機"
1022
955
 
1023
- #: ../lib/foreman_discovery/engine.rb:156
956
+ #: ../lib/foreman_discovery/engine.rb:163
1024
957
  msgid "Discovery rules"
1025
958
  msgstr "搜尋規則"
1026
959
 
1027
- #: ../lib/foreman_discovery/engine.rb:172
960
+ #: ../lib/foreman_discovery/engine.rb:179
1028
961
  msgid "Discovery Kexec template"
1029
962
  msgstr ""
1030
963
 
1031
- #: ../lib/foreman_discovery/engine.rb:181
964
+ #: ../lib/foreman_discovery/engine.rb:188
1032
965
  msgid "Discovery Proxy"
1033
966
  msgstr ""
1034
967
 
1035
- #: ../lib/foreman_discovery/engine.rb:182
1036
- msgid ""
1037
- "Discovery Proxy to use within this subnet for managing connection to "
1038
- "discovered hosts"
968
+ #: ../lib/foreman_discovery/engine.rb:189
969
+ msgid "Discovery Proxy to use within this subnet for managing connection to discovered hosts"
1039
970
  msgstr ""
1040
971
 
1041
- #: ../lib/foreman_discovery/engine.rb:183
1042
- msgid ""
1043
- "ID of Discovery Proxy to use within this subnet for managing connection to "
1044
- "discovered hosts"
972
+ #: ../lib/foreman_discovery/engine.rb:190
973
+ msgid "ID of Discovery Proxy to use within this subnet for managing connection to discovered hosts"
1045
974
  msgstr ""