foreman_remote_execution 3.1.0 → 3.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/.eslintrc +5 -30
  3. data/.github/workflows/ci.yml +100 -0
  4. data/.gitignore +1 -0
  5. data/.rubocop_todo.yml +3 -0
  6. data/Gemfile +1 -0
  7. data/app/controllers/api/v2/job_invocations_controller.rb +22 -1
  8. data/app/controllers/api/v2/template_invocations_controller.rb +4 -1
  9. data/app/helpers/job_invocations_chart_helper.rb +2 -0
  10. data/app/helpers/job_invocations_helper.rb +6 -1
  11. data/app/helpers/remote_execution_helper.rb +39 -30
  12. data/app/lib/actions/remote_execution/run_host_job.rb +3 -2
  13. data/app/lib/proxy_api/remote_execution_ssh.rb +6 -0
  14. data/app/models/concerns/foreman_remote_execution/host_extensions.rb +1 -1
  15. data/app/models/concerns/foreman_remote_execution/orchestration/ssh.rb +63 -0
  16. data/app/models/concerns/foreman_remote_execution/smart_proxy_extensions.rb +4 -0
  17. data/app/models/host_status/execution_status.rb +9 -1
  18. data/app/models/remote_execution_provider.rb +5 -0
  19. data/app/services/default_proxy_proxy_selector.rb +18 -0
  20. data/app/views/api/v2/job_invocations/main.json.rabl +8 -2
  21. data/app/views/job_invocations/_card_results.html.erb +1 -0
  22. data/app/views/job_invocations/_card_user_input.html.erb +1 -1
  23. data/app/views/job_invocations/_tab_hosts.html.erb +3 -23
  24. data/app/views/job_invocations/_tab_overview.html.erb +1 -1
  25. data/app/views/job_invocations/_user_input.html.erb +1 -1
  26. data/app/views/job_invocations/show.html.erb +1 -7
  27. data/app/views/job_invocations/show.json.erb +4 -0
  28. data/config/routes.rb +2 -1
  29. data/db/seeds.d/70-job_templates.rb +1 -1
  30. data/foreman_remote_execution.gemspec +5 -6
  31. data/lib/foreman_remote_execution/engine.rb +2 -0
  32. data/lib/foreman_remote_execution/version.rb +1 -1
  33. data/locale/action_names.rb +3 -3
  34. data/locale/de/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  35. data/locale/de/foreman_remote_execution.po +65 -16
  36. data/locale/en/foreman_remote_execution.po +63 -15
  37. data/locale/en_GB/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  38. data/locale/en_GB/foreman_remote_execution.po +64 -15
  39. data/locale/es/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  40. data/locale/es/foreman_remote_execution.po +66 -17
  41. data/locale/foreman_remote_execution.pot +193 -148
  42. data/locale/fr/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  43. data/locale/fr/foreman_remote_execution.po +66 -17
  44. data/locale/ja/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  45. data/locale/ja/foreman_remote_execution.po +66 -17
  46. data/locale/ko/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  47. data/locale/ko/foreman_remote_execution.po +65 -15
  48. data/locale/pt_BR/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  49. data/locale/pt_BR/foreman_remote_execution.po +66 -17
  50. data/locale/ru/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  51. data/locale/ru/foreman_remote_execution.po +65 -18
  52. data/locale/zh_CN/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  53. data/locale/zh_CN/foreman_remote_execution.po +66 -17
  54. data/locale/zh_TW/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  55. data/locale/zh_TW/foreman_remote_execution.po +65 -16
  56. data/package.json +16 -33
  57. data/test/functional/api/v2/job_invocations_controller_test.rb +42 -14
  58. data/test/functional/job_invocations_controller_test.rb +12 -0
  59. data/test/models/orchestration/ssh_test.rb +56 -0
  60. data/test/unit/concerns/host_extensions_test.rb +7 -0
  61. data/test/unit/remote_execution_provider_test.rb +4 -1
  62. data/webpack/__mocks__/foremanReact/common/I18n.js +1 -0
  63. data/webpack/__mocks__/foremanReact/components/common/ActionButtons/ActionButtons.js +3 -0
  64. data/webpack/__mocks__/foremanReact/constants.js +3 -0
  65. data/webpack/index.js +9 -22
  66. data/webpack/react_app/components/TargetingHosts/TargetingHosts.js +52 -0
  67. data/webpack/react_app/components/TargetingHosts/TargetingHostsActions.js +8 -0
  68. data/webpack/react_app/components/TargetingHosts/TargetingHostsConsts.js +1 -0
  69. data/webpack/react_app/components/TargetingHosts/TargetingHostsSelectors.js +12 -0
  70. data/webpack/react_app/components/TargetingHosts/__tests__/HostItem.test.js +6 -0
  71. data/webpack/react_app/components/TargetingHosts/__tests__/HostStatus.test.js +6 -0
  72. data/webpack/react_app/components/TargetingHosts/__tests__/TargetingHosts.test.js +6 -0
  73. data/webpack/react_app/components/TargetingHosts/__tests__/__snapshots__/HostItem.test.js.snap +31 -0
  74. data/webpack/react_app/components/TargetingHosts/__tests__/__snapshots__/HostStatus.test.js.snap +12 -0
  75. data/webpack/react_app/components/TargetingHosts/__tests__/__snapshots__/TargetingHosts.test.js.snap +81 -0
  76. data/webpack/react_app/components/TargetingHosts/__tests__/fixtures.js +43 -0
  77. data/webpack/react_app/components/TargetingHosts/components/HostItem.js +39 -0
  78. data/webpack/react_app/components/TargetingHosts/components/HostStatus.js +54 -0
  79. data/webpack/react_app/components/TargetingHosts/index.js +37 -0
  80. data/webpack/react_app/components/jobInvocations/AggregateStatus/index.js +10 -0
  81. data/webpack/react_app/components/jobInvocations/AggregateStatus/index.test.js +6 -3
  82. data/webpack/react_app/components/jobInvocations/index.js +19 -7
  83. data/webpack/react_app/redux/actions/jobInvocations/index.js +12 -8
  84. data/webpack/react_app/redux/consts.js +1 -2
  85. data/webpack/react_app/redux/reducers/jobInvocations/index.fixtures.js +8 -40
  86. data/webpack/react_app/redux/reducers/jobInvocations/index.test.js +17 -11
  87. data/webpack/test_setup.js +2 -1
  88. metadata +31 -14
  89. data/.hound.yml +0 -19
  90. data/.travis.yml +0 -6
  91. data/app/views/job_invocations/_host_actions_td.html.erb +0 -3
  92. data/app/views/job_invocations/_host_name_td.html.erb +0 -8
  93. data/app/views/job_invocations/_host_status_td.html.erb +0 -1
  94. data/app/views/job_invocations/show.js.erb +0 -23
@@ -8,8 +8,8 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: foreman_remote_execution 1.0.0\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2019-10-16 08:54+0200\n"
12
- "PO-Revision-Date: 2019-10-16 08:54+0200\n"
11
+ "POT-Creation-Date: 2020-05-11 18:40+0530\n"
12
+ "PO-Revision-Date: 2020-05-11 18:40+0530\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -36,35 +36,35 @@ msgstr ""
36
36
  msgid "Show foreign input set details"
37
37
  msgstr ""
38
38
 
39
- #: ../app/controllers/api/v2/foreign_input_sets_controller.rb:25
39
+ #: ../app/controllers/api/v2/foreign_input_sets_controller.rb:26
40
40
  msgid "Target template ID"
41
41
  msgstr ""
42
42
 
43
- #: ../app/controllers/api/v2/foreign_input_sets_controller.rb:26
43
+ #: ../app/controllers/api/v2/foreign_input_sets_controller.rb:27
44
44
  msgid "Include all inputs from the foreign template"
45
45
  msgstr ""
46
46
 
47
- #: ../app/controllers/api/v2/foreign_input_sets_controller.rb:27
48
47
  #: ../app/controllers/api/v2/foreign_input_sets_controller.rb:28
48
+ #: ../app/controllers/api/v2/foreign_input_sets_controller.rb:29
49
49
  #: ../app/views/template_inputs/_foreign_input_set_form.html.erb:8
50
50
  msgid ""
51
51
  "A comma separated list of input names to be included from the foreign template"
52
52
  "."
53
53
  msgstr ""
54
54
 
55
- #: ../app/controllers/api/v2/foreign_input_sets_controller.rb:29
55
+ #: ../app/controllers/api/v2/foreign_input_sets_controller.rb:30
56
56
  msgid "Input set description"
57
57
  msgstr ""
58
58
 
59
- #: ../app/controllers/api/v2/foreign_input_sets_controller.rb:33
59
+ #: ../app/controllers/api/v2/foreign_input_sets_controller.rb:34
60
60
  msgid "Create a foreign input set"
61
61
  msgstr ""
62
62
 
63
- #: ../app/controllers/api/v2/foreign_input_sets_controller.rb:41
63
+ #: ../app/controllers/api/v2/foreign_input_sets_controller.rb:42
64
64
  msgid "Delete a foreign input set"
65
65
  msgstr ""
66
66
 
67
- #: ../app/controllers/api/v2/foreign_input_sets_controller.rb:48
67
+ #: ../app/controllers/api/v2/foreign_input_sets_controller.rb:49
68
68
  msgid "Update a foreign input set"
69
69
  msgstr ""
70
70
 
@@ -141,7 +141,6 @@ msgid "Distribute tasks over N seconds"
141
141
  msgstr ""
142
142
 
143
143
  #: ../app/controllers/api/v2/job_invocations_controller.rb:49
144
- #: ../app/views/job_invocations/_form.html.erb:102
145
144
  msgid "Run at most N tasks at a time"
146
145
  msgstr ""
147
146
 
@@ -228,69 +227,69 @@ msgstr ""
228
227
  msgid "Show job template details"
229
228
  msgstr ""
230
229
 
231
- #: ../app/controllers/api/v2/job_templates_controller.rb:49
232
- #: ../app/controllers/api/v2/job_templates_controller.rb:99
230
+ #: ../app/controllers/api/v2/job_templates_controller.rb:50
231
+ #: ../app/controllers/api/v2/job_templates_controller.rb:100
233
232
  msgid "Template name"
234
233
  msgstr ""
235
234
 
236
- #: ../app/controllers/api/v2/job_templates_controller.rb:51
235
+ #: ../app/controllers/api/v2/job_templates_controller.rb:52
237
236
  #: ../app/views/job_invocations/_form.html.erb:11
238
237
  #: ../app/views/job_templates/_custom_tabs.html.erb:3
239
238
  #: ../app/views/job_templates/_custom_tabs.html.erb:6
240
239
  msgid "Job category"
241
240
  msgstr ""
242
241
 
243
- #: ../app/controllers/api/v2/job_templates_controller.rb:52
242
+ #: ../app/controllers/api/v2/job_templates_controller.rb:53
244
243
  msgid ""
245
244
  "This template is used to generate the description. Input values can be used us"
246
245
  "ing the syntax %{package}. You may also include the job category and template "
247
246
  "name using %{job_category} and %{template_name}."
248
247
  msgstr ""
249
248
 
250
- #: ../app/controllers/api/v2/job_templates_controller.rb:57
249
+ #: ../app/controllers/api/v2/job_templates_controller.rb:58
251
250
  msgid "Provider type"
252
251
  msgstr ""
253
252
 
254
- #: ../app/controllers/api/v2/job_templates_controller.rb:60
253
+ #: ../app/controllers/api/v2/job_templates_controller.rb:61
255
254
  msgid "Whether or not the template is locked for editing"
256
255
  msgstr ""
257
256
 
258
- #: ../app/controllers/api/v2/job_templates_controller.rb:61
257
+ #: ../app/controllers/api/v2/job_templates_controller.rb:62
259
258
  msgid "Effective user options"
260
259
  msgstr ""
261
260
 
262
- #: ../app/controllers/api/v2/job_templates_controller.rb:62
261
+ #: ../app/controllers/api/v2/job_templates_controller.rb:63
263
262
  msgid "What user should be used to run the script (using sudo-like mechanisms)"
264
263
  msgstr ""
265
264
 
266
- #: ../app/controllers/api/v2/job_templates_controller.rb:63
265
+ #: ../app/controllers/api/v2/job_templates_controller.rb:64
267
266
  msgid ""
268
267
  "Whether it should be allowed to override the effective user from the invocatio"
269
268
  "n form."
270
269
  msgstr ""
271
270
 
272
- #: ../app/controllers/api/v2/job_templates_controller.rb:64
271
+ #: ../app/controllers/api/v2/job_templates_controller.rb:65
273
272
  msgid "Whether the current user login should be used as the effective user"
274
273
  msgstr ""
275
274
 
276
- #: ../app/controllers/api/v2/job_templates_controller.rb:70
275
+ #: ../app/controllers/api/v2/job_templates_controller.rb:71
277
276
  msgid "Create a job template"
278
277
  msgstr ""
279
278
 
280
- #: ../app/controllers/api/v2/job_templates_controller.rb:77
281
- #: ../app/controllers/api/v2/remote_execution_features_controller.rb:24
279
+ #: ../app/controllers/api/v2/job_templates_controller.rb:78
280
+ #: ../app/controllers/api/v2/remote_execution_features_controller.rb:25
282
281
  msgid "Update a job template"
283
282
  msgstr ""
284
283
 
285
- #: ../app/controllers/api/v2/job_templates_controller.rb:85
284
+ #: ../app/controllers/api/v2/job_templates_controller.rb:86
286
285
  msgid "Template version"
287
286
  msgstr ""
288
287
 
289
- #: ../app/controllers/api/v2/job_templates_controller.rb:91
288
+ #: ../app/controllers/api/v2/job_templates_controller.rb:92
290
289
  msgid "Delete a job template"
291
290
  msgstr ""
292
291
 
293
- #: ../app/controllers/api/v2/job_templates_controller.rb:103
292
+ #: ../app/controllers/api/v2/job_templates_controller.rb:104
294
293
  msgid "Clone a provision template"
295
294
  msgstr ""
296
295
 
@@ -302,7 +301,7 @@ msgstr ""
302
301
  msgid "Show remote execution feature"
303
302
  msgstr ""
304
303
 
305
- #: ../app/controllers/api/v2/remote_execution_features_controller.rb:20
304
+ #: ../app/controllers/api/v2/remote_execution_features_controller.rb:21
306
305
  msgid "Job template ID to be used for the feature"
307
306
  msgstr ""
308
307
 
@@ -310,19 +309,19 @@ msgstr ""
310
309
  msgid "List template invocations belonging to job invocation"
311
310
  msgstr ""
312
311
 
313
- #: ../app/controllers/job_invocations_controller.rb:104
312
+ #: ../app/controllers/job_invocations_controller.rb:108
314
313
  msgid "Trying to abort the job"
315
314
  msgstr ""
316
315
 
317
- #: ../app/controllers/job_invocations_controller.rb:106
316
+ #: ../app/controllers/job_invocations_controller.rb:110
318
317
  msgid "Trying to cancel the job"
319
318
  msgstr ""
320
319
 
321
- #: ../app/controllers/job_invocations_controller.rb:110
320
+ #: ../app/controllers/job_invocations_controller.rb:114
322
321
  msgid "The job cannot be aborted at the moment."
323
322
  msgstr ""
324
323
 
325
- #: ../app/controllers/job_invocations_controller.rb:112
324
+ #: ../app/controllers/job_invocations_controller.rb:116
326
325
  msgid "The job cannot be cancelled at the moment."
327
326
  msgstr ""
328
327
 
@@ -341,18 +340,32 @@ msgid "Unable to save template. Correct highlighted errors"
341
340
  msgstr ""
342
341
 
343
342
  #:
344
- #: ../app/helpers/concerns/foreman_remote_execution/hosts_helper_extensions.rb:4
345
- #: ../app/helpers/concerns/foreman_remote_execution/hosts_helper_extensions.rb:20
343
+ #: ../app/helpers/concerns/foreman_remote_execution/hosts_helper_extensions.rb:5
344
+ #: ../db/seeds.d/50-notification_blueprints.rb:3
345
+ #: ../lib/foreman_remote_execution/engine.rb:124
346
+ msgid "Jobs"
347
+ msgstr ""
348
+
349
+ #:
350
+ #: ../app/helpers/concerns/foreman_remote_execution/hosts_helper_extensions.rb:5
351
+ #: ../app/views/job_invocations/index.html.erb:1
352
+ #: ../app/views/template_invocations/show.html.erb:1
353
+ msgid "Job invocations"
354
+ msgstr ""
355
+
356
+ #:
357
+ #: ../app/helpers/concerns/foreman_remote_execution/hosts_helper_extensions.rb:10
358
+ #: ../app/helpers/concerns/foreman_remote_execution/hosts_helper_extensions.rb:30
346
359
  msgid "Schedule Remote Job"
347
360
  msgstr ""
348
361
 
349
362
  #:
350
- #: ../app/helpers/concerns/foreman_remote_execution/hosts_helper_extensions.rb:9
363
+ #: ../app/helpers/concerns/foreman_remote_execution/hosts_helper_extensions.rb:25
351
364
  msgid "%s"
352
365
  msgstr ""
353
366
 
354
367
  #:
355
- #: ../app/helpers/concerns/foreman_remote_execution/hosts_helper_extensions.rb:26
368
+ #: ../app/helpers/concerns/foreman_remote_execution/hosts_helper_extensions.rb:37
356
369
  msgid "Web Console"
357
370
  msgstr ""
358
371
 
@@ -361,128 +374,138 @@ msgstr ""
361
374
  msgid "Run"
362
375
  msgstr ""
363
376
 
364
- #: ../app/helpers/job_invocations_chart_helper.rb:17
377
+ #: ../app/helpers/job_invocations_chart_helper.rb:18
365
378
  msgid "Success"
366
379
  msgstr ""
367
380
 
368
- #: ../app/helpers/job_invocations_chart_helper.rb:18
381
+ #: ../app/helpers/job_invocations_chart_helper.rb:19
369
382
  #: ../app/views/job_invocations/index.html.erb:12
370
383
  msgid "Failed"
371
384
  msgstr ""
372
385
 
373
- #: ../app/helpers/job_invocations_chart_helper.rb:19
386
+ #: ../app/helpers/job_invocations_chart_helper.rb:20
374
387
  #: ../app/views/job_invocations/index.html.erb:13
375
388
  msgid "Pending"
376
389
  msgstr ""
377
390
 
378
- #: ../app/helpers/job_invocations_chart_helper.rb:20
391
+ #: ../app/helpers/job_invocations_chart_helper.rb:21
379
392
  msgid "Cancelled"
380
393
  msgstr ""
381
394
 
382
- #: ../app/helpers/job_invocations_chart_helper.rb:30
395
+ #: ../app/helpers/job_invocations_chart_helper.rb:31
383
396
  msgid "queued to start executing in %{time}"
384
397
  msgstr ""
385
398
 
386
- #: ../app/helpers/job_invocations_chart_helper.rb:32
399
+ #: ../app/helpers/job_invocations_chart_helper.rb:33
387
400
  msgid "queued"
388
401
  msgstr ""
389
402
 
390
- #: ../app/helpers/job_invocations_chart_helper.rb:36
403
+ #: ../app/helpers/job_invocations_chart_helper.rb:37
391
404
  msgid "running %{percent}%%"
392
405
  msgstr ""
393
406
 
394
- #: ../app/helpers/job_invocations_chart_helper.rb:38
407
+ #: ../app/helpers/job_invocations_chart_helper.rb:39
395
408
  msgid "succeeded"
396
409
  msgstr ""
397
410
 
398
- #: ../app/helpers/job_invocations_chart_helper.rb:40
399
- #: ../app/helpers/remote_execution_helper.rb:27
411
+ #: ../app/helpers/job_invocations_chart_helper.rb:41
412
+ #: ../app/helpers/remote_execution_helper.rb:19
413
+ #: ../app/helpers/remote_execution_helper.rb:32
414
+ msgid "cancelled"
415
+ msgstr ""
416
+
417
+ #: ../app/helpers/job_invocations_chart_helper.rb:43
418
+ #: ../app/helpers/remote_execution_helper.rb:30
400
419
  msgid "failed"
401
420
  msgstr ""
402
421
 
403
- #: ../app/helpers/job_invocations_chart_helper.rb:42
422
+ #: ../app/helpers/job_invocations_chart_helper.rb:45
404
423
  msgid "unknown status"
405
424
  msgstr ""
406
425
 
407
426
  #: ../app/helpers/job_invocations_helper.rb:18
408
- #: ../app/helpers/remote_execution_helper.rb:60
427
+ #: ../app/helpers/remote_execution_helper.rb:63
409
428
  #: ../app/views/job_invocations/welcome.html.erb:12
410
429
  msgid "Run Job"
411
430
  msgstr ""
412
431
 
413
- #: ../app/helpers/remote_execution_helper.rb:21
414
- msgid "running"
432
+ #: ../app/helpers/job_invocations_helper.rb:52
433
+ msgid "Any Organization"
415
434
  msgstr ""
416
435
 
417
- #: ../app/helpers/remote_execution_helper.rb:23
418
- msgid "planned"
436
+ #: ../app/helpers/job_invocations_helper.rb:56
437
+ msgid "Any Location"
419
438
  msgstr ""
420
439
 
421
- #: ../app/helpers/remote_execution_helper.rb:29
422
- msgid "cancelled"
440
+ #: ../app/helpers/remote_execution_helper.rb:24
441
+ msgid "running"
423
442
  msgstr ""
424
443
 
425
- #: ../app/helpers/remote_execution_helper.rb:31
444
+ #: ../app/helpers/remote_execution_helper.rb:26
445
+ msgid "planned"
446
+ msgstr ""
447
+
448
+ #: ../app/helpers/remote_execution_helper.rb:34
426
449
  msgid "success"
427
450
  msgstr ""
428
451
 
429
- #: ../app/helpers/remote_execution_helper.rb:41
452
+ #: ../app/helpers/remote_execution_helper.rb:44
430
453
  msgid "Host detail"
431
454
  msgstr ""
432
455
 
433
- #: ../app/helpers/remote_execution_helper.rb:42
456
+ #: ../app/helpers/remote_execution_helper.rb:45
434
457
  msgid "Rerun on %s"
435
458
  msgstr ""
436
459
 
437
- #: ../app/helpers/remote_execution_helper.rb:45
460
+ #: ../app/helpers/remote_execution_helper.rb:48
438
461
  msgid "Host task"
439
462
  msgstr ""
440
463
 
441
- #: ../app/helpers/remote_execution_helper.rb:54
464
+ #: ../app/helpers/remote_execution_helper.rb:57
442
465
  #: ../app/helpers/remote_execution_helper.rb:193
443
466
  #: ../app/models/job_invocation.rb:175
444
467
  msgid "N/A"
445
468
  msgstr ""
446
469
 
447
- #: ../app/helpers/remote_execution_helper.rb:70
470
+ #: ../app/helpers/remote_execution_helper.rb:72
448
471
  msgid "Rerun"
449
472
  msgstr ""
450
473
 
451
- #: ../app/helpers/remote_execution_helper.rb:72
474
+ #: ../app/helpers/remote_execution_helper.rb:74
452
475
  msgid "Rerun the job"
453
476
  msgstr ""
454
477
 
455
- #: ../app/helpers/remote_execution_helper.rb:75
478
+ #: ../app/helpers/remote_execution_helper.rb:77
456
479
  msgid "Rerun failed"
457
480
  msgstr ""
458
481
 
459
- #: ../app/helpers/remote_execution_helper.rb:78
482
+ #: ../app/helpers/remote_execution_helper.rb:80
460
483
  msgid "Rerun on failed hosts"
461
484
  msgstr ""
462
485
 
463
- #: ../app/helpers/remote_execution_helper.rb:81
486
+ #: ../app/helpers/remote_execution_helper.rb:83
464
487
  msgid "Job Task"
465
488
  msgstr ""
466
489
 
467
- #: ../app/helpers/remote_execution_helper.rb:83
490
+ #: ../app/helpers/remote_execution_helper.rb:85
468
491
  msgid "See the last task details"
469
492
  msgstr ""
470
493
 
471
- #: ../app/helpers/remote_execution_helper.rb:86
494
+ #: ../app/helpers/remote_execution_helper.rb:88
472
495
  #: ../app/helpers/remote_execution_helper.rb:110
473
496
  msgid "Cancel Job"
474
497
  msgstr ""
475
498
 
476
- #: ../app/helpers/remote_execution_helper.rb:88
499
+ #: ../app/helpers/remote_execution_helper.rb:90
477
500
  msgid "Try to cancel the job"
478
501
  msgstr ""
479
502
 
480
- #: ../app/helpers/remote_execution_helper.rb:91
503
+ #: ../app/helpers/remote_execution_helper.rb:93
481
504
  #: ../app/helpers/remote_execution_helper.rb:115
482
505
  msgid "Abort Job"
483
506
  msgstr ""
484
507
 
485
- #: ../app/helpers/remote_execution_helper.rb:93
508
+ #: ../app/helpers/remote_execution_helper.rb:95
486
509
  msgid "Try to abort the job without waiting for the results from the remote hosts"
487
510
  msgstr ""
488
511
 
@@ -537,19 +560,19 @@ msgstr ""
537
560
  msgid "Failed rendering template: %s"
538
561
  msgstr ""
539
562
 
540
- #: ../app/lib/actions/remote_execution/run_host_job.rb:67
563
+ #: ../app/lib/actions/remote_execution/run_host_job.rb:68
541
564
  msgid "Task cancelled"
542
565
  msgstr ""
543
566
 
544
- #: ../app/lib/actions/remote_execution/run_host_job.rb:68
567
+ #: ../app/lib/actions/remote_execution/run_host_job.rb:69
545
568
  msgid "Job execution failed"
546
569
  msgstr ""
547
570
 
548
- #: ../app/lib/actions/remote_execution/run_host_job.rb:77
571
+ #: ../app/lib/actions/remote_execution/run_host_job.rb:78
549
572
  msgid "%{description} on %{host}"
550
573
  msgstr ""
551
574
 
552
- #: ../app/lib/actions/remote_execution/run_host_job.rb:82 action_names.rb:2
575
+ #: ../app/lib/actions/remote_execution/run_host_job.rb:83 action_names.rb:5
553
576
  msgid "Remote action:"
554
577
  msgstr ""
555
578
 
@@ -569,25 +592,25 @@ msgstr ""
569
592
  msgid "Error loading data from proxy"
570
593
  msgstr ""
571
594
 
572
- #: ../app/lib/actions/remote_execution/run_host_job.rb:148
595
+ #: ../app/lib/actions/remote_execution/run_host_job.rb:147
573
596
  msgid "User can not execute job on host %s"
574
597
  msgstr ""
575
598
 
576
- #: ../app/lib/actions/remote_execution/run_host_job.rb:149
599
+ #: ../app/lib/actions/remote_execution/run_host_job.rb:148
577
600
  msgid "User can not execute this job template"
578
601
  msgstr ""
579
602
 
580
- #: ../app/lib/actions/remote_execution/run_host_job.rb:154
603
+ #: ../app/lib/actions/remote_execution/run_host_job.rb:153
581
604
  msgid "User can not execute this job template on %s"
582
605
  msgstr ""
583
606
 
584
- #: ../app/lib/actions/remote_execution/run_host_job.rb:164
607
+ #: ../app/lib/actions/remote_execution/run_host_job.rb:163
585
608
  msgid "The only applicable proxy %{proxy_names} is down"
586
609
  msgid_plural "All %{count} applicable proxies are down. Tried %{proxy_names}"
587
610
  msgstr[0] ""
588
611
  msgstr[1] ""
589
612
 
590
- #: ../app/lib/actions/remote_execution/run_host_job.rb:171
613
+ #: ../app/lib/actions/remote_execution/run_host_job.rb:170
591
614
  msgid ""
592
615
  "Could not use any proxy. Consider configuring %{global_proxy}, %{fallback_prox"
593
616
  "y} in settings"
@@ -597,7 +620,7 @@ msgstr ""
597
620
  msgid "included template '%s' not found"
598
621
  msgstr ""
599
622
 
600
- #: ../app/lib/foreman_remote_execution/renderer/scope/input.rb:68
623
+ #: ../app/lib/foreman_remote_execution/renderer/scope/input.rb:69
601
624
  msgid ""
602
625
  "input macro with name '%s' used, but no input with such name defined for this "
603
626
  "template"
@@ -607,37 +630,49 @@ msgstr ""
607
630
  msgid "Unable to fetch public key"
608
631
  msgstr ""
609
632
 
610
- #: ../app/models/concerns/foreman_remote_execution/nic_extensions.rb:20
633
+ #: ../app/lib/proxy_api/remote_execution_ssh.rb:17
634
+ msgid "Unable to remove host from known hosts"
635
+ msgstr ""
636
+
637
+ #: ../app/models/concerns/foreman_remote_execution/nic_extensions.rb:21
611
638
  msgid "host already has an execution interface"
612
639
  msgstr ""
613
640
 
641
+ #: ../app/models/concerns/foreman_remote_execution/orchestration/ssh.rb:29
642
+ msgid "Remove SSH known hosts for %s"
643
+ msgstr ""
644
+
614
645
  #: ../app/models/concerns/foreman_remote_execution/template_overrides.rb:7
615
646
  msgid "This template is locked. Please clone it to a new template to customize."
616
647
  msgstr ""
617
648
 
618
- #: ../app/models/foreign_input_set.rb:20
649
+ #: ../app/models/foreign_input_set.rb:21
619
650
  msgid ""
620
651
  "Circular dependency detected in foreign input set '%{template}' -> '%{target_t"
621
652
  "emplate}'. Templates stack: %{templates_stack}"
622
653
  msgstr ""
623
654
 
624
- #: ../app/models/host_status/execution_status.rb:34
655
+ #: ../app/models/host_status/execution_status.rb:36
625
656
  msgid "Execution"
626
657
  msgstr ""
627
658
 
628
- #: ../app/models/host_status/execution_status.rb:40
659
+ #: ../app/models/host_status/execution_status.rb:42
629
660
  msgid "Last execution succeeded"
630
661
  msgstr ""
631
662
 
632
- #: ../app/models/host_status/execution_status.rb:40
663
+ #: ../app/models/host_status/execution_status.rb:42
633
664
  msgid "No execution finished yet"
634
665
  msgstr ""
635
666
 
636
- #: ../app/models/host_status/execution_status.rb:42
667
+ #: ../app/models/host_status/execution_status.rb:44
668
+ msgid "Last execution cancelled"
669
+ msgstr ""
670
+
671
+ #: ../app/models/host_status/execution_status.rb:46
637
672
  msgid "Last execution failed"
638
673
  msgstr ""
639
674
 
640
- #: ../app/models/host_status/execution_status.rb:44
675
+ #: ../app/models/host_status/execution_status.rb:48
641
676
  msgid "Unknown execution status"
642
677
  msgstr ""
643
678
 
@@ -653,27 +688,27 @@ msgstr ""
653
688
  msgid "template"
654
689
  msgstr ""
655
690
 
656
- #: ../app/models/job_invocation_composer.rb:110
691
+ #: ../app/models/job_invocation_composer.rb:113
657
692
  msgid "Cannot specify both bookmark_id and search_query"
658
693
  msgstr ""
659
694
 
660
- #: ../app/models/job_invocation_composer.rb:115
695
+ #: ../app/models/job_invocation_composer.rb:119
661
696
  msgid "Cannot specify both recurrence and scheduling"
662
697
  msgstr ""
663
698
 
664
- #: ../app/models/job_invocation_composer.rb:149
699
+ #: ../app/models/job_invocation_composer.rb:153
665
700
  msgid "Unknown input %{input_name} for template %{template_name}"
666
701
  msgstr ""
667
702
 
668
- #: ../app/models/job_invocation_composer.rb:277
703
+ #: ../app/models/job_invocation_composer.rb:283
669
704
  msgid "Feature input %{input_name} not defined in template %{template_name}"
670
705
  msgstr ""
671
706
 
672
- #: ../app/models/job_invocation_composer.rb:286
707
+ #: ../app/models/job_invocation_composer.rb:292
673
708
  msgid "No template mapped to feature %{feature_name}"
674
709
  msgstr ""
675
710
 
676
- #: ../app/models/job_invocation_composer.rb:292
711
+ #: ../app/models/job_invocation_composer.rb:298
677
712
  msgid ""
678
713
  "The template %{template_name} mapped to feature %{feature_name} is not accessi"
679
714
  "ble by the user"
@@ -699,82 +734,85 @@ msgstr ""
699
734
  msgid "Could not find any suitable interface for execution"
700
735
  msgstr ""
701
736
 
702
- #: ../app/models/setting/remote_execution.rb:9
737
+ #: ../app/models/setting/remote_execution.rb:8
703
738
  msgid ""
704
739
  "Search the host for any proxy with Remote Execution, useful when the host has "
705
740
  "no subnet or the subnet does not have an execution proxy"
706
741
  msgstr ""
707
742
 
708
- #: ../app/models/setting/remote_execution.rb:11
743
+ #: ../app/models/setting/remote_execution.rb:10
709
744
  msgid "Fallback to Any Proxy"
710
745
  msgstr ""
711
746
 
712
- #: ../app/models/setting/remote_execution.rb:13
747
+ #: ../app/models/setting/remote_execution.rb:12
713
748
  msgid ""
714
749
  "Search for remote execution proxy outside of the proxies assigned to the host."
715
750
  " The search will be limited to the host's organization and location."
716
751
  msgstr ""
717
752
 
718
- #: ../app/models/setting/remote_execution.rb:16
753
+ #: ../app/models/setting/remote_execution.rb:15
719
754
  msgid "Enable Global Proxy"
720
755
  msgstr ""
721
756
 
722
- #: ../app/models/setting/remote_execution.rb:18
757
+ #: ../app/models/setting/remote_execution.rb:17
723
758
  msgid ""
724
759
  "Default user to use for SSH. You may override per host by setting a parameter"
725
760
  " called remote_execution_ssh_user."
726
761
  msgstr ""
727
762
 
728
- #: ../app/models/setting/remote_execution.rb:20
763
+ #: ../app/models/setting/remote_execution.rb:19
729
764
  msgid "SSH User"
730
765
  msgstr ""
731
766
 
732
- #: ../app/models/setting/remote_execution.rb:22
767
+ #: ../app/models/setting/remote_execution.rb:21
733
768
  msgid ""
734
769
  "Default user to use for executing the script. If the user differs from the SSH"
735
770
  " user, su or sudo is used to switch the user."
736
771
  msgstr ""
737
772
 
738
- #: ../app/models/setting/remote_execution.rb:24
773
+ #: ../app/models/setting/remote_execution.rb:23
739
774
  msgid "Effective User"
740
775
  msgstr ""
741
776
 
742
- #: ../app/models/setting/remote_execution.rb:26
777
+ #: ../app/models/setting/remote_execution.rb:25
743
778
  msgid "What command should be used to switch to the effective user. One of %s"
744
779
  msgstr ""
745
780
 
746
- #: ../app/models/setting/remote_execution.rb:28
781
+ #: ../app/models/setting/remote_execution.rb:27
747
782
  msgid "Effective User Method"
748
783
  msgstr ""
749
784
 
750
- #: ../app/models/setting/remote_execution.rb:31
785
+ #: ../app/models/setting/remote_execution.rb:30
751
786
  #: ../app/views/job_invocations/_form.html.erb:98
752
787
  msgid "Sudo password"
753
788
  msgstr ""
754
789
 
755
- #: ../app/models/setting/remote_execution.rb:33
790
+ #: ../app/models/setting/remote_execution.rb:32
756
791
  msgid "Whether we should sync templates from disk when running db:seed."
757
792
  msgstr ""
758
793
 
759
- #: ../app/models/setting/remote_execution.rb:35
794
+ #: ../app/models/setting/remote_execution.rb:34
760
795
  msgid "Sync Job Templates"
761
796
  msgstr ""
762
797
 
763
- #: ../app/models/setting/remote_execution.rb:37
798
+ #: ../app/models/setting/remote_execution.rb:36
764
799
  msgid ""
765
800
  "Port to use for SSH communication. Default port 22. You may override per host "
766
801
  "by setting a parameter called remote_execution_ssh_port."
767
802
  msgstr ""
768
803
 
769
- #: ../app/models/setting/remote_execution.rb:39
804
+ #: ../app/models/setting/remote_execution.rb:38
770
805
  msgid "SSH Port"
771
806
  msgstr ""
772
807
 
773
- #: ../app/models/setting/remote_execution.rb:41
808
+ #: ../app/models/setting/remote_execution.rb:40
774
809
  msgid ""
775
810
  "Should the ip addresses on host interfaces be preferred over the fqdn? It is u"
776
- "seful, when DNS not resolving the fqdns properly. You may override this per ho"
777
- "st by setting a parameter called remote_execution_connect_by_ip."
811
+ "seful when DNS not resolving the fqdns properly. You may override this per hos"
812
+ "t by setting a parameter called remote_execution_connect_by_ip. This setting o"
813
+ "nly applies to IPv4. When the host has only an IPv6 address on the interface u"
814
+ "sed for remote execution, hostname will be used even if this setting is set to"
815
+ " true."
778
816
  msgstr ""
779
817
 
780
818
  #: ../app/models/setting/remote_execution.rb:44
@@ -832,6 +870,14 @@ msgstr ""
832
870
  msgid "Cockpit URL"
833
871
  msgstr ""
834
872
 
873
+ #: ../app/models/setting/remote_execution.rb:71
874
+ msgid "Choose a job template that is pre-selected in job invocation form"
875
+ msgstr ""
876
+
877
+ #: ../app/models/setting/remote_execution.rb:73
878
+ msgid "Form Job Template"
879
+ msgstr ""
880
+
835
881
  #: ../app/models/ssh_execution_provider.rb:12
836
882
  msgid "SSH"
837
883
  msgstr ""
@@ -860,7 +906,7 @@ msgstr ""
860
906
  msgid "Cannot resolve hosts without a bookmark or search query"
861
907
  msgstr ""
862
908
 
863
- #: ../app/models/targeting.rb:80 ../app/models/targeting.rb:81
909
+ #: ../app/models/targeting.rb:81 ../app/models/targeting.rb:82
864
910
  msgid "Must select a bookmark or enter a search query"
865
911
  msgstr ""
866
912
 
@@ -868,7 +914,7 @@ msgstr ""
868
914
  msgid "Input"
869
915
  msgstr ""
870
916
 
871
- #: ../app/models/template_invocation.rb:94
917
+ #: ../app/models/template_invocation.rb:93
872
918
  msgid "Not all required inputs have values. Missing inputs: %s"
873
919
  msgstr ""
874
920
 
@@ -929,7 +975,15 @@ msgstr ""
929
975
  msgid "Execution order"
930
976
  msgstr ""
931
977
 
932
- #: ../app/views/job_invocations/_card_target_hosts.html.erb:26
978
+ #: ../app/views/job_invocations/_card_target_hosts.html.erb:24
979
+ msgid "Organization"
980
+ msgstr ""
981
+
982
+ #: ../app/views/job_invocations/_card_target_hosts.html.erb:30
983
+ msgid "Location"
984
+ msgstr ""
985
+
986
+ #: ../app/views/job_invocations/_card_target_hosts.html.erb:38
933
987
  msgid "Evaluated at:"
934
988
  msgstr ""
935
989
 
@@ -1025,12 +1079,20 @@ msgstr ""
1025
1079
  msgid "Concurrency level"
1026
1080
  msgstr ""
1027
1081
 
1082
+ #: ../app/views/job_invocations/_form.html.erb:102
1083
+ msgid ""
1084
+ "Run at most N tasks at a time. If this is set and proxy batch triggering is en"
1085
+ "abled, then tasks are triggered on the smart proxy in batches of size 1."
1086
+ msgstr ""
1087
+
1028
1088
  #: ../app/views/job_invocations/_form.html.erb:103
1029
1089
  msgid "Time span"
1030
1090
  msgstr ""
1031
1091
 
1032
1092
  #: ../app/views/job_invocations/_form.html.erb:103
1033
- msgid "Distribute execution over N seconds"
1093
+ msgid ""
1094
+ "Distribute execution over N seconds. If this is set and proxy batch triggering"
1095
+ " is enabled, then tasks are triggered on the smart proxy in batches of size 1."
1034
1096
  msgstr ""
1035
1097
 
1036
1098
  #: ../app/views/job_invocations/_form.html.erb:107
@@ -1063,21 +1125,19 @@ msgid ""
1063
1125
  " be rerun during execution."
1064
1126
  msgstr ""
1065
1127
 
1066
- #: ../app/views/job_invocations/_preview_hosts_list.html.erb:14
1067
- msgid "...and %{count} more"
1068
- msgid_plural "...and %{count} more"
1069
- msgstr[0] ""
1070
- msgstr[1] ""
1071
-
1072
- #: ../app/views/job_invocations/_preview_hosts_list.html.erb:18
1073
- msgid "No hosts found."
1074
- msgstr ""
1075
-
1076
1128
  #: ../app/views/job_invocations/_preview_hosts_modal.html.erb:8
1077
1129
  #: ../app/views/job_templates/_import_job_template_modal.html.erb:8
1078
1130
  msgid "Close"
1079
1131
  msgstr ""
1080
1132
 
1133
+ #: ../app/views/job_invocations/_rerun_taxonomies.html.erb:6
1134
+ msgid "Current organization %{org_c} is different from job's organization %{org_j}."
1135
+ msgstr ""
1136
+
1137
+ #: ../app/views/job_invocations/_rerun_taxonomies.html.erb:17
1138
+ msgid "Current location %{loc_c} is different from job's location %{loc_j}."
1139
+ msgstr ""
1140
+
1081
1141
  #: ../app/views/job_invocations/_tab_hosts.html.erb:6
1082
1142
  msgid "Filter"
1083
1143
  msgstr ""
@@ -1119,12 +1179,6 @@ msgstr ""
1119
1179
  msgid "Total hosts"
1120
1180
  msgstr ""
1121
1181
 
1122
- #: ../app/views/job_invocations/_tab_overview.html.erb:26
1123
- msgid ""
1124
- "The dynamic query '#{job_invocation.targeting.search_query}' was not resolved "
1125
- "yet. The list of hosts to which it would resolve now can be seen"
1126
- msgstr ""
1127
-
1128
1182
  #: ../app/views/job_invocations/_tab_preview_templates.html.erb:6
1129
1183
  msgid "Providers and templates"
1130
1184
  msgstr ""
@@ -1137,11 +1191,6 @@ msgstr ""
1137
1191
  msgid "Value"
1138
1192
  msgstr ""
1139
1193
 
1140
- #: ../app/views/job_invocations/index.html.erb:1
1141
- #: ../app/views/template_invocations/show.html.erb:1
1142
- msgid "Job invocations"
1143
- msgstr ""
1144
-
1145
1194
  #: ../app/views/job_invocations/index.html.erb:9
1146
1195
  msgid "Search Query"
1147
1196
  msgstr ""
@@ -1288,7 +1337,7 @@ msgid ""
1288
1337
  msgstr ""
1289
1338
 
1290
1339
  #: ../app/views/remote_execution_features/index.html.erb:1
1291
- #: ../lib/foreman_remote_execution/engine.rb:105
1340
+ #: ../lib/foreman_remote_execution/engine.rb:118
1292
1341
  msgid "Remote Execution Features"
1293
1342
  msgstr ""
1294
1343
 
@@ -1354,6 +1403,7 @@ msgstr ""
1354
1403
  msgid "Scroll to top"
1355
1404
  msgstr ""
1356
1405
 
1406
+ #: ../app/views/templates/ssh/check_update.erb:5
1357
1407
  #: ../app/views/templates/ssh/module_action.erb:5
1358
1408
  #: ../app/views/templates/ssh/package_action.erb:5
1359
1409
  msgid "Unsupported or no operating system found for this host."
@@ -1371,11 +1421,6 @@ msgstr ""
1371
1421
  msgid "Fallback Without Proxy"
1372
1422
  msgstr ""
1373
1423
 
1374
- #: ../db/seeds.d/50-notification_blueprints.rb:3
1375
- #: ../lib/foreman_remote_execution/engine.rb:111
1376
- msgid "Jobs"
1377
- msgstr ""
1378
-
1379
1424
  #: ../db/seeds.d/50-notification_blueprints.rb:5
1380
1425
  msgid "A job '%{subject}' has finished successfully"
1381
1426
  msgstr ""
@@ -1384,28 +1429,28 @@ msgstr ""
1384
1429
  msgid "Job Details"
1385
1430
  msgstr ""
1386
1431
 
1387
- #: ../lib/foreman_remote_execution/engine.rb:100
1432
+ #: ../lib/foreman_remote_execution/engine.rb:113
1388
1433
  msgid "Job templates"
1389
1434
  msgstr ""
1390
1435
 
1391
- #: ../lib/foreman_remote_execution/engine.rb:197
1436
+ #: ../lib/foreman_remote_execution/engine.rb:204
1392
1437
  msgid "Run Puppet Once"
1393
1438
  msgstr ""
1394
1439
 
1395
- #: ../lib/foreman_remote_execution/engine.rb:198
1440
+ #: ../lib/foreman_remote_execution/engine.rb:205
1396
1441
  msgid "Perform a single Puppet run"
1397
1442
  msgstr ""
1398
1443
 
1399
- #: action_names.rb:3
1400
- msgid "Import Puppet classes"
1444
+ #: action_names.rb:2
1445
+ msgid "Action with sub plans"
1401
1446
  msgstr ""
1402
1447
 
1403
- #: action_names.rb:4
1448
+ #: action_names.rb:3
1404
1449
  msgid "Import facts"
1405
1450
  msgstr ""
1406
1451
 
1407
- #: action_names.rb:5
1408
- msgid "Action with sub plans"
1452
+ #: action_names.rb:4
1453
+ msgid "Import Puppet classes"
1409
1454
  msgstr ""
1410
1455
 
1411
1456
  #: gemspec.rb:2