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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb8a780a7e99e97ff8522fcf364eee8758e52d85798cbabd0ece68f1dbd5d249
4
- data.tar.gz: 7815d710b788c121ec6b22b860b7f71d484feafb3ed78eba43a985506a1c0bca
3
+ metadata.gz: dfc8a4a26776682e86a6c85195517c93d0166437223c85534f47cd6b6cf6a9d2
4
+ data.tar.gz: 44b059622eba866557322c6cd5e5cd3d98d99b2967ec4d07f2c770298f32558c
5
5
  SHA512:
6
- metadata.gz: ae638917262ab9065a9c1479ffab9e7dc4377bed8ee0b09675e870ff0d309de452d909f5735ea73cecb062f77b1ecde359cd7e8d9f965da1a8ffc834cc270275
7
- data.tar.gz: f34e753b0fae01cb17eaaf9038ac55dfaa9bcbafce47b1d71e83118a92cae878da492bfa8d695ea5dd0ce3287263fb2532eb629e3f21cfd4fdc45d966d07c385
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:
@@ -1,5 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'foreman_ansible'
4
+ require 'foreman_remote_execution'
5
+
3
6
  module ForemanLeapp
4
7
  class Engine < ::Rails::Engine
5
8
  engine_name 'foreman_leapp'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ForemanLeapp
4
- VERSION = '1.1.1'
4
+ VERSION = '1.2.0'
5
5
  end
@@ -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": ">= 8.16.0"
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": "^10.0",
34
- "@theforeman/stories": "^10.0",
35
- "@theforeman/test": "^10.0",
36
- "@theforeman/vendor-dev": "^10.0",
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.1.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: 2023-12-01 00:00:00.000000000 Z
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