Sha256: d2a2e33b7befbd9a54694a135d293dc51966239d50fed25da2285a780039fd56

Contents?: true

Size: 594 Bytes

Versions: 55

Compression:

Stored size: 594 Bytes

Contents

<%#
kind: job_template
name: Restart Services - Katello Script Default
job_category: Katello
description_format: 'Restart Services'
feature: katello_service_restart
provider_type: script
template_inputs:
- name: helper
  description: A comma separated list of commands to run to restart services
  input_type: user
  required: true
%>

<%
commands = input(:helper).split(',').map { |split| split.strip }
reboot = commands.delete('reboot')
-%>
<%= commands.join("\n") %>
katello-tracer-upload
<% if reboot -%>
<%= render_template('Power Action - Script Default', action: 'restart') %>
<% end %>

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
katello-4.14.3 app/views/foreman/job_templates/restart_services.erb
katello-4.14.2 app/views/foreman/job_templates/restart_services.erb
katello-4.15.0.rc1 app/views/foreman/job_templates/restart_services.erb
katello-4.14.1 app/views/foreman/job_templates/restart_services.erb
katello-4.14.0 app/views/foreman/job_templates/restart_services.erb
katello-4.14.0.rc3 app/views/foreman/job_templates/restart_services.erb
katello-4.14.0.rc2 app/views/foreman/job_templates/restart_services.erb
katello-4.14.0.rc1.1 app/views/foreman/job_templates/restart_services.erb
katello-4.14.0.rc1 app/views/foreman/job_templates/restart_services.erb
katello-4.13.1 app/views/foreman/job_templates/restart_services.erb
katello-4.13.0 app/views/foreman/job_templates/restart_services.erb
katello-4.12.1 app/views/foreman/job_templates/restart_services.erb
katello-4.13.0.rc1 app/views/foreman/job_templates/restart_services.erb
katello-4.12.0 app/views/foreman/job_templates/restart_services.erb
katello-4.12.0.rc3 app/views/foreman/job_templates/restart_services.erb
katello-4.12.0.rc2 app/views/foreman/job_templates/restart_services.erb
katello-4.12.0.rc1 app/views/foreman/job_templates/restart_services.erb
katello-4.11.1 app/views/foreman/job_templates/restart_services.erb
katello-4.11.0 app/views/foreman/job_templates/restart_services.erb
katello-4.11.0.rc2 app/views/foreman/job_templates/restart_services.erb