foreman_discovery 5.0.0 → 5.0.1

Sign up to get free protection for your applications and to get access to all the features.
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 (China) (http://www.transifex.com/foreman/foreman/langu"
13
+ "age/zh_CN/)\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_CN\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 "根据规则 %{rule} 供应主机 %{host}"
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 "无"
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 "无效详情,必须是 Hash"
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 "处理器"
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 "值"