foreman_discovery 7.0.1 → 8.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/api/v2/discovered_hosts_controller.rb +2 -2
  3. data/app/controllers/discovered_hosts_controller.rb +2 -5
  4. data/app/models/host/discovered.rb +18 -10
  5. data/app/models/setting/discovered.rb +4 -2
  6. data/app/services/foreman_discovery/host_converter.rb +6 -1
  7. data/app/views/api/v2/discovered_hosts/main.json.rabl +4 -0
  8. data/app/views/discovered_hosts/_discovered_hosts_list.html.erb +3 -3
  9. data/app/views/discovery_rules/_form.html.erb +3 -5
  10. data/app/views/discovery_rules/index.html.erb +1 -1
  11. data/db/migrate/20160805104605_rename_lock_template_setting.rb +14 -0
  12. data/db/migrate/20160925213030_change_discovery_widget_names.rb +11 -0
  13. data/db/migrate/20160927164411_define_explicit_length_for_discovery_rule_attributes.rb +7 -0
  14. data/db/migrate/20161006094714_add_constraints_on_subnets_smart_proxies.rb +17 -0
  15. data/lib/foreman_discovery/engine.rb +10 -6
  16. data/lib/foreman_discovery/version.rb +1 -1
  17. data/locale/ca/LC_MESSAGES/foreman_discovery.mo +0 -0
  18. data/locale/ca/foreman_discovery.edit.po +120 -163
  19. data/locale/ca/foreman_discovery.po +36 -12
  20. data/locale/de/LC_MESSAGES/foreman_discovery.mo +0 -0
  21. data/locale/de/foreman_discovery.edit.po +123 -163
  22. data/locale/de/foreman_discovery.po +38 -14
  23. data/locale/en/foreman_discovery.edit.po +73 -49
  24. data/locale/en/foreman_discovery.po +23 -5
  25. data/locale/en_GB/LC_MESSAGES/foreman_discovery.mo +0 -0
  26. data/locale/en_GB/foreman_discovery.edit.po +130 -165
  27. data/locale/en_GB/foreman_discovery.po +39 -15
  28. data/locale/es/LC_MESSAGES/foreman_discovery.mo +0 -0
  29. data/locale/es/foreman_discovery.edit.po +120 -163
  30. data/locale/es/foreman_discovery.po +37 -13
  31. data/locale/foreman_discovery.pot +79 -50
  32. data/locale/fr/LC_MESSAGES/foreman_discovery.mo +0 -0
  33. data/locale/fr/foreman_discovery.edit.po +128 -164
  34. data/locale/fr/foreman_discovery.po +39 -15
  35. data/locale/gl/LC_MESSAGES/foreman_discovery.mo +0 -0
  36. data/locale/gl/foreman_discovery.edit.po +116 -163
  37. data/locale/gl/foreman_discovery.po +36 -12
  38. data/locale/it/LC_MESSAGES/foreman_discovery.mo +0 -0
  39. data/locale/it/foreman_discovery.edit.po +120 -163
  40. data/locale/it/foreman_discovery.po +37 -13
  41. data/locale/ja/LC_MESSAGES/foreman_discovery.mo +0 -0
  42. data/locale/ja/foreman_discovery.edit.po +122 -163
  43. data/locale/ja/foreman_discovery.po +37 -13
  44. data/locale/ko/LC_MESSAGES/foreman_discovery.mo +0 -0
  45. data/locale/ko/foreman_discovery.edit.po +120 -162
  46. data/locale/ko/foreman_discovery.po +37 -13
  47. data/locale/pt_BR/LC_MESSAGES/foreman_discovery.mo +0 -0
  48. data/locale/pt_BR/foreman_discovery.edit.po +120 -163
  49. data/locale/pt_BR/foreman_discovery.po +39 -15
  50. data/locale/ru/LC_MESSAGES/foreman_discovery.mo +0 -0
  51. data/locale/ru/foreman_discovery.edit.po +123 -164
  52. data/locale/ru/foreman_discovery.po +37 -13
  53. data/locale/sv_SE/LC_MESSAGES/foreman_discovery.mo +0 -0
  54. data/locale/sv_SE/foreman_discovery.edit.po +116 -163
  55. data/locale/sv_SE/foreman_discovery.po +36 -12
  56. data/locale/zh_CN/LC_MESSAGES/foreman_discovery.mo +0 -0
  57. data/locale/zh_CN/foreman_discovery.edit.po +122 -163
  58. data/locale/zh_CN/foreman_discovery.po +37 -13
  59. data/locale/zh_TW/LC_MESSAGES/foreman_discovery.mo +0 -0
  60. data/locale/zh_TW/foreman_discovery.edit.po +122 -163
  61. data/locale/zh_TW/foreman_discovery.po +37 -13
  62. data/test/functional/api/v2/discovered_hosts_controller_test.rb +54 -27
  63. data/test/functional/api/v2/discovery_rules_controller_test.rb +1 -9
  64. data/test/functional/discovered_hosts_controller_test.rb +35 -17
  65. data/test/test_helper_discovery.rb +17 -0
  66. data/test/unit/discovered_extensions_test.rb +1 -9
  67. data/test/unit/discovery_rule_test.rb +51 -0
  68. data/test/unit/discovery_taxonomy_extensions_test.rb +1 -8
  69. data/test/unit/host_discovered_test.rb +16 -50
  70. metadata +7 -19
  71. data/app/models/concerns/discovery_subnet.rb +0 -7
  72. data/app/overrides/subnet_form_with_discovery_proxy.rb +0 -9
@@ -7,8 +7,8 @@ msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: foreman_discovery 7.0.0\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
- "PO-Revision-Date: 2016-08-22 15:09+0000\n"
11
- "Last-Translator: Bryan Kearney <bryan.kearney@gmail.com>\n"
10
+ "PO-Revision-Date: 2016-08-31 08:17+0000\n"
11
+ "Last-Translator: Lukáš Zapletal\n"
12
12
  "Language-Team: Chinese (China) (http://www.transifex.com/foreman/foreman/langu"
13
13
  "age/zh_CN/)\n"
14
14
  "MIME-Version: 1.0\n"
@@ -131,6 +131,12 @@ msgstr ""
131
131
  msgid "Discovered hosts summary"
132
132
  msgstr ""
133
133
 
134
+ msgid "Discovery Proxy"
135
+ msgstr ""
136
+
137
+ msgid "Discovery Proxy to use within this subnet for managing connection to discovered hosts"
138
+ msgstr ""
139
+
134
140
  msgid "Discovery Rules"
135
141
  msgstr "发现规则"
136
142
 
@@ -143,9 +149,6 @@ msgstr ""
143
149
  msgid "Discovery rules"
144
150
  msgstr "发现规则"
145
151
 
146
- msgid "Discovery widget"
147
- msgstr "发现小程序"
148
-
149
152
  msgid "DiscoveryRule|Enabled"
150
153
  msgstr "已禁用"
151
154
 
@@ -227,6 +230,12 @@ msgstr "为 %s 刷新详情失败"
227
230
  msgid "Failed to refresh facts for %{hostname} with error %{error_message}"
228
231
  msgstr "刷新 %{hostname} 系统信息失败,并给出出错信息 %{error_message}。"
229
232
 
233
+ msgid "Force DNS"
234
+ msgstr ""
235
+
236
+ msgid "Force DNS entries creation when provisioning discovered host"
237
+ msgstr ""
238
+
230
239
  msgid "Foreman discovered hosts summary"
231
240
  msgstr ""
232
241
 
@@ -282,6 +291,9 @@ msgstr "主机限制"
282
291
  msgid "Hosts/limit"
283
292
  msgstr "主机/限制"
284
293
 
294
+ msgid "ID of Discovery Proxy to use within this subnet for managing connection to discovered hosts"
295
+ msgstr ""
296
+
285
297
  msgid "IP Address"
286
298
  msgstr "IP地址"
287
299
 
@@ -348,7 +360,13 @@ msgstr "位置"
348
360
  msgid "Lock PXE"
349
361
  msgstr ""
350
362
 
351
- msgid "Locked template name"
363
+ msgid "Locked PXEGrub template name"
364
+ msgstr ""
365
+
366
+ msgid "Locked PXEGrub2 template name"
367
+ msgstr ""
368
+
369
+ msgid "Locked PXELinux template name"
352
370
  msgstr ""
353
371
 
354
372
  msgid "MAC address"
@@ -357,9 +375,6 @@ msgstr "MAC 地址"
357
375
  msgid "Maximum hosts provisioned with this rule (0 = unlimited)"
358
376
  msgstr "根据此规则可供应的最大主机数(0 代表无限)"
359
377
 
360
- msgid "Medium not set for host/hostgroup"
361
- msgstr "没有为主机/主机组设置媒体"
362
-
363
378
  msgid "Memory"
364
379
  msgstr "内存"
365
380
 
@@ -423,16 +438,19 @@ msgstr "未找到主机 %s 的规则"
423
438
  msgid "Not reported in more than 7 days"
424
439
  msgstr "超过 7 天没有报告的"
425
440
 
426
- msgid "Operating system not set for host/hostgroup"
427
- msgstr "没有为主机/主机组设置操作系统"
428
-
429
441
  msgid "Organization"
430
442
  msgstr "机构"
431
443
 
432
444
  msgid "Organizations"
433
445
  msgstr "机构"
434
446
 
435
- msgid "PXE template to be used when pinning a host to discovery"
447
+ msgid "PXEGrub template to be used when pinning a host to discovery"
448
+ msgstr ""
449
+
450
+ msgid "PXEGrub2 template to be used when pinning a host to discovery"
451
+ msgstr ""
452
+
453
+ msgid "PXELinux template to be used when pinning a host to discovery"
436
454
  msgstr ""
437
455
 
438
456
  msgid "Please Confirm"
@@ -468,6 +486,9 @@ msgstr "重启已发现主机"
468
486
  msgid "Rebooting host %s"
469
487
  msgstr "正在重启主机 %s"
470
488
 
489
+ msgid "Rebuild DNS for %s"
490
+ msgstr ""
491
+
471
492
  msgid "Refresh facts"
472
493
  msgstr "刷新详情"
473
494
 
@@ -582,6 +603,9 @@ msgstr "未删除以下主机:%s"
582
603
  msgid "This might take a while, as all hosts, facts and reports will be destroyed as well"
583
604
  msgstr "这需要一些时间,因为同时还要删除所有主机、详情及报告。"
584
605
 
606
+ msgid "Type"
607
+ msgstr ""
608
+
585
609
  msgid "UUID to track orchestration tasks status, GET /api/orchestration/:UUID/tasks"
586
610
  msgstr "用来跟踪复杂任务状态的 UUID,GET /api/orchestration/:UUID/tasks"
587
611
 
@@ -1,16 +1,17 @@
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 7.0.0\n"
9
9
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2016-08-30 16:48+0200\n"
10
+ "POT-Creation-Date: 2017-01-06 08:26+0100\n"
11
11
  "PO-Revision-Date: 2016-08-31 08:17+0000\n"
12
12
  "Last-Translator: Lukáš Zapletal\n"
13
- "Language-Team: Chinese (Taiwan) (http://www.transifex.com/foreman/foreman/language/zh_TW/)\n"
13
+ "Language-Team: Chinese (Taiwan) (http://www.transifex.com/foreman/foreman/lang"
14
+ "uage/zh_TW/)\n"
14
15
  "MIME-Version: 1.0\n"
15
16
  "Content-Type: text/plain; charset=UTF-8\n"
16
17
  "Content-Transfer-Encoding: 8bit\n"
@@ -21,23 +22,19 @@ msgstr ""
21
22
  msgid "List all discovered hosts"
22
23
  msgstr "列出所有發現的主機"
23
24
 
24
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:17
25
- #: ../app/controllers/api/v2/discovery_rules_controller.rb:15
25
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:17 ../app/controllers/api/v2/discovery_rules_controller.rb:15
26
26
  msgid "filter results"
27
27
  msgstr "篩選結果"
28
28
 
29
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:18
30
- #: ../app/controllers/api/v2/discovery_rules_controller.rb:16
29
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:18 ../app/controllers/api/v2/discovery_rules_controller.rb:16
31
30
  msgid "sort results"
32
31
  msgstr "排序結果"
33
32
 
34
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:19
35
- #: ../app/controllers/api/v2/discovery_rules_controller.rb:17
33
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:19 ../app/controllers/api/v2/discovery_rules_controller.rb:17
36
34
  msgid "paginate results"
37
35
  msgstr "編頁結果"
38
36
 
39
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:20
40
- #: ../app/controllers/api/v2/discovery_rules_controller.rb:18
37
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:20 ../app/controllers/api/v2/discovery_rules_controller.rb:18
41
38
  msgid "number of entries per request"
42
39
  msgstr "每個請求的項目數量"
43
40
 
@@ -62,14 +59,11 @@ msgid "not required if it's a virtual machine"
62
59
  msgstr "若是虛擬機器則不需要"
63
60
 
64
61
  #: ../app/controllers/api/v2/discovered_hosts_controller.rb:74
65
- msgid ""
66
- "UUID to track orchestration tasks status, GET /api/orchestration/:UUID/tasks"
62
+ msgid "UUID to track orchestration tasks status, GET /api/orchestration/:UUID/tasks"
67
63
  msgstr "用來追蹤協調流程任務狀態的 UUID,GET /api/orchestration/:UUID/tasks"
68
64
 
69
65
  #: ../app/controllers/api/v2/discovered_hosts_controller.rb:76
70
- msgid ""
71
- "required if value is not inherited from host group or default password in "
72
- "settings"
66
+ msgid "required if value is not inherited from host group or default password in settings"
73
67
  msgstr "若值並非從主機群組或設定中的預設密碼所繼承的話則需要"
74
68
 
75
69
  #: ../app/controllers/api/v2/discovered_hosts_controller.rb:86
@@ -81,18 +75,14 @@ msgid "Upload facts for a host, creating the host if required"
81
75
  msgstr "上傳主機的詳情,並視需求建立主機"
82
76
 
83
77
  #: ../app/controllers/api/v2/discovered_hosts_controller.rb:94
84
- msgid ""
85
- "hash containing facts for the host with minimum set of facts: "
86
- "discovery_bootif, macaddress_eth0, ipaddress, ipaddress_eth0, interfaces: "
87
- "eth0 (example in case primary interface is named eth0)"
78
+ 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)"
88
79
  msgstr "包含主機詳情的雜湊,其中有最基本的詳情:discovery_bootif、macaddress_eth0、ipaddress、ipaddress_eth0、interfaces:eth0(大部分範例中,主介面的名稱都是 eth0)"
89
80
 
90
81
  #: ../app/controllers/api/v2/discovered_hosts_controller.rb:111
91
82
  msgid "Execute rules against a discovered host"
92
83
  msgstr "針對於一部發現的主機執行規則"
93
84
 
94
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:117
95
- #: ../app/controllers/discovered_hosts_controller.rb:165
85
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:117 ../app/controllers/discovered_hosts_controller.rb:162
96
86
  msgid "Host %{host} was provisioned with rule %{rule}"
97
87
  msgstr "主機 %{host} 已透過規則 %{rule} 佈建"
98
88
 
@@ -100,8 +90,7 @@ msgstr "主機 %{host} 已透過規則 %{rule} 佈建"
100
90
  msgid "Unable to provision %{host}: %{errors}"
101
91
  msgstr "無法供給 %{host}:%{errors}"
102
92
 
103
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:126
104
- #: ../app/controllers/discovered_hosts_controller.rb:172
93
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:126 ../app/controllers/discovered_hosts_controller.rb:169
105
94
  msgid "No rule found for host %s"
106
95
  msgstr "未找到主機 %s 的規則"
107
96
 
@@ -109,13 +98,11 @@ msgstr "未找到主機 %s 的規則"
109
98
  msgid "Execute rules against all currently discovered hosts"
110
99
  msgstr "針對於所有目前已發現的主機執行規則"
111
100
 
112
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:137
113
- #: ../app/controllers/discovered_hosts_controller.rb:178
101
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:137 ../app/controllers/discovered_hosts_controller.rb:175
114
102
  msgid "Errors during auto provisioning: %s"
115
103
  msgstr "進行自動佈建時發生了錯誤:%s"
116
104
 
117
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:140
118
- #: ../app/controllers/discovered_hosts_controller.rb:181
105
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:140 ../app/controllers/discovered_hosts_controller.rb:178
119
106
  msgid "No discovered hosts to provision"
120
107
  msgstr "未發現可佈建的主機"
121
108
 
@@ -135,8 +122,7 @@ msgstr "重新啟動一部已發現的主機"
135
122
  msgid "Rebooting all discovered hosts"
136
123
  msgstr "重新啟動所有已發現的主機"
137
124
 
138
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:202
139
- #: ../app/controllers/discovered_hosts_controller.rb:123
125
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:202 ../app/controllers/discovered_hosts_controller.rb:120
140
126
  msgid "Discovered hosts are rebooting now"
141
127
  msgstr "發現的主機正在重新啟動"
142
128
 
@@ -161,8 +147,7 @@ msgid "the hostgroup that is used to auto provision a host"
161
147
  msgstr "用來自動佈建一部主機的主機群組"
162
148
 
163
149
  #: ../app/controllers/api/v2/discovery_rules_controller.rb:35
164
- msgid ""
165
- "defines a pattern to assign human-readable hostnames to the matching hosts"
150
+ msgid "defines a pattern to assign human-readable hostnames to the matching hosts"
166
151
  msgstr "定義一項模式來為相符的主機指定易讀的主機名稱"
167
152
 
168
153
  #: ../app/controllers/api/v2/discovery_rules_controller.rb:36
@@ -170,8 +155,7 @@ msgid "enables to limit maximum amount of provisioned hosts per rule"
170
155
  msgstr "啟用來限制每個規則所能搭配的最大已佈建主機之數量"
171
156
 
172
157
  #: ../app/controllers/api/v2/discovery_rules_controller.rb:37
173
- msgid ""
174
- "puts the rules in order, low numbers go first. Must be greater then zero"
158
+ msgid "puts the rules in order, low numbers go first. Must be greater then zero"
175
159
  msgstr "按照順序排序規則,數字較小的優先。必須大於零"
176
160
 
177
161
  #: ../app/controllers/api/v2/discovery_rules_controller.rb:38
@@ -210,95 +194,95 @@ msgstr "重新開機時發生了錯誤:%s"
210
194
  msgid "No discovered hosts to reboot"
211
195
  msgstr "未發現可重新啟動的主機"
212
196
 
213
- #: ../app/controllers/discovered_hosts_controller.rb:59
197
+ #: ../app/controllers/discovered_hosts_controller.rb:57
214
198
  msgid "Successfully provisioned %s"
215
199
  msgstr ""
216
200
 
217
- #: ../app/controllers/discovered_hosts_controller.rb:91
201
+ #: ../app/controllers/discovered_hosts_controller.rb:88
218
202
  msgid "Facts refreshed for %s"
219
203
  msgstr "%s 的詳情已刷新"
220
204
 
221
- #: ../app/controllers/discovered_hosts_controller.rb:93
205
+ #: ../app/controllers/discovered_hosts_controller.rb:90
222
206
  msgid "Failed to refresh facts for %s"
223
207
  msgstr "刷新 %s 的詳情失敗"
224
208
 
225
- #: ../app/controllers/discovered_hosts_controller.rb:96
209
+ #: ../app/controllers/discovered_hosts_controller.rb:93
226
210
  msgid "Failed to refresh facts for %{hostname} with error %{error_message}"
227
211
  msgstr "重新刷新主機 %{hostname} 的事實失敗,錯誤訊息為 %{error_message}"
228
212
 
229
- #: ../app/controllers/discovered_hosts_controller.rb:103
213
+ #: ../app/controllers/discovered_hosts_controller.rb:100
230
214
  msgid "Host of type %s can not be rebooted"
231
215
  msgstr "類型為 %s 的主機無法重新啟動"
232
216
 
233
- #: ../app/controllers/discovered_hosts_controller.rb:107
217
+ #: ../app/controllers/discovered_hosts_controller.rb:104
234
218
  msgid "Rebooting host %s"
235
219
  msgstr "重新啟動主機 %s"
236
220
 
237
- #: ../app/controllers/discovered_hosts_controller.rb:109
221
+ #: ../app/controllers/discovered_hosts_controller.rb:106
238
222
  msgid "Failed to reboot host %s"
239
223
  msgstr "重新啟動主機 %s 失敗"
240
224
 
241
- #: ../app/controllers/discovered_hosts_controller.rb:112
225
+ #: ../app/controllers/discovered_hosts_controller.rb:109
242
226
  msgid "Failed to reboot host %{hostname} with error %{error_message}"
243
227
  msgstr "重新啟動主機 %{hostname} 失敗,錯誤訊息為 %{error_message}"
244
228
 
245
- #: ../app/controllers/discovered_hosts_controller.rb:126
229
+ #: ../app/controllers/discovered_hosts_controller.rb:123
246
230
  msgid "Failed to reboot hosts with error %s"
247
231
  msgstr "重新啟動主機失敗,錯誤訊息為 %s"
248
232
 
249
- #: ../app/controllers/discovered_hosts_controller.rb:140
233
+ #: ../app/controllers/discovered_hosts_controller.rb:137
250
234
  msgid "Destroyed selected hosts"
251
235
  msgstr "刪除選擇的主機"
252
236
 
253
- #: ../app/controllers/discovered_hosts_controller.rb:142
237
+ #: ../app/controllers/discovered_hosts_controller.rb:139
254
238
  msgid "The following hosts were not deleted: %s"
255
239
  msgstr "下列主機尚未刪除:%s"
256
240
 
257
- #: ../app/controllers/discovered_hosts_controller.rb:169
241
+ #: ../app/controllers/discovered_hosts_controller.rb:166
258
242
  msgid "Failed to auto provision host %s: %s"
259
243
  msgstr "自動佈建主機 %s 失敗:%s"
260
244
 
261
- #: ../app/controllers/discovered_hosts_controller.rb:197
245
+ #: ../app/controllers/discovered_hosts_controller.rb:194
262
246
  msgid "Discovered hosts are provisioning now"
263
247
  msgstr "發現的主機現在正在佈建"
264
248
 
265
- #: ../app/controllers/discovered_hosts_controller.rb:226
249
+ #: ../app/controllers/discovered_hosts_controller.rb:223
266
250
  msgid "Highlights"
267
251
  msgstr ""
268
252
 
269
- #: ../app/controllers/discovered_hosts_controller.rb:226
253
+ #: ../app/controllers/discovered_hosts_controller.rb:223
270
254
  msgid "Storage"
271
255
  msgstr ""
272
256
 
273
- #: ../app/controllers/discovered_hosts_controller.rb:226
257
+ #: ../app/controllers/discovered_hosts_controller.rb:223
274
258
  msgid "Hardware"
275
259
  msgstr ""
276
260
 
277
- #: ../app/controllers/discovered_hosts_controller.rb:226
261
+ #: ../app/controllers/discovered_hosts_controller.rb:223
278
262
  msgid "Network"
279
263
  msgstr ""
280
264
 
281
- #: ../app/controllers/discovered_hosts_controller.rb:226
265
+ #: ../app/controllers/discovered_hosts_controller.rb:223
282
266
  msgid "Software"
283
267
  msgstr ""
284
268
 
285
- #: ../app/controllers/discovered_hosts_controller.rb:226
269
+ #: ../app/controllers/discovered_hosts_controller.rb:223
286
270
  msgid "IPMI"
287
271
  msgstr ""
288
272
 
289
- #: ../app/controllers/discovered_hosts_controller.rb:226
273
+ #: ../app/controllers/discovered_hosts_controller.rb:223
290
274
  msgid "Miscellaneous"
291
275
  msgstr ""
292
276
 
293
- #: ../app/controllers/discovered_hosts_controller.rb:303
277
+ #: ../app/controllers/discovered_hosts_controller.rb:300
294
278
  msgid "No hosts were found with that id or name"
295
279
  msgstr "沒有找到擁有此 ID 或名稱的主機"
296
280
 
297
- #: ../app/controllers/discovered_hosts_controller.rb:307
281
+ #: ../app/controllers/discovered_hosts_controller.rb:304
298
282
  msgid "No hosts selected"
299
283
  msgstr "未選擇主機"
300
284
 
301
- #: ../app/controllers/discovered_hosts_controller.rb:313
285
+ #: ../app/controllers/discovered_hosts_controller.rb:310
302
286
  msgid "Something went wrong while selecting hosts - %s"
303
287
  msgstr "選擇主機時發生了錯誤 - %s"
304
288
 
@@ -314,19 +298,15 @@ msgstr "規則已停用"
314
298
  msgid "%s ago"
315
299
  msgstr "%s 之前"
316
300
 
317
- #: ../app/helpers/discovered_hosts_helper.rb:14
318
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:46
301
+ #: ../app/helpers/discovered_hosts_helper.rb:14 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:46
319
302
  msgid "Auto Provision"
320
303
  msgstr "自動佈建"
321
304
 
322
- #: ../app/helpers/discovered_hosts_helper.rb:15
323
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:47
305
+ #: ../app/helpers/discovered_hosts_helper.rb:15 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:47
324
306
  msgid "Refresh facts"
325
307
  msgstr "刷新詳情"
326
308
 
327
- #: ../app/helpers/discovered_hosts_helper.rb:16
328
- #: ../app/models/setting/discovered.rb:23
329
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:48
309
+ #: ../app/helpers/discovered_hosts_helper.rb:16 ../app/models/setting/discovered.rb:23 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:48
330
310
  msgid "Reboot"
331
311
  msgstr "重新開機"
332
312
 
@@ -334,8 +314,7 @@ msgstr "重新開機"
334
314
  msgid "Back"
335
315
  msgstr "上一步"
336
316
 
337
- #: ../app/helpers/discovered_hosts_helper.rb:21
338
- #: ../app/helpers/discovered_hosts_helper.rb:38
317
+ #: ../app/helpers/discovered_hosts_helper.rb:21 ../app/helpers/discovered_hosts_helper.rb:38
339
318
  msgid "Select Action"
340
319
  msgstr "選擇動作"
341
320
 
@@ -343,8 +322,7 @@ msgstr "選擇動作"
343
322
  msgid "Expand All"
344
323
  msgstr "全部展開"
345
324
 
346
- #: ../app/helpers/discovered_hosts_helper.rb:28
347
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:49
325
+ #: ../app/helpers/discovered_hosts_helper.rb:28 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:49
348
326
  msgid "Delete %s?"
349
327
  msgstr "刪除 %s?"
350
328
 
@@ -384,7 +362,7 @@ msgstr "過去七天內已回報"
384
362
  msgid "Provision"
385
363
  msgstr "佈建"
386
364
 
387
- #: ../app/helpers/discovery_rules_helper.rb:26
365
+ #: ../app/helpers/discovery_rules_helper.rb:26 ../lib/foreman_discovery/engine.rb:163
388
366
  msgid "Discovered Hosts"
389
367
  msgstr ""
390
368
 
@@ -429,55 +407,50 @@ msgid "must start with a letter or ERB."
429
407
  msgstr "必須以字母或是 ERB 作為起始。"
430
408
 
431
409
  #: ../app/models/discovery_rule.rb:45
432
- msgid ""
433
- "Host group organization %s must also be associated to the discovery rule"
434
- msgid_plural ""
435
- "Host group organizations %s must also be associated to the discovery rule"
410
+ msgid "Host group organization %s must also be associated to the discovery rule"
411
+ msgid_plural "Host group organizations %s must also be associated to the discovery rule"
436
412
  msgstr[0] ""
413
+ msgstr[1] ""
437
414
 
438
415
  #: ../app/models/discovery_rule.rb:51
439
416
  msgid "Host group location %s must also be associated to the discovery rule"
440
- msgid_plural ""
441
- "Host group locations %s must also be associated to the discovery rule"
417
+ msgid_plural "Host group locations %s must also be associated to the discovery rule"
442
418
  msgstr[0] ""
419
+ msgstr[1] ""
443
420
 
444
- #: ../app/models/host/discovered.rb:33
421
+ #: ../app/models/host/discovered.rb:38
445
422
  msgid "Invalid facts, must be a Hash"
446
423
  msgstr "詳情無效,必須是雜湊"
447
424
 
448
- #: ../app/models/host/discovered.rb:38
449
- msgid ""
450
- "Expected discovery_fact '%s' is missing, unable to detect primary interface "
451
- "and set hostname"
425
+ #: ../app/models/host/discovered.rb:43
426
+ msgid "Expected discovery_fact '%s' is missing, unable to detect primary interface and set hostname"
452
427
  msgstr "沒有預期的 discovery_fact '%s',無法偵測主介面並設定主機名稱"
453
428
 
454
- #: ../app/models/host/discovered.rb:45
455
- msgid ""
456
- "Invalid facts: hash does not contain a valid value for any of the facts in "
457
- "the discovery_hostname setting: %s"
429
+ #: ../app/models/host/discovered.rb:50
430
+ msgid "Invalid facts: hash does not contain a valid value for any of the facts in the discovery_hostname setting: %s"
458
431
  msgstr ""
459
432
 
460
- #: ../app/models/host/discovered.rb:62
433
+ #: ../app/models/host/discovered.rb:67
461
434
  msgid "Facts could not be imported"
462
435
  msgstr ""
463
436
 
464
- #: ../app/models/host/discovered.rb:112
437
+ #: ../app/models/host/discovered.rb:117
465
438
  msgid "Unable to assign subnet, primary interface is missing IP address"
466
439
  msgstr "無法指定子網路,主介面沒有 IP 位址"
467
440
 
468
- #: ../app/models/host/discovered.rb:166
441
+ #: ../app/models/host/discovered.rb:174
469
442
  msgid "Could not get facts from proxy %{url}: %{error}"
470
443
  msgstr "無法由協定 %{url} 取得詳細資料:%{error}"
471
444
 
472
- #: ../app/models/host/discovered.rb:182
445
+ #: ../app/models/host/discovered.rb:190
473
446
  msgid "Unable to reboot %{name} via %{url}: %{msg}"
474
447
  msgstr "無法透過 %{url} 重新啟動 %{name}:%{msg}"
475
448
 
476
- #: ../app/models/host/discovered.rb:190
449
+ #: ../app/models/host/discovered.rb:198
477
450
  msgid "Unable to perform kexec on %{name} via %{url}: %{msg}"
478
451
  msgstr "無法透過 %{url} 在 %{name} 上執行 kexec:%{msg}"
479
452
 
480
- #: ../app/models/host/discovered.rb:209
453
+ #: ../app/models/host/discovered.rb:217
481
454
  msgid "Invalid hostname: Could not normalize the hostname"
482
455
  msgstr ""
483
456
 
@@ -522,9 +495,7 @@ msgid "Hostname facts"
522
495
  msgstr ""
523
496
 
524
497
  #: ../app/models/setting/discovered.rb:22
525
- msgid ""
526
- "Automatically provision newly discovered hosts, according to the "
527
- "provisioning rules"
498
+ msgid "Automatically provision newly discovered hosts, according to the provisioning rules"
528
499
  msgstr "根據佈建規則來自動佈建新發現的主機"
529
500
 
530
501
  #: ../app/models/setting/discovered.rb:22
@@ -600,9 +571,7 @@ msgid "IPMI facts"
600
571
  msgstr ""
601
572
 
602
573
  #: ../app/models/setting/discovered.rb:32
603
- msgid ""
604
- "Automatically generate PXE configuration to pin a newly discovered host to "
605
- "discovery"
574
+ msgid "Automatically generate PXE configuration to pin a newly discovered host to discovery"
606
575
  msgstr ""
607
576
 
608
577
  #: ../app/models/setting/discovered.rb:32
@@ -610,41 +579,55 @@ msgid "Lock PXE"
610
579
  msgstr ""
611
580
 
612
581
  #: ../app/models/setting/discovered.rb:33
613
- msgid "PXE template to be used when pinning a host to discovery"
582
+ msgid "PXELinux template to be used when pinning a host to discovery"
614
583
  msgstr ""
615
584
 
616
585
  #: ../app/models/setting/discovered.rb:33
617
- msgid "Locked template name"
586
+ msgid "Locked PXELinux template name"
618
587
  msgstr ""
619
588
 
620
589
  #: ../app/models/setting/discovered.rb:34
621
- msgid "Force DNS entries creation when provisioning discovered host"
590
+ msgid "PXEGrub template to be used when pinning a host to discovery"
622
591
  msgstr ""
623
592
 
624
593
  #: ../app/models/setting/discovered.rb:34
594
+ msgid "Locked PXEGrub template name"
595
+ msgstr ""
596
+
597
+ #: ../app/models/setting/discovered.rb:35
598
+ msgid "PXEGrub2 template to be used when pinning a host to discovery"
599
+ msgstr ""
600
+
601
+ #: ../app/models/setting/discovered.rb:35
602
+ msgid "Locked PXEGrub2 template name"
603
+ msgstr ""
604
+
605
+ #: ../app/models/setting/discovered.rb:36
606
+ msgid "Force DNS entries creation when provisioning discovered host"
607
+ msgstr ""
608
+
609
+ #: ../app/models/setting/discovered.rb:36
625
610
  msgid "Force DNS"
626
611
  msgstr ""
627
612
 
628
- #: ../app/models/setting/discovered.rb:41
613
+ #: ../app/models/setting/discovered.rb:43
629
614
  msgid "The default location to place discovered hosts in"
630
615
  msgstr "放置已發現之主機的預設位置"
631
616
 
632
- #: ../app/models/setting/discovered.rb:41
617
+ #: ../app/models/setting/discovered.rb:43
633
618
  msgid "Discovery location"
634
619
  msgstr ""
635
620
 
636
- #: ../app/models/setting/discovered.rb:49
621
+ #: ../app/models/setting/discovered.rb:51
637
622
  msgid "The default organization to place discovered hosts in"
638
623
  msgstr "放置已發現之主機的預設組織"
639
624
 
640
- #: ../app/models/setting/discovered.rb:49
625
+ #: ../app/models/setting/discovered.rb:51
641
626
  msgid "Discovery organization"
642
627
  msgstr ""
643
628
 
644
629
  #: ../app/services/foreman_discovery/fact_parser.rb:9
645
- msgid ""
646
- "Unable to detect primary interface using MAC '%{mac}' specified by "
647
- "discovery_fact '%{fact}'"
630
+ msgid "Unable to detect primary interface using MAC '%{mac}' specified by discovery_fact '%{fact}'"
648
631
  msgstr "無法偵測使用 MAC '%{mac}' 的主介面,由 discovery_fact '%{fact}' 所指定"
649
632
 
650
633
  #: ../app/services/foreman_discovery/node_api/node_resource.rb:75
@@ -663,25 +646,15 @@ msgstr "未發現可用的主機"
663
646
  msgid "Host"
664
647
  msgstr "主機"
665
648
 
666
- #: ../app/views/dashboard/_discovery_widget_host_list.html.erb:4
667
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:7
668
- #: ../app/views/discovered_hosts/_selected_hosts.html.erb:8
669
- #: ../app/views/discovered_mailer/discovered_summary.html.erb:18
670
- #: ../app/views/discovered_mailer/discovered_summary.text.erb:10
649
+ #: ../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
671
650
  msgid "Model"
672
651
  msgstr "型號"
673
652
 
674
- #: ../app/views/dashboard/_discovery_widget_host_list.html.erb:5
675
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:9
676
- #: ../app/views/discovered_mailer/discovered_summary.html.erb:20
677
- #: ../app/views/discovered_mailer/discovered_summary.text.erb:12
653
+ #: ../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
678
654
  msgid "CPUs"
679
655
  msgstr "CPU"
680
656
 
681
- #: ../app/views/dashboard/_discovery_widget_host_list.html.erb:6
682
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:10
683
- #: ../app/views/discovered_mailer/discovered_summary.html.erb:21
684
- #: ../app/views/discovered_mailer/discovered_summary.text.erb:13
657
+ #: ../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
685
658
  msgid "Memory"
686
659
  msgstr "記憶體"
687
660
 
@@ -697,8 +670,7 @@ msgstr ""
697
670
  msgid "Create host"
698
671
  msgstr ""
699
672
 
700
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:2
701
- #: ../lib/foreman_discovery/engine.rb:147
673
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:2 ../lib/foreman_discovery/engine.rb:148
702
674
  msgid "Discovered hosts"
703
675
  msgstr "發現的主機"
704
676
 
@@ -710,38 +682,27 @@ msgstr "選擇這頁中的所有項目"
710
682
  msgid "items selected. Uncheck to Clear"
711
683
  msgstr "已選取項目。反選以清除"
712
684
 
713
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:6
714
- #: ../app/views/discovered_hosts/_selected_hosts.html.erb:7
715
- #: ../app/views/discovered_mailer/discovered_summary.html.erb:17
716
- #: ../app/views/discovered_mailer/discovered_summary.text.erb:9
685
+ #: ../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
717
686
  msgid "Name"
718
687
  msgstr "名稱"
719
688
 
720
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:8
721
- #: ../app/views/discovered_mailer/discovered_summary.html.erb:19
722
- #: ../app/views/discovered_mailer/discovered_summary.text.erb:11
689
+ #: ../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
723
690
  msgid "IP Address"
724
691
  msgstr "IP 位址"
725
692
 
726
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:11
727
- #: ../app/views/discovered_mailer/discovered_summary.html.erb:22
728
- #: ../app/views/discovered_mailer/discovered_summary.text.erb:14
693
+ #: ../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
729
694
  msgid "Disk count"
730
695
  msgstr "磁碟計數"
731
696
 
732
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:12
733
- #: ../app/views/discovered_mailer/discovered_summary.html.erb:23
734
- #: ../app/views/discovered_mailer/discovered_summary.text.erb:15
697
+ #: ../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
735
698
  msgid "Disks size"
736
699
  msgstr "磁碟大小"
737
700
 
738
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:17
739
- #: ../app/views/discovered_hosts/_selected_hosts.html.erb:10
701
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:17 ../app/views/discovered_hosts/_selected_hosts.html.erb:10
740
702
  msgid "Location"
741
703
  msgstr "位置"
742
704
 
743
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:20
744
- #: ../app/views/discovered_hosts/_selected_hosts.html.erb:13
705
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:20 ../app/views/discovered_hosts/_selected_hosts.html.erb:13
745
706
  msgid "Organization"
746
707
  msgstr "組織"
747
708
 
@@ -778,9 +739,7 @@ msgid "Warning"
778
739
  msgstr "警告"
779
740
 
780
741
  #: ../app/views/discovered_hosts/multiple_destroy.html.erb:5
781
- msgid ""
782
- "This might take a while, as all hosts, facts and reports will be destroyed "
783
- "as well"
742
+ msgid "This might take a while, as all hosts, facts and reports will be destroyed as well"
784
743
  msgstr "這可能會花上一段時間,因為所有主機、詳情與報告皆會被刪除"
785
744
 
786
745
  #: ../app/views/discovered_hosts/select_multiple_location.html.erb:5
@@ -823,13 +782,11 @@ msgstr ""
823
782
  msgid "<b>Foreman</b> Discovered hosts summary"
824
783
  msgstr ""
825
784
 
826
- #: ../app/views/discovered_mailer/discovered_summary.html.erb:10
827
- #: ../app/views/discovered_mailer/discovered_summary.text.erb:5
785
+ #: ../app/views/discovered_mailer/discovered_summary.html.erb:10 ../app/views/discovered_mailer/discovered_summary.text.erb:5
828
786
  msgid "Summary from %{time} ago to %{now}"
829
787
  msgstr ""
830
788
 
831
- #: ../app/views/discovered_mailer/discovered_summary.html.erb:11
832
- #: ../app/views/discovered_mailer/discovered_summary.text.erb:3
789
+ #: ../app/views/discovered_mailer/discovered_summary.html.erb:11 ../app/views/discovered_mailer/discovered_summary.text.erb:3
833
790
  msgid "Discovered hosts from Foreman server at %{foreman_url}"
834
791
  msgstr ""
835
792
 
@@ -882,33 +839,23 @@ msgid "Rule priority (lower integer means higher priority)"
882
839
  msgstr "規則優先順序(愈小的數字代表愈高的優先權)"
883
840
 
884
841
  #: ../app/views/discovery_rules/_template_inline.erb:2
885
- msgid ""
886
- "Specify target hostname template pattern in the same syntax as in "
887
- "Provisioning Templates (ERB)."
842
+ msgid "Specify target hostname template pattern in the same syntax as in Provisioning Templates (ERB)."
888
843
  msgstr "以在佈建範本(ERB)中的相同語法,指定目標主機名稱範本格式。"
889
844
 
890
845
  #: ../app/views/discovery_rules/_template_inline.erb:4
891
- msgid ""
892
- "Domain will be appended automatically. A hostname based on MAC address will "
893
- "be used when left blank."
846
+ msgid "Domain will be appended automatically. A hostname based on MAC address will be used when left blank."
894
847
  msgstr ""
895
848
 
896
849
  #: ../app/views/discovery_rules/_template_inline.erb:5
897
- msgid ""
898
- "In addition to @host attribute function rand for random integers is "
899
- "available. Examples:"
850
+ msgid "In addition to @host attribute function rand for random integers is available. Examples:"
900
851
  msgstr ""
901
852
 
902
853
  #: ../app/views/discovery_rules/_template_inline.erb:8
903
- msgid ""
904
- "When creating hostname patterns, make sure the resulting host names are "
905
- "unique."
854
+ msgid "When creating hostname patterns, make sure the resulting host names are unique."
906
855
  msgstr ""
907
856
 
908
857
  #: ../app/views/discovery_rules/_template_inline.erb:9
909
- msgid ""
910
- "Hostnames must not start with numbers. A good approach is to use unique "
911
- "information provided by facter (MAC address, BIOS or serial ID)."
858
+ msgid "Hostnames must not start with numbers. A good approach is to use unique information provided by facter (MAC address, BIOS or serial ID)."
912
859
  msgstr ""
913
860
 
914
861
  #: ../app/views/discovery_rules/edit.html.erb:1
@@ -955,10 +902,22 @@ msgstr "新的搜尋規則"
955
902
  msgid "A summary of discovered hosts"
956
903
  msgstr ""
957
904
 
958
- #: ../lib/foreman_discovery/engine.rb:152
905
+ #: ../lib/foreman_discovery/engine.rb:153
959
906
  msgid "Discovery rules"
960
907
  msgstr "搜尋規則"
961
908
 
909
+ #: ../lib/foreman_discovery/engine.rb:176
910
+ msgid "Discovery Proxy"
911
+ msgstr ""
912
+
913
+ #: ../lib/foreman_discovery/engine.rb:177
914
+ msgid "Discovery Proxy to use within this subnet for managing connection to discovered hosts"
915
+ msgstr ""
916
+
917
+ #: ../lib/foreman_discovery/engine.rb:178
918
+ msgid "ID of Discovery Proxy to use within this subnet for managing connection to discovered hosts"
919
+ msgstr ""
920
+
962
921
  #: ../lib/foreman_discovery/engine.rb:162
963
- msgid "Discovery widget"
964
- msgstr "搜尋工具組"
922
+ #~ msgid "Discovery widget"
923
+ #~ msgstr "搜尋工具組"