Sha256: 9c58e459ce9bbc70f064db78fd5d3fde2e3dc7665d9168671ef959d8b2fea71a

Contents?: true

Size: 788 Bytes

Versions: 9

Compression:

Stored size: 788 Bytes

Contents

<%#
name: Install Errata - Katello Ansible Default
snippet: false
model: JobTemplate
job_category: Katello via Ansible
description_format: Install errata %{errata}
template_inputs:
- name: errata
  required: true
  input_type: user
  description: A comma separated list of errata to install
  advanced: false
provider_type: Ansible
kind: job_template
%>

<% if @host.operatingsystem.family == 'Suse' -%>
<% advisories = input(:errata).split(',').join(' ') -%>
<%= render_template('Run Command - Ansible Default', :command => "zypper -n install -t patch #{advisories}") %>
<% else -%>
<% advisories = input(:errata).split(',').map { |e| "--advisory=#{e}" }.join(' ') -%>
<%= render_template('Run Command - Ansible Default', :command => "yum -y update-minimal #{advisories}") %>
<% end -%>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
katello-4.13.1 app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb
katello-4.13.0 app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb
katello-4.12.1 app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb
katello-4.13.0.rc1 app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb
katello-4.12.0 app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb
katello-4.12.0.rc3 app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb
katello-4.12.0.rc2 app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb
katello-4.12.0.rc1 app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb
katello-4.11.1 app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb