Sha256: e82999e6671c2141ac3955a1190026e65cb96aed52c46fdde2c6c95ec608dc97

Contents?: true

Size: 1004 Bytes

Versions: 10

Compression:

Stored size: 1004 Bytes

Contents

<%#
kind: job_template
name: Install errata by search query - Katello SSH Default
job_category: Katello
description_format: 'Install errata %{Errata search query}'
feature: katello_errata_install_by_search
provider_type: SSH
template_inputs:
- name: Errata search query
  description: Filter criteria for errata to be installed.
  input_type: user
  required: false
foreign_input_sets:
- template: Package Action - SSH Default
  exclude: action,package
%>

<% if @host.operatingsystem.family == 'Suse' -%>
    <% advisories = @host.advisory_ids(search: input("Errata search query")).join(' ') %>
    <%= render_template('Package Action - SSH Default', :action => 'install -n -t patch', :package => advisories) %>
<% else %>
    <% advisory_ids = @host.advisory_ids(search: input("Errata search query")) %>

    <% advisories = advisory_ids.map { |e| "--advisory=#{e}" }.join(' ') %>
    <%= render_template('Package Action - SSH Default', :action => 'update-minimal', :package => advisories) %>
<% end %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
katello-4.4.2.2 app/views/foreman/job_templates/install_errata_by_search_query.erb
katello-4.4.2.1 app/views/foreman/job_templates/install_errata_by_search_query.erb
katello-4.4.2 app/views/foreman/job_templates/install_errata_by_search_query.erb
katello-4.4.1 app/views/foreman/job_templates/install_errata_by_search_query.erb
katello-4.4.0.2 app/views/foreman/job_templates/install_errata_by_search_query.erb
katello-4.4.0.1 app/views/foreman/job_templates/install_errata_by_search_query.erb
katello-4.3.1 app/views/foreman/job_templates/install_errata_by_search_query.erb
katello-4.4.0 app/views/foreman/job_templates/install_errata_by_search_query.erb
katello-4.4.0.rc2 app/views/foreman/job_templates/install_errata_by_search_query.erb
katello-4.4.0.rc1 app/views/foreman/job_templates/install_errata_by_search_query.erb