Sha256: 8aaf1941242d0511ff323fc83a939cea8f18b3e30a65f190319fa87db5402790

Contents?: true

Size: 982 Bytes

Versions: 15

Compression:

Stored size: 982 Bytes

Contents

<%#
kind: job_template
name: Install Errata - Katello Script Default
job_category: Katello
description_format: 'Install errata %{errata}'
feature: katello_errata_install
provider_type: script
template_inputs:
- name: errata
  description: A comma-separated list of errata to install
  input_type: user
  required: true
foreign_input_sets:
- template: Package Action - Script Default
  exclude: action,package
%>
<%= snippet_if_exists(template_name + " custom pre") %>
<% if @host.operatingsystem.family == 'Suse' -%>
    <% advisories = input(:errata).split(',').join(' ') -%>
    <%= render_template('Package Action - Script Default', :action => 'install -n -t patch', :package => advisories) %>
<% else -%>
    <% advisories = input(:errata).split(',').map { |e| "--advisory=#{e}" }.join(' ') -%>
    <%= render_template('Package Action - Script Default', :action => 'update-minimal', :package => advisories) %>
<% end -%>
<%= snippet_if_exists(template_name + " custom post") %>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
katello-4.16.0 app/views/foreman/job_templates/install_errata.erb
katello-4.15.1 app/views/foreman/job_templates/install_errata.erb
katello-4.16.0.rc2 app/views/foreman/job_templates/install_errata.erb
katello-4.16.0.rc1 app/views/foreman/job_templates/install_errata.erb
katello-4.14.3 app/views/foreman/job_templates/install_errata.erb
katello-4.14.2 app/views/foreman/job_templates/install_errata.erb
katello-4.15.0 app/views/foreman/job_templates/install_errata.erb
katello-4.15.0.rc2 app/views/foreman/job_templates/install_errata.erb
katello-4.15.0.rc1 app/views/foreman/job_templates/install_errata.erb
katello-4.14.1 app/views/foreman/job_templates/install_errata.erb
katello-4.14.0 app/views/foreman/job_templates/install_errata.erb
katello-4.14.0.rc3 app/views/foreman/job_templates/install_errata.erb
katello-4.14.0.rc2 app/views/foreman/job_templates/install_errata.erb
katello-4.14.0.rc1.1 app/views/foreman/job_templates/install_errata.erb
katello-4.14.0.rc1 app/views/foreman/job_templates/install_errata.erb