foreman_remote_execution 13.2.6 → 13.2.8
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0995bba1565ba78151872654d71a89d64c73fc66fe4b814800c273eabc3e5cb
|
4
|
+
data.tar.gz: 22cc0e52dc17539db11a40a9230e69c7d9d5a3c0ae2a21a245d7c22652d4a0bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76c8f7e4e9b6ab06ebc5e6ba6562be5dafbce07f02172e46dae24604040c9ef6b89c31111bdcda46bee2cf163e526a83158b7cb010c34c73585225fd60f1fb42
|
7
|
+
data.tar.gz: db5baca331f172e40b24b740b46f9cb36b2ccf100d31193b11355c76772e748b2155e4afe42eb59c526841efdaa23ac5d92787c6e23304428788897f49f146b5
|
@@ -5,7 +5,20 @@ 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
|
8
18
|
%>
|
19
|
+
<%-
|
20
|
+
els = input('ELS') == "yes" ? "--els" : ""
|
21
|
+
-%>
|
9
22
|
<% if @host.operatingsystem.family == 'Redhat' -%>
|
10
23
|
if ! [ $(id -u) -eq 0 ]; then
|
11
24
|
echo "You must run convert2rhel as a root user."
|
@@ -18,7 +31,7 @@ fi
|
|
18
31
|
|
19
32
|
export CONVERT2RHEL_THROUGH_FOREMAN=1
|
20
33
|
|
21
|
-
/usr/bin/convert2rhel analyze -y
|
34
|
+
/usr/bin/convert2rhel analyze -y <%= els %>
|
22
35
|
|
23
36
|
# Workaround for https://issues.redhat.com/browse/RHELC-1280
|
24
37
|
subscription-manager facts --update
|
@@ -1,10 +1,13 @@
|
|
1
1
|
class MigrateSmartProxyIdsToTemplateInvocations < ActiveRecord::Migration[6.0]
|
2
2
|
def up
|
3
|
+
proxy_lookup_cache = {}
|
3
4
|
ForemanTasks::Link.joins(:task)
|
4
5
|
.where(resource_type: 'SmartProxy', task: { label: 'Actions::RemoteExecution::RunHostJob' })
|
5
6
|
.where.not(resource_id: nil)
|
6
7
|
.find_in_batches do |batch|
|
7
8
|
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]
|
8
11
|
template_invocation_ids = ForemanTasks::Link.where(resource_type: 'TemplateInvocation', task_id: links.map(&:task_id)).select(:resource_id)
|
9
12
|
TemplateInvocation.where(id: template_invocation_ids).update_all(smart_proxy_id: resource_id)
|
10
13
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_remote_execution
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 13.2.
|
4
|
+
version: 13.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Foreman Remote Execution team
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: deface
|
@@ -592,7 +592,7 @@ homepage: https://github.com/theforeman/foreman_remote_execution
|
|
592
592
|
licenses:
|
593
593
|
- GPL-3.0
|
594
594
|
metadata: {}
|
595
|
-
post_install_message:
|
595
|
+
post_install_message:
|
596
596
|
rdoc_options: []
|
597
597
|
require_paths:
|
598
598
|
- lib
|
@@ -611,7 +611,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
611
611
|
version: '0'
|
612
612
|
requirements: []
|
613
613
|
rubygems_version: 3.3.27
|
614
|
-
signing_key:
|
614
|
+
signing_key:
|
615
615
|
specification_version: 4
|
616
616
|
summary: A plugin bringing remote execution to the Foreman, completing the config
|
617
617
|
management functionality with remote management functionality.
|