Sha256: 1bd3d5005003ce02f878cdfb9628141804a626ee307d86719c59d243d34128a7

Contents?: true

Size: 504 Bytes

Versions: 61

Compression:

Stored size: 504 Bytes

Contents

<%#
kind: job_template
name: Power Action - Script Default
model: JobTemplate
job_category: Power
description_format: '%{action} host'
provider_type: script
template_inputs:
- name: action
  description: Action to perform on the service
  input_type: user
  options: "restart\nshutdown"
  required: true
%>

PATH="$PATH:/usr/sbin:/sbin"

echo <%= input('action') %> host && sleep 3
<%= case input('action')
      when 'restart'
        'shutdown -r +1'
      else
        'shutdown -h now'
      end %>

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
foreman_remote_execution-13.2.7 app/views/templates/script/power_action.erb
foreman_remote_execution-15.0.0 app/views/templates/script/power_action.erb
foreman_remote_execution-14.1.4 app/views/templates/script/power_action.erb
foreman_remote_execution-14.1.3 app/views/templates/script/power_action.erb
foreman_remote_execution-14.1.2 app/views/templates/script/power_action.erb
foreman_remote_execution-14.1.1 app/views/templates/script/power_action.erb
foreman_remote_execution-14.1.0 app/views/templates/script/power_action.erb
foreman_remote_execution-14.0.2 app/views/templates/script/power_action.erb
foreman_remote_execution-14.0.1 app/views/templates/script/power_action.erb
foreman_remote_execution-13.2.6 app/views/templates/script/power_action.erb
foreman_remote_execution-14.0.0 app/views/templates/script/power_action.erb
foreman_remote_execution-13.2.5 app/views/templates/script/power_action.erb
foreman_remote_execution-13.2.4 app/views/templates/script/power_action.erb
foreman_remote_execution-13.2.3 app/views/templates/script/power_action.erb
foreman_remote_execution-13.2.2 app/views/templates/script/power_action.erb
foreman_remote_execution-12.0.7 app/views/templates/script/power_action.erb
foreman_remote_execution-13.2.1 app/views/templates/script/power_action.erb
foreman_remote_execution-13.2.0 app/views/templates/script/power_action.erb
foreman_remote_execution-10.1.3 app/views/templates/script/power_action.erb
foreman_remote_execution-13.0.0 app/views/templates/script/power_action.erb