-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #38084 - Add new REX job templates for bootc upgrade/switch/rol…
…lback
- Loading branch information
Showing
7 changed files
with
83 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<%# | ||
kind: job_template | ||
name: Bootc Action - Script Default | ||
model: JobTemplate | ||
job_category: Katello | ||
description_format: 'bootc %{action} %{options}' | ||
provider_type: script | ||
feature: katello_bootc_action | ||
template_inputs: | ||
- name: action | ||
description: 'The bootc action: upgrade, switch, rollback or status' | ||
input_type: user | ||
options: "upgrade\nswitch\nrollback\nstatus" | ||
required: true | ||
- name: options | ||
description: Additional options for bootc action | ||
input_type: user | ||
required: false | ||
- name: target | ||
description: Target for bootc switch action | ||
input_type: user | ||
required: false | ||
%> | ||
|
||
bootc <%= input('action') %> <%= input('options') %> <%= input('target') %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<%# | ||
kind: job_template | ||
name: Bootc Rollback - Katello Script Default | ||
job_category: Katello | ||
description_format: 'bootc rollback' | ||
feature: katello_bootc_rollback | ||
provider_type: script | ||
foreign_input_sets: | ||
- template: Bootc Action - Script Default | ||
exclude: action, options, target | ||
%> | ||
|
||
<%= render_template('Bootc Action - Script Default', :action => 'rollback') %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<%# | ||
kind: job_template | ||
name: Bootc Status - Katello Script Default | ||
job_category: Katello | ||
description_format: 'bootc status %{options}' | ||
feature: katello_bootc_status | ||
provider_type: script | ||
foreign_input_sets: | ||
- template: Bootc Action - Script Default | ||
exclude: action, target | ||
%> | ||
|
||
<%= render_template('Bootc Action - Script Default', :action => 'status') %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<%# | ||
kind: job_template | ||
name: Bootc Switch - Katello Script Default | ||
job_category: Katello | ||
description_format: 'bootc switch %{options} %{target}' | ||
feature: katello_bootc_switch | ||
provider_type: script | ||
foreign_input_sets: | ||
- template: Bootc Action - Script Default | ||
exclude: action | ||
%> | ||
|
||
<%= render_template('Bootc Action - Script Default', :action => 'switch') %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<%# | ||
kind: job_template | ||
name: Bootc Upgrade - Katello Script Default | ||
job_category: Katello | ||
description_format: 'bootc upgrade %{options}' | ||
feature: katello_bootc_upgrade | ||
provider_type: script | ||
foreign_input_sets: | ||
- template: Bootc Action - Script Default | ||
exclude: action, target | ||
%> | ||
|
||
<%= render_template('Bootc Action - Script Default', :action => 'upgrade') %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters