Sha256: f8aa52e639a1d33853b5ec3f5e862ca5bcefa54aebc4726cd96b1d6d3a6a6db8
Contents?: true
Size: 698 Bytes
Versions: 2
Compression:
Stored size: 698 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') -%> <% if reboot -%> <%= render_template('Power Action - Script Default', action: 'restart') %> <% else -%> RETVAL=0 <% commands.each do |command| -%> <%= command %> if [ $? -ne 0 ]; then RETVAL=1 fi <% end -%> katello-tracer-upload <% end -%> exit $RETVAL
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
katello-4.15.0 | app/views/foreman/job_templates/restart_services.erb |
katello-4.15.0.rc2 | app/views/foreman/job_templates/restart_services.erb |