Sha256: f4ad75efe32180fcd2553e5226240d9556fae59e07a3281ad50b890d0513c1e0

Contents?: true

Size: 1.11 KB

Versions: 90

Compression:

Stored size: 1.11 KB

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}") -%>
<% elsif @host.operatingsystem.family == 'Debian' -%>
<% advisories = input(:errata).split(',').map { |e| @host.debs_for_erratum(e) }.join(' ') -%>
<%= render_template('Run Command - Ansible Default', :command => "apt-get -o Dpkg::Options::=\"--force-confdef\" -o Dpkg::Options::=\"--force-confold\" -y --only-upgrade install -y #{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

90 entries across 90 versions & 1 rubygems

Version Path
katello-4.8.4 app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb
katello-4.8.3 app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb
katello-4.7.6 app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb
katello-4.8.2 app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb
katello-4.8.1 app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb
katello-4.7.5 app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb
katello-4.8.0 app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb
katello-4.8.0.rc2 app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb
katello-4.7.4 app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb
katello-4.8.0.rc1 app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb
katello-4.7.3 app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb
katello-4.7.2 app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb
katello-4.7.1 app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb
katello-4.6.2.1 app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb
katello-4.6.2 app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb
katello-4.7.0 app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb
katello-4.6.1 app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb
katello-4.7.0.rc2 app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb
katello-4.7.0.rc1 app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb
katello-4.4.2.2 app/views/foreman/job_templates/install_errata_-_katello_ansible_default.erb