foreman_remote_execution 13.2.8 → 14.0.0

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 (46) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_remote_execution/locale/de/foreman_remote_execution.js +77 -77
  3. data/app/assets/javascripts/foreman_remote_execution/locale/en/foreman_remote_execution.js +1667 -2
  4. data/app/assets/javascripts/foreman_remote_execution/locale/en_GB/foreman_remote_execution.js +7 -7
  5. data/app/assets/javascripts/foreman_remote_execution/locale/es/foreman_remote_execution.js +33 -33
  6. data/app/assets/javascripts/foreman_remote_execution/locale/fr/foreman_remote_execution.js +131 -131
  7. data/app/assets/javascripts/foreman_remote_execution/locale/ja/foreman_remote_execution.js +131 -131
  8. data/app/assets/javascripts/foreman_remote_execution/locale/ka/foreman_remote_execution.js +38 -38
  9. data/app/assets/javascripts/foreman_remote_execution/locale/ko/foreman_remote_execution.js +16 -16
  10. data/app/assets/javascripts/foreman_remote_execution/locale/pt_BR/foreman_remote_execution.js +33 -33
  11. data/app/assets/javascripts/foreman_remote_execution/locale/ru/foreman_remote_execution.js +7 -7
  12. data/app/assets/javascripts/foreman_remote_execution/locale/zh_CN/foreman_remote_execution.js +134 -134
  13. data/app/assets/javascripts/foreman_remote_execution/locale/zh_TW/foreman_remote_execution.js +6 -6
  14. data/app/controllers/ui_job_wizard_controller.rb +1 -1
  15. data/app/lib/foreman_remote_execution/renderer_methods.rb +14 -0
  16. data/app/views/templates/script/convert2rhel_analyze.erb +1 -14
  17. data/config/initializers/inflections.rb +6 -0
  18. data/db/migrate/20240522093413_migrate_smart_proxy_ids_to_template_invocations.rb +0 -3
  19. data/lib/foreman_remote_execution/engine.rb +243 -250
  20. data/lib/foreman_remote_execution/version.rb +1 -1
  21. data/locale/de/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  22. data/locale/de/foreman_remote_execution.po +80 -81
  23. data/locale/en/foreman_remote_execution.po +1675 -0
  24. data/locale/en_GB/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  25. data/locale/en_GB/foreman_remote_execution.po +7 -7
  26. data/locale/es/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  27. data/locale/es/foreman_remote_execution.po +33 -33
  28. data/locale/fr/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  29. data/locale/fr/foreman_remote_execution.po +132 -132
  30. data/locale/ja/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  31. data/locale/ja/foreman_remote_execution.po +131 -131
  32. data/locale/ka/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  33. data/locale/ka/foreman_remote_execution.po +38 -38
  34. data/locale/ko/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  35. data/locale/ko/foreman_remote_execution.po +16 -16
  36. data/locale/pt_BR/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  37. data/locale/pt_BR/foreman_remote_execution.po +33 -33
  38. data/locale/ru/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  39. data/locale/ru/foreman_remote_execution.po +7 -7
  40. data/locale/zh_CN/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  41. data/locale/zh_CN/foreman_remote_execution.po +134 -136
  42. data/locale/zh_TW/LC_MESSAGES/foreman_remote_execution.mo +0 -0
  43. data/locale/zh_TW/foreman_remote_execution.po +6 -6
  44. data/test/functional/ui_job_wizard_controller_test.rb +1 -1
  45. metadata +7 -6
  46. data/app/services/renderer_methods.rb +0 -12
@@ -3,11 +3,11 @@
3
3
  "locale_data": {
4
4
  "foreman_remote_execution": {
5
5
  "": {
6
- "Project-Id-Version": "foreman_remote_execution 14.0.0",
6
+ "Project-Id-Version": "foreman_remote_execution 9.0.1",
7
7
  "Report-Msgid-Bugs-To": "",
8
8
  "PO-Revision-Date": "2016-02-15 13:54+0000",
9
9
  "Last-Translator": "FULL NAME <EMAIL@ADDRESS>",
10
- "Language-Team": "Chinese (Taiwan) (http://app.transifex.com/foreman/foreman/language/zh_TW/)",
10
+ "Language-Team": "Chinese (Taiwan) (http://www.transifex.com/foreman/foreman/language/zh_TW/)",
11
11
  "MIME-Version": "1.0",
12
12
  "Content-Type": "text/plain; charset=UTF-8",
13
13
  "Content-Transfer-Encoding": "8bit",
@@ -85,7 +85,7 @@
85
85
  ""
86
86
  ],
87
87
  "Access denied": [
88
- "拒絕存取"
88
+ ""
89
89
  ],
90
90
  "Actions": [
91
91
  "動作"
@@ -136,7 +136,7 @@
136
136
  ""
137
137
  ],
138
138
  "Back": [
139
- "上一步"
139
+ ""
140
140
  ],
141
141
  "Back to Job": [
142
142
  "回到工作"
@@ -775,7 +775,7 @@
775
775
  ""
776
776
  ],
777
777
  "Next": [
778
- "下一步"
778
+ ""
779
779
  ],
780
780
  "No (override)": [
781
781
  ""
@@ -1553,7 +1553,7 @@
1553
1553
  "您不能看到目前指定的範本。現在儲存表單會取消指定範本。"
1554
1554
  ],
1555
1555
  "You are not authorized to perform this action.": [
1556
- "您未經許可執行這項動作。"
1556
+ ""
1557
1557
  ],
1558
1558
  "You have %s results to display. Showing first %s results": [
1559
1559
  ""
@@ -1,4 +1,4 @@
1
- class UiJobWizardController < Api::V2::BaseController
1
+ class UIJobWizardController < Api::V2::BaseController
2
2
  include FiltersHelper
3
3
  def categories
4
4
  job_categories = resource_scope(permission: action_permission)
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ # macros to fetch information about invoked jobs
4
+ module ForemanRemoteExecution
5
+ module RendererMethods
6
+ extend ActiveSupport::Concern
7
+
8
+ def find_job_invocation_by_id(job_id, preload: nil)
9
+ JobInvocation.preload(preload).find_by(id: job_id)
10
+ rescue ActiveRecord::NotFound => _e
11
+ raise ::Foreman::Exception.new(N_("Can't find Job Invocation for an id %s"), job_id)
12
+ end
13
+ end
14
+ end
@@ -5,20 +5,7 @@ model: JobTemplate
5
5
  job_category: Convert 2 RHEL
6
6
  provider_type: script
7
7
  kind: job_template
8
- template_inputs:
9
- - name: ELS
10
- required: false
11
- input_type: user
12
- description: Use an Extended Lifecycle Support (ELS) add-on subscription
13
- advanced: false
14
- value_type: plain
15
- options: "yes\r\nno"
16
- default: "no"
17
- hidden_value: false
18
8
  %>
19
- <%-
20
- els = input('ELS') == "yes" ? "--els" : ""
21
- -%>
22
9
  <% if @host.operatingsystem.family == 'Redhat' -%>
23
10
  if ! [ $(id -u) -eq 0 ]; then
24
11
  echo "You must run convert2rhel as a root user."
@@ -31,7 +18,7 @@ fi
31
18
 
32
19
  export CONVERT2RHEL_THROUGH_FOREMAN=1
33
20
 
34
- /usr/bin/convert2rhel analyze -y <%= els %>
21
+ /usr/bin/convert2rhel analyze -y
35
22
 
36
23
  # Workaround for https://issues.redhat.com/browse/RHELC-1280
37
24
  subscription-manager facts --update
@@ -0,0 +1,6 @@
1
+ Rails.autoloaders.each do |autoloader|
2
+ autoloader.inflector.inflect(
3
+ 'ssh_execution_provider' => 'SSHExecutionProvider',
4
+ 'remote_execution_ssh' => 'RemoteExecutionSSH'
5
+ )
6
+ end
@@ -1,13 +1,10 @@
1
1
  class MigrateSmartProxyIdsToTemplateInvocations < ActiveRecord::Migration[6.0]
2
2
  def up
3
- proxy_lookup_cache = {}
4
3
  ForemanTasks::Link.joins(:task)
5
4
  .where(resource_type: 'SmartProxy', task: { label: 'Actions::RemoteExecution::RunHostJob' })
6
5
  .where.not(resource_id: nil)
7
6
  .find_in_batches do |batch|
8
7
  batch.group_by(&:resource_id).each do |resource_id, links|
9
- proxy_lookup_cache[resource_id] = SmartProxy.where(id: resource_id).exists? unless proxy_lookup_cache.key?(resource_id)
10
- next unless proxy_lookup_cache[resource_id]
11
8
  template_invocation_ids = ForemanTasks::Link.where(resource_type: 'TemplateInvocation', task_id: links.map(&:task_id)).select(:resource_id)
12
9
  TemplateInvocation.where(id: template_invocation_ids).update_all(smart_proxy_id: resource_id)
13
10
  end