foreman_remote_execution 5.0.4 → 6.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +7 -0
  4. data/app/controllers/foreman_remote_execution/concerns/api/v2/registration_controller_extensions.rb +5 -0
  5. data/app/controllers/ui_job_wizard_controller.rb +13 -2
  6. data/app/helpers/remote_execution_helper.rb +1 -1
  7. data/app/lib/actions/remote_execution/run_host_job.rb +3 -1
  8. data/app/lib/foreman_remote_execution/renderer/scope/input.rb +1 -1
  9. data/app/mailers/rex_job_mailer.rb +1 -1
  10. data/app/models/concerns/foreman_remote_execution/host_extensions.rb +4 -0
  11. data/app/models/job_invocation.rb +2 -0
  12. data/app/models/job_template.rb +3 -1
  13. data/app/models/remote_execution_provider.rb +10 -1
  14. data/app/models/ssh_execution_provider.rb +8 -2
  15. data/app/views/api/v2/host/main.rabl +1 -0
  16. data/app/views/job_templates/_custom_tabs.html.erb +4 -9
  17. data/app/views/template_invocations/show.html.erb +7 -1
  18. data/app/views/templates/{ssh → script}/check_update.erb +2 -2
  19. data/app/views/templates/{ssh → script}/module_action.erb +2 -2
  20. data/app/views/templates/{ssh → script}/package_action.erb +2 -2
  21. data/app/views/templates/{ssh → script}/power_action.erb +2 -2
  22. data/app/views/templates/{ssh → script}/puppet_agent_disable.erb +2 -2
  23. data/app/views/templates/{ssh → script}/puppet_agent_enable.erb +2 -2
  24. data/app/views/templates/{ssh → script}/puppet_install_modules_from_forge.erb +2 -2
  25. data/app/views/templates/{ssh → script}/puppet_install_modules_from_git.erb +2 -2
  26. data/app/views/templates/{ssh → script}/puppet_run_once.erb +2 -2
  27. data/app/views/templates/{ssh → script}/run_command.erb +2 -2
  28. data/app/views/templates/{ssh → script}/service_action.erb +2 -2
  29. data/db/migrate/20220321101835_rename_ssh_provider_to_script.rb +29 -0
  30. data/jsconfig.json +8 -0
  31. data/lib/foreman_remote_execution/engine.rb +6 -4
  32. data/lib/foreman_remote_execution/version.rb +1 -1
  33. data/locale/action_names.rb +3 -4
  34. data/locale/de/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  35. data/locale/de/foreman_remote_execution.po +356 -20
  36. data/locale/en/foreman_remote_execution.po +356 -20
  37. data/locale/en_GB/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  38. data/locale/en_GB/foreman_remote_execution.po +356 -20
  39. data/locale/es/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  40. data/locale/es/foreman_remote_execution.po +357 -21
  41. data/locale/foreman_remote_execution.pot +808 -296
  42. data/locale/fr/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  43. data/locale/fr/foreman_remote_execution.po +357 -21
  44. data/locale/ja/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  45. data/locale/ja/foreman_remote_execution.po +357 -21
  46. data/locale/ko/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  47. data/locale/ko/foreman_remote_execution.po +356 -20
  48. data/locale/pt_BR/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  49. data/locale/pt_BR/foreman_remote_execution.po +357 -21
  50. data/locale/ru/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  51. data/locale/ru/foreman_remote_execution.po +356 -20
  52. data/locale/zh_CN/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  53. data/locale/zh_CN/foreman_remote_execution.po +357 -21
  54. data/locale/zh_TW/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  55. data/locale/zh_TW/foreman_remote_execution.po +356 -20
  56. data/package.json +6 -7
  57. data/test/unit/job_invocation_report_template_test.rb +1 -1
  58. data/test/unit/remote_execution_provider_test.rb +2 -0
  59. data/test/unit/targeting_test.rb +1 -1
  60. data/webpack/JobWizard/JobWizard.js +30 -7
  61. data/webpack/JobWizard/JobWizard.scss +5 -0
  62. data/webpack/JobWizard/JobWizardConstants.js +2 -1
  63. data/webpack/JobWizard/__tests__/fixtures.js +13 -2
  64. data/webpack/JobWizard/__tests__/integration.test.js +6 -1
  65. data/webpack/JobWizard/autofill.js +34 -9
  66. data/webpack/JobWizard/index.js +0 -7
  67. data/webpack/JobWizard/steps/CategoryAndTemplate/CategoryAndTemplate.js +24 -15
  68. data/webpack/JobWizard/steps/CategoryAndTemplate/index.js +25 -7
  69. data/webpack/JobWizard/steps/HostsAndInputs/HostSearch.js +1 -1
  70. data/webpack/JobWizard/steps/HostsAndInputs/__tests__/HostsAndInputs.test.js +28 -0
  71. data/webpack/JobWizard/steps/Schedule/RepeatOn.js +1 -1
  72. data/webpack/JobWizard/steps/form/Formatter.js +18 -3
  73. data/webpack/JobWizard/steps/form/GroupedSelectField.js +7 -1
  74. data/webpack/__mocks__/foremanReact/components/Pagination.js +2 -0
  75. data/webpack/__mocks__/foremanReact/constants.js +1 -0
  76. data/webpack/global_index.js +4 -0
  77. data/webpack/react_app/components/FeaturesDropdown/actions.js +13 -0
  78. data/webpack/react_app/components/FeaturesDropdown/constant.js +2 -0
  79. data/webpack/react_app/components/FeaturesDropdown/index.js +74 -0
  80. data/webpack/react_app/components/HostKebab/KebabItems.js +22 -0
  81. data/webpack/react_app/components/RecentJobsCard/RecentJobsCard.js +6 -1
  82. data/webpack/react_app/components/RecentJobsCard/RecentJobsTable.js +2 -2
  83. data/webpack/react_app/components/RecentJobsCard/constants.js +1 -0
  84. data/webpack/react_app/components/TargetingHosts/TargetingHostsHelpers.js +1 -1
  85. data/webpack/react_app/components/TargetingHosts/TargetingHostsPage.js +1 -6
  86. data/webpack/react_app/components/TargetingHosts/__tests__/__snapshots__/TargetingHostsPage.test.js.snap +1 -9
  87. data/webpack/react_app/components/TargetingHosts/index.js +2 -3
  88. data/webpack/react_app/extend/fillKebabItems.js +11 -0
  89. data/webpack/react_app/extend/fillRexFeaturesDropdown.js +11 -0
  90. metadata +24 -16
  91. data/app/views/templates/README.md +0 -6
  92. data/webpack/__mocks__/foremanReact/components/Pagination/PaginationWrapper.js +0 -2