foreman_leapp 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -0
- data/app/views/foreman_leapp/job_templates/leapp_preupgrade.erb +11 -1
- data/app/views/foreman_leapp/job_templates/leapp_upgrade.erb +10 -1
- data/lib/foreman_leapp/engine.rb +3 -0
- data/lib/foreman_leapp/version.rb +1 -1
- data/lib/tasks/foreman_leapp_tasks.rake +1 -1
- data/package.json +6 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfc8a4a26776682e86a6c85195517c93d0166437223c85534f47cd6b6cf6a9d2
|
4
|
+
data.tar.gz: 44b059622eba866557322c6cd5e5cd3d98d99b2967ec4d07f2c770298f32558c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e04e71167c179bc1c68d6f11d0b01fccbdb956e0748ad834629f2da8188e850abaf2e6e67c2ce7d3b76269cf7ae6d5624f61dd5b446ca5002e20fb06d4926971
|
7
|
+
data.tar.gz: bee694b5de20e0963601444d84db7e59f862a99263c7ea716e68808f4d0176fdce17272d5e1c0bb90c594189859e60be7281f1b4f4e587f35b2cf37800313184
|
data/README.md
CHANGED
@@ -14,6 +14,14 @@ The plugin will add following jobs:
|
|
14
14
|
- Remediation plan
|
15
15
|
- Run upgrade via Leapp
|
16
16
|
|
17
|
+
### Channel
|
18
|
+
|
19
|
+
Leapp by default will use the same "channel" (e4s, eus, aus) as the current OS, so if you are using "eus" repositories, the target OS will be on "eus" repositories as well.
|
20
|
+
But if you are upgrading and want to target a different channel, i.e. from a RHEL 7.9 to a RHEL 8.6 EUS, you can do it by explicitely setting the channel to "eus".
|
21
|
+
|
22
|
+
The channel have to be specified in both the preupgrade and upgrade jobs.
|
23
|
+
Default value of "channel" is "ga" - General availability: regular repositories are used by default.
|
24
|
+
|
17
25
|
## Api
|
18
26
|
- `GET /api/preupgrade_reports` List Preupgrade reports
|
19
27
|
- `GET /api/preupgrade_reports/:id` Show Preupgrade report
|
@@ -6,12 +6,22 @@ description_format: 'Upgradeability check for RHEL host'
|
|
6
6
|
provider_type: SSH
|
7
7
|
feature: leapp_preupgrade
|
8
8
|
model: JobTemplate
|
9
|
+
template_inputs:
|
10
|
+
- name: Channel
|
11
|
+
description: "Set if the target OS is required to use the General Availability (GA) channel - the default - or a specific channel among: Update Services for SAP Solutions (E4S), Extended Upgrade Support (EUS) or Advanced Update Support (AUS)."
|
12
|
+
input_type: user
|
13
|
+
required: true
|
14
|
+
default: "ga"
|
15
|
+
options: "ga\ne4s\neus\naus"
|
16
|
+
%>
|
17
|
+
<%
|
18
|
+
channel_opts = input('Channel') == 'ga' ? '' : "--channel #{input('Channel')}"
|
9
19
|
%>
|
10
20
|
|
11
21
|
<%= render_template 'Check Leapp' %>
|
12
22
|
|
13
23
|
rm -f /var/log/leapp/leapp-report.json
|
14
|
-
leapp preupgrade
|
24
|
+
leapp preupgrade <%= channel_opts %>
|
15
25
|
|
16
26
|
echo "===leap_upgrade_report_start==="
|
17
27
|
cat /var/log/leapp/leapp-report.json
|
@@ -7,6 +7,12 @@ provider_type: Ansible
|
|
7
7
|
feature: leapp_upgrade
|
8
8
|
model: JobTemplate
|
9
9
|
template_inputs:
|
10
|
+
- name: Channel
|
11
|
+
description: "Set if the target OS is required to use the General Availability (GA) channel - the default - or a specific channel among: Update Services for SAP Solutions (E4S), Extended Upgrade Support (EUS) or Advanced Update Support (AUS)."
|
12
|
+
input_type: user
|
13
|
+
required: true
|
14
|
+
default: "ga"
|
15
|
+
options: "ga\ne4s\neus\naus"
|
10
16
|
- name: Reboot
|
11
17
|
description: Reboot the host automaticaly to continue with the upgrade
|
12
18
|
input_type: user
|
@@ -16,9 +22,12 @@ template_inputs:
|
|
16
22
|
%>
|
17
23
|
---
|
18
24
|
- hosts: all
|
25
|
+
vars:
|
26
|
+
- channel_opts: <% input('Channel') == 'ga' ? '' : "--channel #{input('Channel')}" %>
|
19
27
|
tasks:
|
20
28
|
- name: Run Leapp Upgrade
|
21
|
-
command: leapp upgrade
|
29
|
+
command: leapp upgrade {{ channel_opts }}
|
30
|
+
|
22
31
|
<%- if input('Reboot') == "true" -%>
|
23
32
|
- name: Reboot the machine
|
24
33
|
reboot:
|
data/lib/foreman_leapp/engine.rb
CHANGED
@@ -15,7 +15,7 @@ end
|
|
15
15
|
# Tests
|
16
16
|
namespace :test do
|
17
17
|
desc 'Test ForemanLeapp'
|
18
|
-
Rake::TestTask.new(:foreman_leapp) do |t|
|
18
|
+
Rake::TestTask.new(:foreman_leapp => ['db:test:prepare']) do |t|
|
19
19
|
test_dir = File.join(File.dirname(__FILE__), '../..', 'test')
|
20
20
|
t.libs << ['test', test_dir]
|
21
21
|
t.pattern = "#{test_dir}/**/*_test.rb"
|
data/package.json
CHANGED
@@ -9,10 +9,7 @@
|
|
9
9
|
"test": "tfm-test --plugin --config jest.config.js",
|
10
10
|
"test:watch": "tfm-test --plugin --watchAll",
|
11
11
|
"test:current": "tfm-test --plugin --watch",
|
12
|
-
"publish-coverage": "tfm-publish-coverage"
|
13
|
-
"stories": "tfm-stories --plugin",
|
14
|
-
"stories:build": "tfm-build-stories --plugin",
|
15
|
-
"stories:deploy": "surge --project .storybook-dist"
|
12
|
+
"publish-coverage": "tfm-publish-coverage"
|
16
13
|
},
|
17
14
|
"repository": {
|
18
15
|
"type": "git",
|
@@ -25,15 +22,15 @@
|
|
25
22
|
},
|
26
23
|
"homepage": "https://github.com/oamg/foreman_leapp",
|
27
24
|
"peerDependencies": {
|
28
|
-
"@theforeman/vendor": ">=
|
25
|
+
"@theforeman/vendor": ">= 12.0.1"
|
29
26
|
},
|
30
27
|
"devDependencies": {
|
31
28
|
"@babel/core": "^7.7.0",
|
32
29
|
"@theforeman/builder": ">= 12.0.1",
|
33
|
-
"@theforeman/eslint-plugin-foreman": "
|
34
|
-
"@theforeman/
|
35
|
-
"@theforeman/test": "
|
36
|
-
"@theforeman/vendor-dev": "
|
30
|
+
"@theforeman/eslint-plugin-foreman": ">= 12.0.1",
|
31
|
+
"@theforeman/eslint-plugin-rules": ">= 12.0.1",
|
32
|
+
"@theforeman/test": ">= 12.0.1",
|
33
|
+
"@theforeman/vendor-dev": ">= 12.0.1",
|
37
34
|
"babel-eslint": "^10.0.0",
|
38
35
|
"eslint": "^6.8.0",
|
39
36
|
"jest-svg-transformer": "^1.0.0",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_leapp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Foreman Leapp team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: foreman_remote_execution
|