Sha256: 4541724e50dc43373182aacc0a432a653c6d7a73c0b6df3a952578a210cb6b86

Contents?: true

Size: 498 Bytes

Versions: 16

Compression:

Stored size: 498 Bytes

Contents

<%#
kind: job_template
name: Power Action - SSH Default
model: JobTemplate
job_category: Power
description_format: '%{action} host'
provider_type: SSH
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

16 entries across 16 versions & 1 rubygems

Version Path
foreman_remote_execution-5.0.8 app/views/templates/ssh/power_action.erb
foreman_remote_execution-5.0.7 app/views/templates/ssh/power_action.erb
foreman_remote_execution-5.0.6 app/views/templates/ssh/power_action.erb
foreman_remote_execution-5.0.5 app/views/templates/ssh/power_action.erb
foreman_remote_execution-5.0.4 app/views/templates/ssh/power_action.erb
foreman_remote_execution-5.0.3 app/views/templates/ssh/power_action.erb
foreman_remote_execution-6.0.0 app/views/templates/ssh/power_action.erb
foreman_remote_execution-5.0.2 app/views/templates/ssh/power_action.erb
foreman_remote_execution-5.1.0 app/views/templates/ssh/power_action.erb
foreman_remote_execution-5.0.1 app/views/templates/ssh/power_action.erb
foreman_remote_execution-5.0.0 app/views/templates/ssh/power_action.erb
foreman_remote_execution-4.8.0 app/views/templates/ssh/power_action.erb
foreman_remote_execution-4.5.6 app/views/templates/ssh/power_action.erb
foreman_remote_execution-4.5.5 app/views/templates/ssh/power_action.erb
foreman_remote_execution-4.5.4 app/views/templates/ssh/power_action.erb
foreman_remote_execution-4.7.0 app/views/templates/ssh/power_action.erb