foreman_remote_execution 13.2.2 → 13.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/foreman_remote_execution/locale/de/foreman_remote_execution.js +57 -3
- data/app/assets/javascripts/foreman_remote_execution/locale/en/foreman_remote_execution.js +57 -3
- data/app/assets/javascripts/foreman_remote_execution/locale/en_GB/foreman_remote_execution.js +57 -3
- data/app/assets/javascripts/foreman_remote_execution/locale/es/foreman_remote_execution.js +57 -3
- data/app/assets/javascripts/foreman_remote_execution/locale/fr/foreman_remote_execution.js +57 -3
- data/app/assets/javascripts/foreman_remote_execution/locale/ja/foreman_remote_execution.js +57 -3
- data/app/assets/javascripts/foreman_remote_execution/locale/ka/foreman_remote_execution.js +57 -3
- data/app/assets/javascripts/foreman_remote_execution/locale/ko/foreman_remote_execution.js +57 -3
- data/app/assets/javascripts/foreman_remote_execution/locale/pt_BR/foreman_remote_execution.js +57 -3
- data/app/assets/javascripts/foreman_remote_execution/locale/ru/foreman_remote_execution.js +57 -3
- data/app/assets/javascripts/foreman_remote_execution/locale/zh_CN/foreman_remote_execution.js +57 -3
- data/app/assets/javascripts/foreman_remote_execution/locale/zh_TW/foreman_remote_execution.js +57 -3
- data/app/helpers/remote_execution_helper.rb +4 -2
- data/app/lib/actions/remote_execution/proxy_action.rb +8 -0
- data/app/views/template_invocations/show.html.erb +2 -2
- data/app/views/templates/script/run_downloaded_script.erb +15 -0
- data/lib/foreman_remote_execution/version.rb +1 -1
- data/locale/action_names.rb +0 -5
- data/locale/de/foreman_remote_execution.po +57 -3
- data/locale/en/foreman_remote_execution.po +57 -3
- data/locale/en_GB/foreman_remote_execution.po +57 -3
- data/locale/es/foreman_remote_execution.po +57 -3
- data/locale/foreman_remote_execution.pot +138 -62
- data/locale/fr/foreman_remote_execution.po +57 -3
- data/locale/ja/foreman_remote_execution.po +57 -3
- data/locale/ka/LC_MESSAGES/foreman_remote_execution.mo +0 -0
- data/locale/ka/foreman_remote_execution.po +57 -3
- data/locale/ko/foreman_remote_execution.po +57 -3
- data/locale/pt_BR/foreman_remote_execution.po +57 -3
- data/locale/ru/foreman_remote_execution.po +57 -3
- data/locale/zh_CN/foreman_remote_execution.po +57 -3
- data/locale/zh_TW/foreman_remote_execution.po +57 -3
- metadata +3 -2
data/app/assets/javascripts/foreman_remote_execution/locale/pt_BR/foreman_remote_execution.js
CHANGED
@@ -78,6 +78,9 @@
|
|
78
78
|
"A user to be used for executing the script. If it differs from the SSH user, su or sudo is used to switch the accounts.": [
|
79
79
|
"Usuário a ser usado para a execução de script. Se ele for diferente do usuário SSH, su ou sudo pode ser utilizado para a troca de contas. "
|
80
80
|
],
|
81
|
+
"Abort": [
|
82
|
+
""
|
83
|
+
],
|
81
84
|
"Abort Job": [
|
82
85
|
"Sobre o trabalho"
|
83
86
|
],
|
@@ -153,6 +156,9 @@
|
|
153
156
|
"Cancel job invocation": [
|
154
157
|
"Cancelar invocação de trabalho"
|
155
158
|
],
|
159
|
+
"Cancel recurring": [
|
160
|
+
""
|
161
|
+
],
|
156
162
|
"Canceled:": [
|
157
163
|
""
|
158
164
|
],
|
@@ -210,9 +216,24 @@
|
|
210
216
|
"Control concurrency level and distribution over time": [
|
211
217
|
"Controlar nível de simultaneidade e distribuição ao longo do tempo"
|
212
218
|
],
|
219
|
+
"Could not abort the job %s: ${response}": [
|
220
|
+
""
|
221
|
+
],
|
222
|
+
"Could not cancel recurring logic %s: ${response}": [
|
223
|
+
""
|
224
|
+
],
|
225
|
+
"Could not cancel the job %s: ${response}": [
|
226
|
+
""
|
227
|
+
],
|
228
|
+
"Could not disable recurring logic %s: ${response}": [
|
229
|
+
""
|
230
|
+
],
|
213
231
|
"Could not display data for job invocation.": [
|
214
232
|
"Não foi possível exibir dados para a invocação de empregos."
|
215
233
|
],
|
234
|
+
"Could not enable recurring logic %s: ${response}": [
|
235
|
+
""
|
236
|
+
],
|
216
237
|
"Could not find any suitable interface for execution": [
|
217
238
|
"Não foi possível encontrar uma interface adequada para execução"
|
218
239
|
],
|
@@ -246,6 +267,9 @@
|
|
246
267
|
"Create a recurring job": [
|
247
268
|
"Criar um trabalho recorrente "
|
248
269
|
],
|
270
|
+
"Create report": [
|
271
|
+
""
|
272
|
+
],
|
249
273
|
"Create report for this job": [
|
250
274
|
"Criar relatório para este trabalho"
|
251
275
|
],
|
@@ -318,6 +342,9 @@
|
|
318
342
|
"Designation of a special purpose": [
|
319
343
|
"Designação de um propósito especial"
|
320
344
|
],
|
345
|
+
"Disable recurring": [
|
346
|
+
""
|
347
|
+
],
|
321
348
|
"Display advanced fields": [
|
322
349
|
"Exibir campos avançados"
|
323
350
|
],
|
@@ -375,6 +402,9 @@
|
|
375
402
|
"Enable Global Proxy": [
|
376
403
|
"Ativar o proxy global"
|
377
404
|
],
|
405
|
+
"Enable recurring": [
|
406
|
+
""
|
407
|
+
],
|
378
408
|
"End time needs to be after start time": [
|
379
409
|
"O tempo final precisa ser após a hora de início"
|
380
410
|
],
|
@@ -681,6 +711,9 @@
|
|
681
711
|
"Learn more about this in the documentation.": [
|
682
712
|
"Para saber mais sobre isto, acesse a documentação."
|
683
713
|
],
|
714
|
+
"Legacy UI": [
|
715
|
+
""
|
716
|
+
],
|
684
717
|
"List available remote execution features for a host": [
|
685
718
|
""
|
686
719
|
],
|
@@ -912,6 +945,15 @@
|
|
912
945
|
"Recurring logic": [
|
913
946
|
"Lógica recorrente"
|
914
947
|
],
|
948
|
+
"Recurring logic %s cancelled successfully.": [
|
949
|
+
""
|
950
|
+
],
|
951
|
+
"Recurring logic %s disabled successfully.": [
|
952
|
+
""
|
953
|
+
],
|
954
|
+
"Recurring logic %s enabled successfully.": [
|
955
|
+
""
|
956
|
+
],
|
915
957
|
"Recursive rendering of templates detected": [
|
916
958
|
"Renderização recursiva de modelos detectada "
|
917
959
|
],
|
@@ -951,6 +993,9 @@
|
|
951
993
|
"Rerun": [
|
952
994
|
"Executar novamente"
|
953
995
|
],
|
996
|
+
"Rerun all": [
|
997
|
+
""
|
998
|
+
],
|
954
999
|
"Rerun failed": [
|
955
1000
|
"Falha em nova execução "
|
956
1001
|
],
|
@@ -963,6 +1008,9 @@
|
|
963
1008
|
"Rerun on failed hosts": [
|
964
1009
|
"Executar novamente em hosts com falha "
|
965
1010
|
],
|
1011
|
+
"Rerun successful": [
|
1012
|
+
""
|
1013
|
+
],
|
966
1014
|
"Rerun the job": [
|
967
1015
|
"Executar novamente o trabalho"
|
968
1016
|
],
|
@@ -1358,9 +1406,15 @@
|
|
1358
1406
|
"Trying to abort the job": [
|
1359
1407
|
"Tentando anular o trabalho"
|
1360
1408
|
],
|
1409
|
+
"Trying to abort the job %s.": [
|
1410
|
+
""
|
1411
|
+
],
|
1361
1412
|
"Trying to cancel the job": [
|
1362
1413
|
"Tentando cancelar o trabalho"
|
1363
1414
|
],
|
1415
|
+
"Trying to cancel the job %s.": [
|
1416
|
+
""
|
1417
|
+
],
|
1364
1418
|
"Type": [
|
1365
1419
|
"Tipo"
|
1366
1420
|
],
|
@@ -1415,9 +1469,6 @@
|
|
1415
1469
|
"Use new job wizard": [
|
1416
1470
|
""
|
1417
1471
|
],
|
1418
|
-
"Use old form": [
|
1419
|
-
""
|
1420
|
-
],
|
1421
1472
|
"User Inputs": [
|
1422
1473
|
"Entradas de usuário"
|
1423
1474
|
],
|
@@ -1451,6 +1502,9 @@
|
|
1451
1502
|
"View scheduled jobs": [
|
1452
1503
|
"Ver empregos programados"
|
1453
1504
|
],
|
1505
|
+
"View task": [
|
1506
|
+
""
|
1507
|
+
],
|
1454
1508
|
"Web Console": [
|
1455
1509
|
"Console web"
|
1456
1510
|
],
|
@@ -78,6 +78,9 @@
|
|
78
78
|
"A user to be used for executing the script. If it differs from the SSH user, su or sudo is used to switch the accounts.": [
|
79
79
|
"Пользователь, от имени которого должен запускаться сценарий. Если отличается от пользователя SSH, для делегирования прав используется su или sudo."
|
80
80
|
],
|
81
|
+
"Abort": [
|
82
|
+
""
|
83
|
+
],
|
81
84
|
"Abort Job": [
|
82
85
|
""
|
83
86
|
],
|
@@ -153,6 +156,9 @@
|
|
153
156
|
"Cancel job invocation": [
|
154
157
|
""
|
155
158
|
],
|
159
|
+
"Cancel recurring": [
|
160
|
+
""
|
161
|
+
],
|
156
162
|
"Canceled:": [
|
157
163
|
""
|
158
164
|
],
|
@@ -210,9 +216,24 @@
|
|
210
216
|
"Control concurrency level and distribution over time": [
|
211
217
|
"Контроль параллельного выполнения и распределения во времени"
|
212
218
|
],
|
219
|
+
"Could not abort the job %s: ${response}": [
|
220
|
+
""
|
221
|
+
],
|
222
|
+
"Could not cancel recurring logic %s: ${response}": [
|
223
|
+
""
|
224
|
+
],
|
225
|
+
"Could not cancel the job %s: ${response}": [
|
226
|
+
""
|
227
|
+
],
|
228
|
+
"Could not disable recurring logic %s: ${response}": [
|
229
|
+
""
|
230
|
+
],
|
213
231
|
"Could not display data for job invocation.": [
|
214
232
|
""
|
215
233
|
],
|
234
|
+
"Could not enable recurring logic %s: ${response}": [
|
235
|
+
""
|
236
|
+
],
|
216
237
|
"Could not find any suitable interface for execution": [
|
217
238
|
""
|
218
239
|
],
|
@@ -246,6 +267,9 @@
|
|
246
267
|
"Create a recurring job": [
|
247
268
|
"Периодическое выполнение"
|
248
269
|
],
|
270
|
+
"Create report": [
|
271
|
+
""
|
272
|
+
],
|
249
273
|
"Create report for this job": [
|
250
274
|
""
|
251
275
|
],
|
@@ -318,6 +342,9 @@
|
|
318
342
|
"Designation of a special purpose": [
|
319
343
|
""
|
320
344
|
],
|
345
|
+
"Disable recurring": [
|
346
|
+
""
|
347
|
+
],
|
321
348
|
"Display advanced fields": [
|
322
349
|
"Показать дополнительные параметры"
|
323
350
|
],
|
@@ -375,6 +402,9 @@
|
|
375
402
|
"Enable Global Proxy": [
|
376
403
|
""
|
377
404
|
],
|
405
|
+
"Enable recurring": [
|
406
|
+
""
|
407
|
+
],
|
378
408
|
"End time needs to be after start time": [
|
379
409
|
""
|
380
410
|
],
|
@@ -681,6 +711,9 @@
|
|
681
711
|
"Learn more about this in the documentation.": [
|
682
712
|
"Обратиться к документации"
|
683
713
|
],
|
714
|
+
"Legacy UI": [
|
715
|
+
""
|
716
|
+
],
|
684
717
|
"List available remote execution features for a host": [
|
685
718
|
""
|
686
719
|
],
|
@@ -912,6 +945,15 @@
|
|
912
945
|
"Recurring logic": [
|
913
946
|
"Регулярное выполнение"
|
914
947
|
],
|
948
|
+
"Recurring logic %s cancelled successfully.": [
|
949
|
+
""
|
950
|
+
],
|
951
|
+
"Recurring logic %s disabled successfully.": [
|
952
|
+
""
|
953
|
+
],
|
954
|
+
"Recurring logic %s enabled successfully.": [
|
955
|
+
""
|
956
|
+
],
|
915
957
|
"Recursive rendering of templates detected": [
|
916
958
|
"Обнаружена рекурсия при обработке шаблонов"
|
917
959
|
],
|
@@ -951,6 +993,9 @@
|
|
951
993
|
"Rerun": [
|
952
994
|
"Повторить"
|
953
995
|
],
|
996
|
+
"Rerun all": [
|
997
|
+
""
|
998
|
+
],
|
954
999
|
"Rerun failed": [
|
955
1000
|
"Повторить неудавшиеся"
|
956
1001
|
],
|
@@ -963,6 +1008,9 @@
|
|
963
1008
|
"Rerun on failed hosts": [
|
964
1009
|
"Повторить на узлах с ошибками"
|
965
1010
|
],
|
1011
|
+
"Rerun successful": [
|
1012
|
+
""
|
1013
|
+
],
|
966
1014
|
"Rerun the job": [
|
967
1015
|
"Повторно выполнить задание"
|
968
1016
|
],
|
@@ -1359,9 +1407,15 @@
|
|
1359
1407
|
"Trying to abort the job": [
|
1360
1408
|
""
|
1361
1409
|
],
|
1410
|
+
"Trying to abort the job %s.": [
|
1411
|
+
""
|
1412
|
+
],
|
1362
1413
|
"Trying to cancel the job": [
|
1363
1414
|
""
|
1364
1415
|
],
|
1416
|
+
"Trying to cancel the job %s.": [
|
1417
|
+
""
|
1418
|
+
],
|
1365
1419
|
"Type": [
|
1366
1420
|
"Тип"
|
1367
1421
|
],
|
@@ -1416,9 +1470,6 @@
|
|
1416
1470
|
"Use new job wizard": [
|
1417
1471
|
""
|
1418
1472
|
],
|
1419
|
-
"Use old form": [
|
1420
|
-
""
|
1421
|
-
],
|
1422
1473
|
"User Inputs": [
|
1423
1474
|
""
|
1424
1475
|
],
|
@@ -1452,6 +1503,9 @@
|
|
1452
1503
|
"View scheduled jobs": [
|
1453
1504
|
""
|
1454
1505
|
],
|
1506
|
+
"View task": [
|
1507
|
+
""
|
1508
|
+
],
|
1455
1509
|
"Web Console": [
|
1456
1510
|
""
|
1457
1511
|
],
|
data/app/assets/javascripts/foreman_remote_execution/locale/zh_CN/foreman_remote_execution.js
CHANGED
@@ -77,6 +77,9 @@
|
|
77
77
|
"A user to be used for executing the script. If it differs from the SSH user, su or sudo is used to switch the accounts.": [
|
78
78
|
"要使用執行這 script 的使用者。如果使用者與 SSH 使用者不同,會用 su 或 sudo 來切換使用者。"
|
79
79
|
],
|
80
|
+
"Abort": [
|
81
|
+
""
|
82
|
+
],
|
80
83
|
"Abort Job": [
|
81
84
|
"终止作业"
|
82
85
|
],
|
@@ -152,6 +155,9 @@
|
|
152
155
|
"Cancel job invocation": [
|
153
156
|
"取消作业调用"
|
154
157
|
],
|
158
|
+
"Cancel recurring": [
|
159
|
+
""
|
160
|
+
],
|
155
161
|
"Canceled:": [
|
156
162
|
""
|
157
163
|
],
|
@@ -209,9 +215,24 @@
|
|
209
215
|
"Control concurrency level and distribution over time": [
|
210
216
|
"控制并发级别和时间分布"
|
211
217
|
],
|
218
|
+
"Could not abort the job %s: ${response}": [
|
219
|
+
""
|
220
|
+
],
|
221
|
+
"Could not cancel recurring logic %s: ${response}": [
|
222
|
+
""
|
223
|
+
],
|
224
|
+
"Could not cancel the job %s: ${response}": [
|
225
|
+
""
|
226
|
+
],
|
227
|
+
"Could not disable recurring logic %s: ${response}": [
|
228
|
+
""
|
229
|
+
],
|
212
230
|
"Could not display data for job invocation.": [
|
213
231
|
"无法显示用于作业调用的数据。"
|
214
232
|
],
|
233
|
+
"Could not enable recurring logic %s: ${response}": [
|
234
|
+
""
|
235
|
+
],
|
215
236
|
"Could not find any suitable interface for execution": [
|
216
237
|
"无法找到适合执行的接口"
|
217
238
|
],
|
@@ -245,6 +266,9 @@
|
|
245
266
|
"Create a recurring job": [
|
246
267
|
"创建一个重复运行的作业"
|
247
268
|
],
|
269
|
+
"Create report": [
|
270
|
+
""
|
271
|
+
],
|
248
272
|
"Create report for this job": [
|
249
273
|
"为这个作业创建报告"
|
250
274
|
],
|
@@ -317,6 +341,9 @@
|
|
317
341
|
"Designation of a special purpose": [
|
318
342
|
"设计特殊目的"
|
319
343
|
],
|
344
|
+
"Disable recurring": [
|
345
|
+
""
|
346
|
+
],
|
320
347
|
"Display advanced fields": [
|
321
348
|
"显示高级字段"
|
322
349
|
],
|
@@ -374,6 +401,9 @@
|
|
374
401
|
"Enable Global Proxy": [
|
375
402
|
"启用全局代理服务器"
|
376
403
|
],
|
404
|
+
"Enable recurring": [
|
405
|
+
""
|
406
|
+
],
|
377
407
|
"End time needs to be after start time": [
|
378
408
|
"结束时间需要在开始时间后"
|
379
409
|
],
|
@@ -680,6 +710,9 @@
|
|
680
710
|
"Learn more about this in the documentation.": [
|
681
711
|
"如需了解更多信息,请参阅文档。"
|
682
712
|
],
|
713
|
+
"Legacy UI": [
|
714
|
+
""
|
715
|
+
],
|
683
716
|
"List available remote execution features for a host": [
|
684
717
|
""
|
685
718
|
],
|
@@ -911,6 +944,15 @@
|
|
911
944
|
"Recurring logic": [
|
912
945
|
"重复逻辑"
|
913
946
|
],
|
947
|
+
"Recurring logic %s cancelled successfully.": [
|
948
|
+
""
|
949
|
+
],
|
950
|
+
"Recurring logic %s disabled successfully.": [
|
951
|
+
""
|
952
|
+
],
|
953
|
+
"Recurring logic %s enabled successfully.": [
|
954
|
+
""
|
955
|
+
],
|
914
956
|
"Recursive rendering of templates detected": [
|
915
957
|
"检测到递归的模板呈现"
|
916
958
|
],
|
@@ -950,6 +992,9 @@
|
|
950
992
|
"Rerun": [
|
951
993
|
"重新运行"
|
952
994
|
],
|
995
|
+
"Rerun all": [
|
996
|
+
""
|
997
|
+
],
|
953
998
|
"Rerun failed": [
|
954
999
|
"重新运行失败"
|
955
1000
|
],
|
@@ -962,6 +1007,9 @@
|
|
962
1007
|
"Rerun on failed hosts": [
|
963
1008
|
"在失败的主机上重新运行"
|
964
1009
|
],
|
1010
|
+
"Rerun successful": [
|
1011
|
+
""
|
1012
|
+
],
|
965
1013
|
"Rerun the job": [
|
966
1014
|
"重新运行作业"
|
967
1015
|
],
|
@@ -1355,9 +1403,15 @@
|
|
1355
1403
|
"Trying to abort the job": [
|
1356
1404
|
"尝试中止作业"
|
1357
1405
|
],
|
1406
|
+
"Trying to abort the job %s.": [
|
1407
|
+
""
|
1408
|
+
],
|
1358
1409
|
"Trying to cancel the job": [
|
1359
1410
|
"尝试取消作业"
|
1360
1411
|
],
|
1412
|
+
"Trying to cancel the job %s.": [
|
1413
|
+
""
|
1414
|
+
],
|
1361
1415
|
"Type": [
|
1362
1416
|
"类型"
|
1363
1417
|
],
|
@@ -1412,9 +1466,6 @@
|
|
1412
1466
|
"Use new job wizard": [
|
1413
1467
|
""
|
1414
1468
|
],
|
1415
|
-
"Use old form": [
|
1416
|
-
""
|
1417
|
-
],
|
1418
1469
|
"User Inputs": [
|
1419
1470
|
"用户输入"
|
1420
1471
|
],
|
@@ -1448,6 +1499,9 @@
|
|
1448
1499
|
"View scheduled jobs": [
|
1449
1500
|
"查看调度的作业"
|
1450
1501
|
],
|
1502
|
+
"View task": [
|
1503
|
+
""
|
1504
|
+
],
|
1451
1505
|
"Web Console": [
|
1452
1506
|
"Web 控制台"
|
1453
1507
|
],
|
data/app/assets/javascripts/foreman_remote_execution/locale/zh_TW/foreman_remote_execution.js
CHANGED
@@ -78,6 +78,9 @@
|
|
78
78
|
"A user to be used for executing the script. If it differs from the SSH user, su or sudo is used to switch the accounts.": [
|
79
79
|
"要使用執行這 script 的使用者。如果使用者與 SSH 使用者不同,會用 su 或 sudo 來切換使用者。"
|
80
80
|
],
|
81
|
+
"Abort": [
|
82
|
+
""
|
83
|
+
],
|
81
84
|
"Abort Job": [
|
82
85
|
""
|
83
86
|
],
|
@@ -153,6 +156,9 @@
|
|
153
156
|
"Cancel job invocation": [
|
154
157
|
""
|
155
158
|
],
|
159
|
+
"Cancel recurring": [
|
160
|
+
""
|
161
|
+
],
|
156
162
|
"Canceled:": [
|
157
163
|
""
|
158
164
|
],
|
@@ -210,9 +216,24 @@
|
|
210
216
|
"Control concurrency level and distribution over time": [
|
211
217
|
"隨時間控制週期等級並散佈"
|
212
218
|
],
|
219
|
+
"Could not abort the job %s: ${response}": [
|
220
|
+
""
|
221
|
+
],
|
222
|
+
"Could not cancel recurring logic %s: ${response}": [
|
223
|
+
""
|
224
|
+
],
|
225
|
+
"Could not cancel the job %s: ${response}": [
|
226
|
+
""
|
227
|
+
],
|
228
|
+
"Could not disable recurring logic %s: ${response}": [
|
229
|
+
""
|
230
|
+
],
|
213
231
|
"Could not display data for job invocation.": [
|
214
232
|
""
|
215
233
|
],
|
234
|
+
"Could not enable recurring logic %s: ${response}": [
|
235
|
+
""
|
236
|
+
],
|
216
237
|
"Could not find any suitable interface for execution": [
|
217
238
|
""
|
218
239
|
],
|
@@ -246,6 +267,9 @@
|
|
246
267
|
"Create a recurring job": [
|
247
268
|
"建立週期性工作"
|
248
269
|
],
|
270
|
+
"Create report": [
|
271
|
+
""
|
272
|
+
],
|
249
273
|
"Create report for this job": [
|
250
274
|
""
|
251
275
|
],
|
@@ -318,6 +342,9 @@
|
|
318
342
|
"Designation of a special purpose": [
|
319
343
|
""
|
320
344
|
],
|
345
|
+
"Disable recurring": [
|
346
|
+
""
|
347
|
+
],
|
321
348
|
"Display advanced fields": [
|
322
349
|
"顯示進階欄位"
|
323
350
|
],
|
@@ -375,6 +402,9 @@
|
|
375
402
|
"Enable Global Proxy": [
|
376
403
|
""
|
377
404
|
],
|
405
|
+
"Enable recurring": [
|
406
|
+
""
|
407
|
+
],
|
378
408
|
"End time needs to be after start time": [
|
379
409
|
""
|
380
410
|
],
|
@@ -681,6 +711,9 @@
|
|
681
711
|
"Learn more about this in the documentation.": [
|
682
712
|
"欲知更多,請參閱文件。"
|
683
713
|
],
|
714
|
+
"Legacy UI": [
|
715
|
+
""
|
716
|
+
],
|
684
717
|
"List available remote execution features for a host": [
|
685
718
|
""
|
686
719
|
],
|
@@ -912,6 +945,15 @@
|
|
912
945
|
"Recurring logic": [
|
913
946
|
"週期邏輯"
|
914
947
|
],
|
948
|
+
"Recurring logic %s cancelled successfully.": [
|
949
|
+
""
|
950
|
+
],
|
951
|
+
"Recurring logic %s disabled successfully.": [
|
952
|
+
""
|
953
|
+
],
|
954
|
+
"Recurring logic %s enabled successfully.": [
|
955
|
+
""
|
956
|
+
],
|
915
957
|
"Recursive rendering of templates detected": [
|
916
958
|
"偵測到遞迴處理範本"
|
917
959
|
],
|
@@ -951,6 +993,9 @@
|
|
951
993
|
"Rerun": [
|
952
994
|
"重新執行"
|
953
995
|
],
|
996
|
+
"Rerun all": [
|
997
|
+
""
|
998
|
+
],
|
954
999
|
"Rerun failed": [
|
955
1000
|
"重新執行失敗"
|
956
1001
|
],
|
@@ -963,6 +1008,9 @@
|
|
963
1008
|
"Rerun on failed hosts": [
|
964
1009
|
"在失敗的主機上重新執行"
|
965
1010
|
],
|
1011
|
+
"Rerun successful": [
|
1012
|
+
""
|
1013
|
+
],
|
966
1014
|
"Rerun the job": [
|
967
1015
|
"重新執行工作"
|
968
1016
|
],
|
@@ -1357,9 +1405,15 @@
|
|
1357
1405
|
"Trying to abort the job": [
|
1358
1406
|
""
|
1359
1407
|
],
|
1408
|
+
"Trying to abort the job %s.": [
|
1409
|
+
""
|
1410
|
+
],
|
1360
1411
|
"Trying to cancel the job": [
|
1361
1412
|
""
|
1362
1413
|
],
|
1414
|
+
"Trying to cancel the job %s.": [
|
1415
|
+
""
|
1416
|
+
],
|
1363
1417
|
"Type": [
|
1364
1418
|
"類型"
|
1365
1419
|
],
|
@@ -1414,9 +1468,6 @@
|
|
1414
1468
|
"Use new job wizard": [
|
1415
1469
|
""
|
1416
1470
|
],
|
1417
|
-
"Use old form": [
|
1418
|
-
""
|
1419
|
-
],
|
1420
1471
|
"User Inputs": [
|
1421
1472
|
""
|
1422
1473
|
],
|
@@ -1450,6 +1501,9 @@
|
|
1450
1501
|
"View scheduled jobs": [
|
1451
1502
|
""
|
1452
1503
|
],
|
1504
|
+
"View task": [
|
1505
|
+
""
|
1506
|
+
],
|
1453
1507
|
"Web Console": [
|
1454
1508
|
""
|
1455
1509
|
],
|
@@ -73,12 +73,14 @@ module RemoteExecutionHelper
|
|
73
73
|
buttons << link_to(_('Rerun'), rerun_job_invocation_path(:id => job_invocation.id),
|
74
74
|
:class => 'btn btn-default',
|
75
75
|
:title => _('Rerun the job'))
|
76
|
-
end
|
77
|
-
if authorized_for(controller: :job_invocations, action: :create)
|
78
76
|
buttons << link_to(_('Rerun failed'), rerun_job_invocation_path(:id => job_invocation.id, :failed_only => 1),
|
79
77
|
:class => 'btn btn-default',
|
80
78
|
:disabled => job_invocation.failed_hosts.none?,
|
81
79
|
:title => _('Rerun on failed hosts'))
|
80
|
+
buttons << link_to(_('Rerun succeeded'), rerun_job_invocation_path(:id => job_invocation.id, :succeeded_only => 1),
|
81
|
+
:class => 'btn btn-default',
|
82
|
+
:disabled => job_invocation.succeeded_hosts.none?,
|
83
|
+
:title => _('Rerun on succeeded hosts'))
|
82
84
|
end
|
83
85
|
if authorized_for(:permission => :view_foreman_tasks, :auth_object => task, :authorizer => task_authorizer)
|
84
86
|
buttons << link_to(_('Job Task'), foreman_tasks_task_path(task),
|
@@ -14,6 +14,14 @@ module Actions
|
|
14
14
|
|
15
15
|
private
|
16
16
|
|
17
|
+
def check_task_status
|
18
|
+
response = proxy.status_of_task(proxy_task_id)
|
19
|
+
get_proxy_data(response)
|
20
|
+
suspend unless %w[stopped paused].include? response['state']
|
21
|
+
rescue RestClient::NotFound
|
22
|
+
on_proxy_action_missing
|
23
|
+
end
|
24
|
+
|
17
25
|
def get_proxy_data(response)
|
18
26
|
data = super
|
19
27
|
process_proxy_data(data)
|
@@ -44,13 +44,13 @@ end
|
|
44
44
|
<% if @error %>
|
45
45
|
<div class="line error"><%= @error %></div>
|
46
46
|
<% else %>
|
47
|
-
<%= link_to_function(_('Scroll to bottom'), '$("
|
47
|
+
<%= link_to_function(_('Scroll to bottom'), '$("#rails-app-content").scrollTop($("#rails-app-content").prop("scrollHeight"));', :class => 'pull-right scroll-link-bottom') %>
|
48
48
|
|
49
49
|
<div class="printable">
|
50
50
|
<%= render :partial => 'output_line_set', :collection => normalize_line_sets(@line_sets) %>
|
51
51
|
</div>
|
52
52
|
|
53
|
-
<%= link_to_function(_('Scroll to top'), '$("
|
53
|
+
<%= link_to_function(_('Scroll to top'), '$("#rails-app-content").scrollTop(0);', :class => 'pull-right scroll-link-top') %>
|
54
54
|
<% end %>
|
55
55
|
</div>
|
56
56
|
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<%#
|
2
|
+
kind: job_template
|
3
|
+
name: Download and run a script
|
4
|
+
model: JobTemplate
|
5
|
+
job_category: Commands
|
6
|
+
description_format: "Download the script from %{url} and run it locally"
|
7
|
+
provider_type: script
|
8
|
+
template_inputs:
|
9
|
+
- name: url
|
10
|
+
description: URL of the script to download and execute
|
11
|
+
input_type: user
|
12
|
+
required: true
|
13
|
+
%>
|
14
|
+
|
15
|
+
set -o pipefail && curl -sS '<%= input("url") %>' | bash
|