foreman_leapp 4.1.1 → 4.1.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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c1f38a5adecc848ba020a8f5fc05fab0cc2fc7fe7bf601cbd203573aad9c439b
|
|
4
|
+
data.tar.gz: ee5d2b732ab8e350b4b63a7540eb88033cc1ff044e40bff462df7572c7732cc4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e1c24199a67c0cac53639abd41887204f6fe11bad17b75ed0830c0fbada21465a9bc9f5819006a8ed3c9d3a5683831c9caf1779939a78a5e99d04325d1a416f1
|
|
7
|
+
data.tar.gz: 3a468e1a63138d80d6225fbbce9f5da2f92e8cd05af3d1400c4994fbdbe2359658876c69ab5b02296f905ba437deaa54c8c337b6e12816700a0b7329076db025
|
|
@@ -10,21 +10,16 @@ oses:
|
|
|
10
10
|
%>
|
|
11
11
|
<%
|
|
12
12
|
os_major = @host.operatingsystem.major.to_i
|
|
13
|
+
arch = @host.architecture ? @host.architecture.name : "x86_64"
|
|
13
14
|
rhel_compatible = @host.operatingsystem.family == 'Redhat' && @host.operatingsystem.name == 'RedHat'
|
|
14
|
-
|
|
15
|
+
supported_versions = [7, 8, 9]
|
|
16
|
+
supported_version = supported_versions.include?(os_major)
|
|
15
17
|
|
|
16
18
|
repos = case os_major
|
|
17
19
|
when 7
|
|
18
20
|
['rhel-7-server-rpms', 'rhel-7-server-extras-rpms']
|
|
19
|
-
when 8
|
|
20
|
-
[
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
package = case os_major
|
|
24
|
-
when 7
|
|
25
|
-
'leapp'
|
|
26
|
-
when 8
|
|
27
|
-
'leapp-upgrade'
|
|
21
|
+
when 8, 9
|
|
22
|
+
["rhel-#{os_major}-for-#{arch}-baseos-rpms", "rhel-#{os_major}-for-#{arch}-appstream-rpms"]
|
|
28
23
|
end
|
|
29
24
|
-%>
|
|
30
25
|
---
|
|
@@ -33,12 +28,12 @@ oses:
|
|
|
33
28
|
<% if rhel_compatible && supported_version -%>
|
|
34
29
|
- name: Enable Leapp repositories
|
|
35
30
|
command: subscription-manager repos <%= repos.map{|r| "--enable #{r}"}.join(" ") %>
|
|
36
|
-
- name: Install
|
|
31
|
+
- name: Install leapp-upgrade
|
|
37
32
|
package:
|
|
38
|
-
name:
|
|
33
|
+
name: leapp-upgrade
|
|
39
34
|
state: present
|
|
40
35
|
<% else -%>
|
|
41
|
-
- name: Fail if the target server is not RHEL
|
|
36
|
+
- name: Fail if the target server is not a supported RHEL version
|
|
42
37
|
fail:
|
|
43
|
-
msg: "This playbook can be executed only on RHEL server
|
|
38
|
+
msg: "This playbook can be executed only on RHEL server versions <%= supported_versions.join(", ") %>."
|
|
44
39
|
<% end -%>
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: foreman_leapp
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.1.
|
|
4
|
+
version: 4.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Foreman Leapp team
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-08-
|
|
10
|
+
date: 2026-08-24 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: foreman_remote_execution
|