foreman_remote_execution 13.2.1 → 13.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- 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/lib/actions/remote_execution/proxy_action.rb +8 -0
- data/app/lib/actions/remote_execution/run_host_job.rb +2 -1
- data/app/lib/actions/remote_execution/run_hosts_job.rb +1 -0
- data/app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb +1 -0
- data/app/models/template_invocation.rb +1 -0
- data/app/views/template_invocations/show.html.erb +2 -2
- data/db/migrate/20240522093412_add_smart_proxy_id_to_template_invocation.rb +7 -0
- data/db/migrate/20240522093413_migrate_smart_proxy_ids_to_template_invocations.rb +16 -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
- data/webpack/JobWizard/steps/HostsAndInputs/__tests__/HostsAndInputs.test.js +10 -4
- metadata +4 -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
|
],
|
@@ -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)
|
@@ -49,7 +49,8 @@ module Actions
|
|
49
49
|
provider_type = provider.proxy_feature
|
50
50
|
proxy = determine_proxy!(proxy_selector, provider_type, host)
|
51
51
|
link!(proxy)
|
52
|
-
|
52
|
+
template_invocation.smart_proxy_id = proxy.id
|
53
|
+
template_invocation.save!
|
53
54
|
|
54
55
|
renderer = InputTemplateRenderer.new(template_invocation.template, host, template_invocation)
|
55
56
|
script = renderer.render
|
@@ -18,6 +18,7 @@ class TemplateInvocation < ApplicationRecord
|
|
18
18
|
belongs_to :run_host_job_task, :class_name => 'ForemanTasks::Task'
|
19
19
|
has_many :remote_execution_features, :through => :template
|
20
20
|
has_many :template_invocation_events, :dependent => :destroy
|
21
|
+
belongs_to :smart_proxy, :class_name => '::SmartProxy', :inverse_of => :template_invocations
|
21
22
|
|
22
23
|
validates_associated :input_values
|
23
24
|
validate :provides_required_input_values
|
@@ -28,10 +28,10 @@ end
|
|
28
28
|
</div>
|
29
29
|
</div>
|
30
30
|
<% if @host %>
|
31
|
-
<%
|
31
|
+
<% proxy = @template_invocation.smart_proxy %>
|
32
32
|
<h3>
|
33
33
|
<%= _('Target: ') %><%= link_to(@host, current_host_details_path(@host)) %>
|
34
|
-
<% if
|
34
|
+
<% if proxy %>
|
35
35
|
<%= _('using Smart Proxy') %> <%= link_to(proxy.name, smart_proxy_path(proxy)) %>
|
36
36
|
<% end %>
|
37
37
|
</h3>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
class MigrateSmartProxyIdsToTemplateInvocations < ActiveRecord::Migration[6.0]
|
2
|
+
def up
|
3
|
+
ForemanTasks::Link.joins(:task)
|
4
|
+
.where(resource_type: 'SmartProxy', task: { label: 'Actions::RemoteExecution::RunHostJob' })
|
5
|
+
.where.not(resource_id: nil)
|
6
|
+
.find_in_batches do |batch|
|
7
|
+
batch.group_by(&:resource_id).each do |resource_id, links|
|
8
|
+
template_invocation_ids = ForemanTasks::Link.where(resource_type: 'TemplateInvocation', task_id: links.map(&:task_id)).select(:resource_id)
|
9
|
+
TemplateInvocation.where(id: template_invocation_ids).update_all(smart_proxy_id: resource_id)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def down
|
15
|
+
end
|
16
|
+
end
|