Sha256: a19b6a9f744df6d01e7e1f5ba5aa077ea0864339fbb46ca1155e76424ca4f96b

Contents?: true

Size: 468 Bytes

Versions: 52

Compression:

Stored size: 468 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
%>

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

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
foreman_remote_execution-4.5.3 app/views/templates/ssh/power_action.erb
foreman_remote_execution-4.5.2 app/views/templates/ssh/power_action.erb
foreman_remote_execution-4.5.1 app/views/templates/ssh/power_action.erb
foreman_remote_execution-4.6.0 app/views/templates/ssh/power_action.erb
foreman_remote_execution-4.5.0 app/views/templates/ssh/power_action.erb
foreman_remote_execution-4.4.0 app/views/templates/ssh/power_action.erb
foreman_remote_execution-4.3.1 app/views/templates/ssh/power_action.erb
foreman_remote_execution-4.3.0 app/views/templates/ssh/power_action.erb
foreman_remote_execution-4.2.3 app/views/templates/ssh/power_action.erb
foreman_remote_execution-4.2.2 app/views/templates/ssh/power_action.erb
foreman_remote_execution-4.2.1 app/views/templates/ssh/power_action.erb
foreman_remote_execution-4.2.0 app/views/templates/ssh/power_action.erb
foreman_remote_execution-4.1.0 app/views/templates/ssh/power_action.erb
foreman_remote_execution-3.3.7 app/views/templates/ssh/power_action.erb
foreman_remote_execution-4.0.0 app/views/templates/ssh/power_action.erb
foreman_remote_execution-3.3.6 app/views/templates/ssh/power_action.erb
foreman_remote_execution-3.3.5 app/views/templates/ssh/power_action.erb
foreman_remote_execution-3.3.4 app/views/templates/ssh/power_action.erb
foreman_remote_execution-3.3.3 app/views/templates/ssh/power_action.erb
foreman_remote_execution-3.2.2 app/views/templates/ssh/power_action.erb