foreman_discovery 5.0.0 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/api/v2/discovered_hosts_controller.rb +41 -51
  3. data/app/controllers/concerns/foreman/controller/discovered_extensions.rb +20 -23
  4. data/app/controllers/discovered_hosts_controller.rb +50 -46
  5. data/app/helpers/concerns/foreman_discovery/settings_helper_extensions.rb +34 -0
  6. data/app/helpers/discovery_rules_helper.rb +5 -6
  7. data/app/mailers/discovered_mailer.rb +19 -0
  8. data/app/models/discovery_rule.rb +3 -3
  9. data/app/models/host/discovered.rb +33 -11
  10. data/app/models/host/managed_extensions.rb +10 -0
  11. data/app/models/hostgroup_extensions.rb +1 -1
  12. data/app/models/setting/discovered.rb +17 -11
  13. data/app/services/foreman_discovery/fact_parser.rb +16 -0
  14. data/app/services/foreman_discovery/host_converter.rb +0 -4
  15. data/app/services/foreman_discovery/node_api/power.rb +3 -3
  16. data/app/views/discovered_hosts/_discovered_host.html.erb +4 -2
  17. data/app/views/discovered_hosts/_discovered_hosts_list.html.erb +1 -1
  18. data/app/views/discovered_mailer/_discovered_host.html.erb +10 -0
  19. data/app/views/discovered_mailer/discovered_summary.html.erb +35 -0
  20. data/app/views/discovered_mailer/discovered_summary.text.erb +24 -0
  21. data/config/routes.rb +3 -3
  22. data/db/seeds.d/70_discovery_mail_notification.rb +9 -0
  23. data/lib/foreman_discovery/engine.rb +12 -9
  24. data/lib/foreman_discovery/version.rb +1 -1
  25. data/locale/ca/LC_MESSAGES/foreman_discovery.mo +0 -0
  26. data/locale/ca/foreman_discovery.edit.po +780 -0
  27. data/locale/ca/foreman_discovery.po +358 -261
  28. data/locale/de/LC_MESSAGES/foreman_discovery.mo +0 -0
  29. data/locale/de/foreman_discovery.edit.po +774 -0
  30. data/locale/de/foreman_discovery.po +418 -311
  31. data/locale/en_GB/LC_MESSAGES/foreman_discovery.mo +0 -0
  32. data/locale/en_GB/foreman_discovery.edit.po +779 -0
  33. data/locale/en_GB/foreman_discovery.po +423 -313
  34. data/locale/es/LC_MESSAGES/foreman_discovery.mo +0 -0
  35. data/locale/es/foreman_discovery.edit.po +781 -0
  36. data/locale/es/foreman_discovery.po +425 -313
  37. data/locale/foreman_discovery.pot +496 -159
  38. data/locale/fr/LC_MESSAGES/foreman_discovery.mo +0 -0
  39. data/locale/fr/foreman_discovery.edit.po +778 -0
  40. data/locale/fr/foreman_discovery.po +458 -322
  41. data/locale/gl/LC_MESSAGES/foreman_discovery.mo +0 -0
  42. data/locale/gl/foreman_discovery.edit.po +757 -0
  43. data/locale/gl/foreman_discovery.po +306 -215
  44. data/locale/it/LC_MESSAGES/foreman_discovery.mo +0 -0
  45. data/locale/it/foreman_discovery.edit.po +771 -0
  46. data/locale/it/foreman_discovery.po +411 -301
  47. data/locale/ja/LC_MESSAGES/foreman_discovery.mo +0 -0
  48. data/locale/ja/foreman_discovery.edit.po +770 -0
  49. data/locale/ja/foreman_discovery.po +395 -300
  50. data/locale/ko/LC_MESSAGES/foreman_discovery.mo +0 -0
  51. data/locale/ko/foreman_discovery.edit.po +768 -0
  52. data/locale/ko/foreman_discovery.po +393 -299
  53. data/locale/pt_BR/LC_MESSAGES/foreman_discovery.mo +0 -0
  54. data/locale/pt_BR/foreman_discovery.edit.po +780 -0
  55. data/locale/pt_BR/foreman_discovery.po +438 -309
  56. data/locale/ru/LC_MESSAGES/foreman_discovery.mo +0 -0
  57. data/locale/ru/foreman_discovery.edit.po +775 -0
  58. data/locale/ru/foreman_discovery.po +413 -308
  59. data/locale/sv_SE/LC_MESSAGES/foreman_discovery.mo +0 -0
  60. data/locale/sv_SE/foreman_discovery.edit.po +766 -0
  61. data/locale/sv_SE/foreman_discovery.po +321 -232
  62. data/locale/zh_CN/LC_MESSAGES/foreman_discovery.mo +0 -0
  63. data/locale/zh_CN/foreman_discovery.edit.po +769 -0
  64. data/locale/zh_CN/foreman_discovery.po +393 -302
  65. data/locale/zh_TW/LC_MESSAGES/foreman_discovery.mo +0 -0
  66. data/locale/zh_TW/foreman_discovery.edit.po +769 -0
  67. data/locale/zh_TW/foreman_discovery.po +395 -302
  68. data/test/functional/api/v2/discovered_hosts_controller_test.rb +8 -0
  69. data/test/functional/api/v2/discovery_rules_controller_test.rb +9 -0
  70. data/test/functional/discovered_hosts_controller_test.rb +26 -17
  71. data/test/functional/discovery_rules_controller_test.rb +9 -8
  72. data/test/test_helper.rb +0 -4
  73. data/test/test_helper_discovery.rb +24 -0
  74. data/test/unit/discovered_extensions_test.rb +31 -0
  75. data/test/unit/discovered_mailer_test.rb +44 -0
  76. data/test/unit/discovery_attribute_set_test.rb +12 -0
  77. data/test/unit/discovery_rule_test.rb +20 -0
  78. data/test/unit/{puppet_fact_parser_extensions_test.rb → fact_parser_test.rb} +3 -16
  79. data/test/unit/host_discovered_test.rb +56 -11
  80. metadata +29 -5
  81. data/app/lib/puppet_fact_parser_extensions.rb +0 -29
@@ -0,0 +1,769 @@
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) 2015 Foreman developers
3
+ # This file is distributed under the same license as the foreman_discovery package.
4
+ #
5
+ # Translators:
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: Foreman\n"
9
+ "Report-Msgid-Bugs-To: foreman-dev@googlegroups.com\n"
10
+ "PO-Revision-Date: 2015-10-15 09:16+0000\n"
11
+ "Last-Translator: Lukáš Zapletal\n"
12
+ "Language-Team: Chinese (Taiwan) (http://www.transifex.com/foreman/foreman/lang"
13
+ "uage/zh_TW/)\n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=UTF-8\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+ "Language: zh_TW\n"
18
+ "Plural-Forms: nplurals=1; plural=0;\n"
19
+
20
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:15
21
+ msgid "List all discovered hosts"
22
+ msgstr "列出所有發現的主機"
23
+
24
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:16 ../app/controllers/api/v2/discovery_rules_controller.rb:14
25
+ msgid "filter results"
26
+ msgstr "篩選結果"
27
+
28
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:17 ../app/controllers/api/v2/discovery_rules_controller.rb:15
29
+ msgid "sort results"
30
+ msgstr "排序結果"
31
+
32
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:18 ../app/controllers/api/v2/discovery_rules_controller.rb:16
33
+ msgid "paginate results"
34
+ msgstr "編頁結果"
35
+
36
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:19 ../app/controllers/api/v2/discovery_rules_controller.rb:17
37
+ msgid "number of entries per request"
38
+ msgstr "每個請求的項目數量"
39
+
40
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:25
41
+ msgid "Show a discovered host"
42
+ msgstr "顯示發現的主機"
43
+
44
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:39
45
+ msgid "Create a discovered host for testing (use /facts to create new hosts)"
46
+ msgstr ""
47
+
48
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:47
49
+ msgid "Provision a discovered host"
50
+ msgstr "佈建一部已發現的主機"
51
+
52
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:52
53
+ msgid "not required if using a subnet with DHCP proxy"
54
+ msgstr "若是使用一個含有 DHCP 協定的子網路則不需要"
55
+
56
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:53
57
+ msgid "not required if it's a virtual machine"
58
+ msgstr "若是虛擬機器則不需要"
59
+
60
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:73
61
+ msgid "UUID to track orchestration tasks status, GET /api/orchestration/:UUID/tasks"
62
+ msgstr "用來追蹤協調流程任務狀態的 UUID,GET /api/orchestration/:UUID/tasks"
63
+
64
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:75
65
+ msgid "required if value is not inherited from host group or default password in settings"
66
+ msgstr "若值並非從主機群組或設定中的預設密碼所繼承的話則需要"
67
+
68
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:85
69
+ msgid "Delete a discovered host"
70
+ msgstr "刪除發現的主機"
71
+
72
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:92
73
+ msgid "Upload facts for a host, creating the host if required"
74
+ msgstr "上傳主機的詳情,並視需求建立主機"
75
+
76
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:93
77
+ 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)"
78
+ msgstr ""
79
+
80
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:112
81
+ msgid "Execute rules against a discovered host"
82
+ msgstr "針對於一部發現的主機執行規則"
83
+
84
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:118 ../app/controllers/discovered_hosts_controller.rb:147
85
+ msgid "Host %{host} was provisioned with rule %{rule}"
86
+ msgstr "主機 %{host} 已透過規則 %{rule} 佈建"
87
+
88
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:121
89
+ msgid "Unable to provision %{host}: %{errors}"
90
+ msgstr ""
91
+
92
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:127 ../app/controllers/discovered_hosts_controller.rb:154
93
+ msgid "No rule found for host %s"
94
+ msgstr "未找到主機 %s 的規則"
95
+
96
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:134
97
+ msgid "Execute rules against all currently discovered hosts"
98
+ msgstr "針對於所有目前已發現的主機執行規則"
99
+
100
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:138 ../app/controllers/discovered_hosts_controller.rb:160
101
+ msgid "Errors during auto provisioning: %s"
102
+ msgstr "進行自動佈建時發生了錯誤:%s"
103
+
104
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:141 ../app/controllers/discovered_hosts_controller.rb:163
105
+ msgid "No discovered hosts to provision"
106
+ msgstr "未發現可佈建的主機"
107
+
108
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:163
109
+ msgid "%s discovered hosts were provisioned"
110
+ msgstr ""
111
+
112
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:174
113
+ msgid "Refreshing the facts of a discovered host"
114
+ msgstr "刷新一部已發現之主機的詳情"
115
+
116
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:183
117
+ msgid "Rebooting a discovered host"
118
+ msgstr "重新啟動一部已發現的主機"
119
+
120
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:192
121
+ msgid "Rebooting all discovered hosts"
122
+ msgstr ""
123
+
124
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:203 ../app/controllers/discovered_hosts_controller.rb:105
125
+ msgid "Discovered hosts are rebooting now"
126
+ msgstr ""
127
+
128
+ #: ../app/controllers/api/v2/discovery_rules_controller.rb:13
129
+ msgid "List all discovery rules"
130
+ msgstr "列出所有的搜尋規則"
131
+
132
+ #: ../app/controllers/api/v2/discovery_rules_controller.rb:23
133
+ msgid "Show a discovery rule"
134
+ msgstr "顯示搜尋規則"
135
+
136
+ #: ../app/controllers/api/v2/discovery_rules_controller.rb:31
137
+ msgid "represents rule name shown to the users"
138
+ msgstr ""
139
+
140
+ #: ../app/controllers/api/v2/discovery_rules_controller.rb:32
141
+ msgid "query to match discovered hosts for the particular rule"
142
+ msgstr ""
143
+
144
+ #: ../app/controllers/api/v2/discovery_rules_controller.rb:33
145
+ msgid "the hostgroup that is used to auto provision a host"
146
+ msgstr ""
147
+
148
+ #: ../app/controllers/api/v2/discovery_rules_controller.rb:34
149
+ msgid "defines a pattern to assign human-readable hostnames to the matching hosts"
150
+ msgstr ""
151
+
152
+ #: ../app/controllers/api/v2/discovery_rules_controller.rb:35
153
+ msgid "enables to limit maximum amount of provisioned hosts per rule"
154
+ msgstr ""
155
+
156
+ #: ../app/controllers/api/v2/discovery_rules_controller.rb:36
157
+ msgid "puts the rules in order, low numbers go first. Must be greater then zero"
158
+ msgstr ""
159
+
160
+ #: ../app/controllers/api/v2/discovery_rules_controller.rb:37
161
+ msgid "flag is used for temporary shutdown of rules"
162
+ msgstr ""
163
+
164
+ #: ../app/controllers/api/v2/discovery_rules_controller.rb:41
165
+ msgid "Create a discovery rule"
166
+ msgstr "建立一項搜尋規則"
167
+
168
+ #: ../app/controllers/api/v2/discovery_rules_controller.rb:49
169
+ msgid "Update a rule"
170
+ msgstr "更新規則"
171
+
172
+ #: ../app/controllers/api/v2/discovery_rules_controller.rb:57
173
+ msgid "Delete a rule"
174
+ msgstr "刪除規則"
175
+
176
+ #: ../app/controllers/concerns/foreman/controller/discovered_extensions.rb:6
177
+ msgid "Unable to find a discovery rule, no host provided (check permissions)"
178
+ msgstr ""
179
+
180
+ #: ../app/controllers/concerns/foreman/controller/discovered_extensions.rb:47
181
+ msgid "No hostgroup associated with rule '%s'"
182
+ msgstr ""
183
+
184
+ #: ../app/controllers/concerns/foreman/controller/discovered_extensions.rb:63
185
+ msgid "Errors during reboot: %s"
186
+ msgstr ""
187
+
188
+ #: ../app/controllers/concerns/foreman/controller/discovered_extensions.rb:81
189
+ msgid "No discovered hosts to reboot"
190
+ msgstr ""
191
+
192
+ #: ../app/controllers/discovered_hosts_controller.rb:73
193
+ msgid "Facts refreshed for %s"
194
+ msgstr "%s 的詳情已刷新"
195
+
196
+ #: ../app/controllers/discovered_hosts_controller.rb:75
197
+ msgid "Failed to refresh facts for %s"
198
+ msgstr "刷新 %s 的詳情失敗"
199
+
200
+ #: ../app/controllers/discovered_hosts_controller.rb:78
201
+ msgid "Failed to refresh facts for %{hostname} with error %{error_message}"
202
+ msgstr ""
203
+
204
+ #: ../app/controllers/discovered_hosts_controller.rb:85
205
+ msgid "Host of type %s can not be rebooted"
206
+ msgstr "類型為 %s 的主機無法重新啟動"
207
+
208
+ #: ../app/controllers/discovered_hosts_controller.rb:89
209
+ msgid "Rebooting host %s"
210
+ msgstr "重新啟動主機 %s"
211
+
212
+ #: ../app/controllers/discovered_hosts_controller.rb:91
213
+ msgid "Failed to reboot host %s"
214
+ msgstr "重新啟動主機 %s 失敗"
215
+
216
+ #: ../app/controllers/discovered_hosts_controller.rb:94
217
+ msgid "Failed to reboot host %{hostname} with error %{error_message}"
218
+ msgstr "重新啟動主機 %{hostname} 失敗,錯誤訊息為 %{error_message}"
219
+
220
+ #: ../app/controllers/discovered_hosts_controller.rb:108
221
+ msgid "Failed to reboot hosts with error %s"
222
+ msgstr ""
223
+
224
+ #: ../app/controllers/discovered_hosts_controller.rb:122
225
+ msgid "Destroyed selected hosts"
226
+ msgstr "刪除選擇的主機"
227
+
228
+ #: ../app/controllers/discovered_hosts_controller.rb:124
229
+ msgid "The following hosts were not deleted: %s"
230
+ msgstr "下列主機尚未刪除:%s"
231
+
232
+ #: ../app/controllers/discovered_hosts_controller.rb:151
233
+ msgid "Failed to auto provision host %s: %s"
234
+ msgstr "自動佈建主機 %s 失敗:%s"
235
+
236
+ #: ../app/controllers/discovered_hosts_controller.rb:179
237
+ msgid "Discovered hosts are provisioning now"
238
+ msgstr "發現的主機現在正在佈建"
239
+
240
+ #: ../app/controllers/discovered_hosts_controller.rb:267
241
+ msgid "No hosts were found with that id or name"
242
+ msgstr "沒有找到擁有此 ID 或名稱的主機"
243
+
244
+ #: ../app/controllers/discovered_hosts_controller.rb:271
245
+ msgid "No hosts selected"
246
+ msgstr "未選擇主機"
247
+
248
+ #: ../app/controllers/discovered_hosts_controller.rb:277
249
+ msgid "Something went wrong while selecting hosts - %s"
250
+ msgstr "選擇主機時發生了錯誤 - %s"
251
+
252
+ #: ../app/controllers/discovery_rules_controller.rb:66
253
+ msgid "Rule disabled"
254
+ msgstr "規則已停用"
255
+
256
+ #: ../app/controllers/discovery_rules_controller.rb:66
257
+ msgid "Rule enabled"
258
+ msgstr "規則已啟用"
259
+
260
+ #: ../app/helpers/discovered_hosts_helper.rb:11
261
+ msgid "%s ago"
262
+ msgstr "%s 之前"
263
+
264
+ #: ../app/helpers/discovered_hosts_helper.rb:15 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:42
265
+ msgid "Provision"
266
+ msgstr "佈建"
267
+
268
+ #: ../app/helpers/discovered_hosts_helper.rb:16 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:43
269
+ msgid "Auto Provision"
270
+ msgstr "自動佈建"
271
+
272
+ #: ../app/helpers/discovered_hosts_helper.rb:17 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:44
273
+ msgid "Refresh facts"
274
+ msgstr "刷新詳情"
275
+
276
+ #: ../app/helpers/discovered_hosts_helper.rb:18 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:45
277
+ msgid "Reboot"
278
+ msgstr "重新開機"
279
+
280
+ #: ../app/helpers/discovered_hosts_helper.rb:21
281
+ msgid "Back"
282
+ msgstr ""
283
+
284
+ #: ../app/helpers/discovered_hosts_helper.rb:23 ../app/helpers/discovered_hosts_helper.rb:46
285
+ msgid "Select Action"
286
+ msgstr "選擇動作"
287
+
288
+ #: ../app/helpers/discovered_hosts_helper.rb:30
289
+ msgid "Expand All"
290
+ msgstr ""
291
+
292
+ #: ../app/helpers/discovered_hosts_helper.rb:35
293
+ msgid "Delete"
294
+ msgstr "刪除"
295
+
296
+ #: ../app/helpers/discovered_hosts_helper.rb:36
297
+ msgid "Are you sure?"
298
+ msgstr "您是否確定?"
299
+
300
+ #: ../app/helpers/discovered_hosts_helper.rb:42
301
+ msgid "Delete hosts"
302
+ msgstr "刪除主機"
303
+
304
+ #: ../app/helpers/discovered_hosts_helper.rb:43
305
+ msgid "Assign Organization"
306
+ msgstr "指定組織"
307
+
308
+ #: ../app/helpers/discovered_hosts_helper.rb:44
309
+ msgid "Assign Location"
310
+ msgstr "指定位置"
311
+
312
+ #: ../app/helpers/discovered_hosts_helper.rb:48
313
+ msgid "%s - The following hosts are about to be changed"
314
+ msgstr "%s - 以下主機即將受到更改"
315
+
316
+ #: ../app/helpers/discovered_hosts_helper.rb:57
317
+ msgid "N/A"
318
+ msgstr "N/A"
319
+
320
+ #: ../app/helpers/discovered_hosts_helper.rb:69
321
+ msgid "New in the last 24 hours"
322
+ msgstr ""
323
+
324
+ #: ../app/helpers/discovered_hosts_helper.rb:73
325
+ msgid "Not reported in more than 7 days"
326
+ msgstr ""
327
+
328
+ #: ../app/helpers/discovered_hosts_helper.rb:77
329
+ msgid "Reported in the last 7 days"
330
+ msgstr ""
331
+
332
+ #: ../app/helpers/discovery_rules_helper.rb:26
333
+ msgid "Discovered Hosts"
334
+ msgstr ""
335
+
336
+ #: ../app/helpers/discovery_rules_helper.rb:27
337
+ msgid "Associated Hosts"
338
+ msgstr ""
339
+
340
+ #: ../app/helpers/discovery_rules_helper.rb:29
341
+ msgid "Disable rule '%s'?"
342
+ msgstr ""
343
+
344
+ #: ../app/helpers/discovery_rules_helper.rb:29
345
+ msgid "Disable"
346
+ msgstr "停用"
347
+
348
+ #: ../app/helpers/discovery_rules_helper.rb:31
349
+ msgid "Enable"
350
+ msgstr "啟用"
351
+
352
+ #: ../app/helpers/discovery_rules_helper.rb:31
353
+ msgid "Enable rule '%s'?"
354
+ msgstr ""
355
+
356
+ #: ../app/helpers/discovery_rules_helper.rb:33
357
+ msgid "Delete rule '%s'?"
358
+ msgstr ""
359
+
360
+ #: ../app/mailers/discovered_mailer.rb:4
361
+ msgid "Must specify a user with email enabled"
362
+ msgstr ""
363
+
364
+ #: ../app/mailers/discovered_mailer.rb:15
365
+ msgid "Discovered hosts summary"
366
+ msgstr ""
367
+
368
+ #: ../app/models/discovery_rule.rb:11
369
+ msgid "can't contain white spaces."
370
+ msgstr "不可包含空格。"
371
+
372
+ #: ../app/models/discovery_rule.rb:13
373
+ msgid "must start with a letter or ERB."
374
+ msgstr "必須以字母或是 ERB 作為起始。"
375
+
376
+ #: ../app/models/discovery_rule.rb:49
377
+ msgid "Host group organization %s must also be associated to the discovery rule"
378
+ msgid_plural "Host group organizations %s must also be associated to the discovery rule"
379
+ msgstr[0] ""
380
+ msgstr[1] ""
381
+
382
+ #: ../app/models/discovery_rule.rb:55
383
+ msgid "Host group location %s must also be associated to the discovery rule"
384
+ msgid_plural "Host group locations %s must also be associated to the discovery rule"
385
+ msgstr[0] ""
386
+ msgstr[1] ""
387
+
388
+ #: ../app/models/host/discovered.rb:34
389
+ msgid "Invalid facts, must be a Hash"
390
+ msgstr "詳情無效,必須是雜湊"
391
+
392
+ #: ../app/models/host/discovered.rb:39
393
+ msgid "Expected discovery_fact '%s' is missing, unable to detect primary interface and set hostname"
394
+ msgstr ""
395
+
396
+ #: ../app/models/host/discovered.rb:46
397
+ msgid "Invalid facts: hash does not contain a valid value for any of the facts in the discovery_hostname setting: %s"
398
+ msgstr ""
399
+
400
+ #: ../app/models/host/discovered.rb:107
401
+ msgid "Unable to assign subnet, primary interface is missing IP address"
402
+ msgstr ""
403
+
404
+ #: ../app/models/host/discovered.rb:149
405
+ msgid "Could not get facts from proxy %{url}: %{error}"
406
+ msgstr "無法由協定 %{url} 取得詳細資料:%{error}"
407
+
408
+ #: ../app/models/host/discovered.rb:165
409
+ msgid "Unable to reboot %{name} via %{url}: %{msg}"
410
+ msgstr ""
411
+
412
+ #: ../app/models/host/discovered.rb:173
413
+ msgid "Unable to perform kexec on %{name} via %{url}: %{msg}"
414
+ msgstr ""
415
+
416
+ #: ../app/models/host/discovered.rb:192
417
+ msgid "Invalid hostname: Could not normalize the hostname"
418
+ msgstr ""
419
+
420
+ #: ../app/models/host/managed_extensions.rb:24
421
+ msgid "Reloading kernel on %s"
422
+ msgstr ""
423
+
424
+ #: ../app/models/host/managed_extensions.rb:26
425
+ msgid "Rebooting %s"
426
+ msgstr "重新啟動 %s"
427
+
428
+ #: ../app/models/host/managed_extensions.rb:45
429
+ msgid "Operating system not set for host/hostgroup"
430
+ msgstr ""
431
+
432
+ #: ../app/models/host/managed_extensions.rb:47
433
+ msgid "Medium not set for host/hostgroup"
434
+ msgstr ""
435
+
436
+ #: ../app/models/host/managed_extensions.rb:54
437
+ msgid "Kexec template not associated with operating system"
438
+ msgstr ""
439
+
440
+ #: ../app/models/setting/discovered.rb:19
441
+ msgid "Fact name to use for primary interface detection"
442
+ msgstr ""
443
+
444
+ #: ../app/models/setting/discovered.rb:20
445
+ msgid "List of facts to use for the hostname (separated by comma, first wins)"
446
+ msgstr ""
447
+
448
+ #: ../app/models/setting/discovered.rb:21
449
+ msgid "Automatically provision newly discovered hosts, according to the provisioning rules"
450
+ msgstr "根據佈建規則來自動佈建新發現的主機"
451
+
452
+ #: ../app/models/setting/discovered.rb:22
453
+ msgid "Automatically reboot discovered host during provisioning"
454
+ msgstr ""
455
+
456
+ #: ../app/models/setting/discovered.rb:28
457
+ msgid "The default prefix to use for the host name, must start with a letter"
458
+ msgstr "主機名稱的預設前綴,必須以字母為起始"
459
+
460
+ #: ../app/models/setting/discovered.rb:34
461
+ msgid "Extra facter columns to show in host lists (separate by comma)"
462
+ msgstr ""
463
+
464
+ #: ../app/models/setting/discovered.rb:41
465
+ msgid "The default location to place discovered hosts in"
466
+ msgstr "放置已發現之主機的預設位置"
467
+
468
+ #: ../app/models/setting/discovered.rb:48
469
+ msgid "The default organization to place discovered hosts in"
470
+ msgstr "放置已發現之主機的預設組織"
471
+
472
+ #: ../app/models/setting/discovered.rb:55
473
+ msgid "Regex to organize facts for highlights section"
474
+ msgstr ""
475
+
476
+ #: ../app/models/setting/discovered.rb:56
477
+ msgid "Regex to organize facts for storage section"
478
+ msgstr ""
479
+
480
+ #: ../app/models/setting/discovered.rb:57
481
+ msgid "Regex to organize facts for software section"
482
+ msgstr ""
483
+
484
+ #: ../app/models/setting/discovered.rb:58
485
+ msgid "Regex to organize facts for hardware section"
486
+ msgstr ""
487
+
488
+ #: ../app/models/setting/discovered.rb:59
489
+ msgid "Regex to organize facts for network section"
490
+ msgstr ""
491
+
492
+ #: ../app/models/setting/discovered.rb:60
493
+ msgid "Regex to organize facts for ipmi section"
494
+ msgstr ""
495
+
496
+ #: ../app/services/foreman_discovery/fact_parser.rb:9
497
+ msgid "Unable to detect primary interface using MAC '%{mac}' specified by discovery_fact '%{fact}'"
498
+ msgstr ""
499
+
500
+ #: ../app/services/foreman_discovery/node_api/node_resource.rb:75
501
+ msgid "Image API returned HTTP/%{code} with '%{body}"
502
+ msgstr ""
503
+
504
+ #: ../app/services/foreman_discovery/node_api/node_resource.rb:78
505
+ msgid "Image API processing error: %{msg} (HTTP/%{code}, body: %{body})"
506
+ msgstr ""
507
+
508
+ #: ../app/views/dashboard/_discovery_widget.html.erb:9
509
+ msgid "No discovered hosts available"
510
+ msgstr "未發現可用的主機"
511
+
512
+ #: ../app/views/dashboard/_discovery_widget_host_list.html.erb:3
513
+ msgid "Host"
514
+ msgstr "主機"
515
+
516
+ #: ../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
517
+ msgid "Model"
518
+ msgstr "型號"
519
+
520
+ #: ../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
521
+ msgid "CPUs"
522
+ msgstr "CPU"
523
+
524
+ #: ../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
525
+ msgid "Memory"
526
+ msgstr "記憶體"
527
+
528
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:2 ../lib/foreman_discovery/engine.rb:136
529
+ msgid "Discovered hosts"
530
+ msgstr "發現的主機"
531
+
532
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:5
533
+ msgid "items selected. Uncheck to Clear"
534
+ msgstr "已選取項目。反選以清除"
535
+
536
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:5
537
+ msgid "Select all items in this page"
538
+ msgstr "選擇這頁中的所有項目"
539
+
540
+ #: ../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
541
+ msgid "Name"
542
+ msgstr "名稱"
543
+
544
+ #: ../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
545
+ msgid "IP Address"
546
+ msgstr "IP 位址"
547
+
548
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:11 ../app/views/discovered_mailer/discovered_summary.html.erb:22 ../app/views/discovered_mailer/discovered_summary.text.erb:14
549
+ msgid "Disk count"
550
+ msgstr "磁碟計數"
551
+
552
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:12 ../app/views/discovered_mailer/discovered_summary.html.erb:23 ../app/views/discovered_mailer/discovered_summary.text.erb:15
553
+ msgid "Disks size"
554
+ msgstr "磁碟大小"
555
+
556
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:17 ../app/views/discovered_hosts/_selected_hosts.html.erb:10
557
+ msgid "Location"
558
+ msgstr "位置"
559
+
560
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:20 ../app/views/discovered_hosts/_selected_hosts.html.erb:13
561
+ msgid "Organization"
562
+ msgstr "組織"
563
+
564
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:22
565
+ msgid "Subnet"
566
+ msgstr "子網路"
567
+
568
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:23
569
+ msgid "Last facts upload"
570
+ msgstr "最後上傳的詳情"
571
+
572
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:46
573
+ msgid "Delete %s?"
574
+ msgstr "刪除 %s?"
575
+
576
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:57
577
+ msgid "Please Confirm"
578
+ msgstr "請確認"
579
+
580
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:63
581
+ msgid "Cancel"
582
+ msgstr "取消"
583
+
584
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:64
585
+ msgid "Submit"
586
+ msgstr "提交"
587
+
588
+ #: ../app/views/discovered_hosts/index.html.erb:2
589
+ msgid "Reboot All"
590
+ msgstr ""
591
+
592
+ #: ../app/views/discovered_hosts/index.html.erb:3
593
+ msgid "Auto Provision All"
594
+ msgstr "自動佈建全部"
595
+
596
+ #: ../app/views/discovered_hosts/multiple_destroy.html.erb:4
597
+ msgid "Warning"
598
+ msgstr "警告"
599
+
600
+ #: ../app/views/discovered_hosts/multiple_destroy.html.erb:5
601
+ msgid "This might take a while, as all hosts, facts and reports will be destroyed as well"
602
+ msgstr "這可能會花上一段時間,因為所有主機、詳情與報告皆會被刪除"
603
+
604
+ #: ../app/views/discovered_hosts/select_multiple_location.html.erb:5
605
+ msgid "Select location"
606
+ msgstr "選擇位置"
607
+
608
+ #: ../app/views/discovered_hosts/select_multiple_organization.html.erb:5
609
+ msgid "Select organization"
610
+ msgstr "選擇組織"
611
+
612
+ #: ../app/views/discovered_hosts/show.html.erb:1
613
+ msgid "Discovered host: %s"
614
+ msgstr "發現的主機:%s"
615
+
616
+ #: ../app/views/discovered_hosts/show.html.erb:32
617
+ msgid "Identifier"
618
+ msgstr ""
619
+
620
+ #: ../app/views/discovered_hosts/show.html.erb:33
621
+ msgid "MAC address"
622
+ msgstr ""
623
+
624
+ #: ../app/views/discovered_hosts/show.html.erb:34
625
+ msgid "IP address"
626
+ msgstr ""
627
+
628
+ #: ../app/views/discovered_mailer/discovered_summary.html.erb:6
629
+ msgid "Summary report for discovered hosts from Foreman"
630
+ msgstr ""
631
+
632
+ #: ../app/views/discovered_mailer/discovered_summary.html.erb:9
633
+ msgid "<b>Foreman</b> Discovered hosts summary"
634
+ msgstr ""
635
+
636
+ #: ../app/views/discovered_mailer/discovered_summary.html.erb:10 ../app/views/discovered_mailer/discovered_summary.text.erb:5
637
+ msgid "Summary from %{time} ago to %{now}"
638
+ msgstr ""
639
+
640
+ #: ../app/views/discovered_mailer/discovered_summary.html.erb:11 ../app/views/discovered_mailer/discovered_summary.text.erb:3
641
+ msgid "Discovered hosts from Foreman server at %{foreman_url}"
642
+ msgstr ""
643
+
644
+ #: ../app/views/discovered_mailer/discovered_summary.html.erb:31
645
+ msgid "No discovered hosts for the selected period"
646
+ msgstr ""
647
+
648
+ #: ../app/views/discovered_mailer/discovered_summary.text.erb:1
649
+ msgid "Foreman discovered hosts summary"
650
+ msgstr ""
651
+
652
+ #: ../app/views/discovered_mailer/discovered_summary.text.erb:21
653
+ msgid "No new discovered hosts for this period"
654
+ msgstr ""
655
+
656
+ #: ../app/views/discovery_rules/_form.html.erb:5
657
+ msgid "Primary"
658
+ msgstr ""
659
+
660
+ #: ../app/views/discovery_rules/_form.html.erb:7
661
+ msgid "Locations"
662
+ msgstr ""
663
+
664
+ #: ../app/views/discovery_rules/_form.html.erb:10
665
+ msgid "Organizations"
666
+ msgstr ""
667
+
668
+ #: ../app/views/discovery_rules/_form.html.erb:22
669
+ msgid "Target host group for this rule with all properties set"
670
+ msgstr "此規則的目標主機群組,並且設置了所有內容"
671
+
672
+ #: ../app/views/discovery_rules/_form.html.erb:24
673
+ msgid "Template"
674
+ msgstr "範本"
675
+
676
+ #: ../app/views/discovery_rules/_form.html.erb:26
677
+ msgid "Specify target hostname template pattern in the same syntax as in Provisioning Templates (ERB)."
678
+ msgstr "以在佈建範本(ERB)中的相同語法,指定目標主機名稱範本格式。"
679
+
680
+ #: ../app/views/discovery_rules/_form.html.erb:29
681
+ msgid "Domain will be appended automatically. A hostname based on MAC address will be used when left blank. In addition to @host attribute function rand for random integers is available. Examples:"
682
+ msgstr "區域將會被自動附加。當保留為空白時,基於 MAC 位址的主機名稱將會被使用。除了 @host 屬性功能,您亦可使用 rand 來取得隨機的數字。例如:"
683
+
684
+ #: ../app/views/discovery_rules/_form.html.erb:42
685
+ msgid "When creating hostname patterns, make sure the resulting host names are unique. Hostnames must not start with numbers. A good approach is to use unique information provided by facter (MAC address, BIOS or serial ID)."
686
+ msgstr "當建立主機名稱格式時,請確認使用的主機名稱為獨特的名稱。主機名稱不能以數字作為起始。有個較佳的做法就是使用 facter 所提供的獨特資訊(MAC 位址、BIOS 或是序列 ID)。"
687
+
688
+ #: ../app/views/discovery_rules/_form.html.erb:43
689
+ msgid "Hostname for provisioned hosts"
690
+ msgstr "已佈建之主機的主機名稱"
691
+
692
+ #: ../app/views/discovery_rules/_form.html.erb:44
693
+ msgid "Hosts limit"
694
+ msgstr "主機限制"
695
+
696
+ #: ../app/views/discovery_rules/_form.html.erb:44
697
+ msgid "Maximum hosts provisioned with this rule (0 = unlimited)"
698
+ msgstr "以此規則佈建的主機已達到最大限制(0 = 無限制)"
699
+
700
+ #: ../app/views/discovery_rules/_form.html.erb:45
701
+ msgid "Rule priority (lower integer means higher priority)"
702
+ msgstr "規則優先順序(愈小的數字代表愈高的優先權)"
703
+
704
+ #: ../app/views/discovery_rules/edit.html.erb:1
705
+ msgid "Edit Discovery Rule"
706
+ msgstr "編輯搜尋規則"
707
+
708
+ #: ../app/views/discovery_rules/index.html.erb:1
709
+ msgid "Discovery Rules"
710
+ msgstr "搜尋規則"
711
+
712
+ #: ../app/views/discovery_rules/index.html.erb:2
713
+ msgid "New Rule"
714
+ msgstr "新規則"
715
+
716
+ #: ../app/views/discovery_rules/index.html.erb:6
717
+ msgid "DiscoveryRule|Name"
718
+ msgstr "名稱"
719
+
720
+ #: ../app/views/discovery_rules/index.html.erb:7
721
+ msgid "DiscoveryRule|Priority"
722
+ msgstr "優先順序"
723
+
724
+ #: ../app/views/discovery_rules/index.html.erb:8
725
+ msgid "DiscoveryRule|Query"
726
+ msgstr "查詢"
727
+
728
+ #: ../app/views/discovery_rules/index.html.erb:9
729
+ msgid "Host group"
730
+ msgstr "主機群組"
731
+
732
+ #: ../app/views/discovery_rules/index.html.erb:10
733
+ msgid "Hosts/limit"
734
+ msgstr "主機/限制"
735
+
736
+ #: ../app/views/discovery_rules/index.html.erb:11
737
+ msgid "DiscoveryRule|Enabled"
738
+ msgstr "已啟用"
739
+
740
+ #: ../app/views/discovery_rules/new.html.erb:1
741
+ msgid "New Discovery Rule"
742
+ msgstr "新的搜尋規則"
743
+
744
+ #: ../db/seeds.d/70_discovery_mail_notification.rb:3
745
+ msgid "A summary of discovered hosts"
746
+ msgstr ""
747
+
748
+ #: ../lib/foreman_discovery/engine.rb:141
749
+ msgid "Discovery rules"
750
+ msgstr ""
751
+
752
+ #: ../lib/foreman_discovery/engine.rb:146
753
+ msgid "Discovery widget"
754
+ msgstr ""
755
+
756
+ #~ msgid "Disable rule?"
757
+ #~ msgstr "停用規則?"
758
+
759
+ #~ msgid "Enable rule?"
760
+ #~ msgstr "啟用規則?"
761
+
762
+ #~ msgid "Fact"
763
+ #~ msgstr "詳情"
764
+
765
+ #~ msgid "Facts discovered on this host"
766
+ #~ msgstr "在這部主機上發現的詳情"
767
+
768
+ #~ msgid "Value"
769
+ #~ msgstr "值"