Sha256: a7b3586dffd75a6985c6340b7b6a2619f861745bb13ea5b9595b2a5f71db1a05

Contents?: true

Size: 441 Bytes

Versions: 34

Compression:

Stored size: 441 Bytes

Contents

<%#
kind: job_template
name: Power Action - SSH Default
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'
        'reboot'
      else
        'shutdown -h now'
      end %>

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
foreman_remote_execution-1.5.6 app/views/templates/ssh/power_action.erb
foreman_remote_execution-1.6.3 app/views/templates/ssh/power_action.erb
foreman_remote_execution-1.6.2 app/views/templates/ssh/power_action.erb
foreman_remote_execution-1.5.5 app/views/templates/ssh/power_action.erb
foreman_remote_execution-1.6.1 app/views/templates/ssh/power_action.erb
foreman_remote_execution-1.6.0 app/views/templates/ssh/power_action.erb
foreman_remote_execution-1.5.4 app/views/templates/ssh/power_action.erb
foreman_remote_execution-1.5.3 app/views/templates/ssh/power_action.erb
foreman_remote_execution-1.5.2 app/views/templates/ssh/power_action.erb
foreman_remote_execution-1.5.1 app/views/templates/ssh/power_action.erb
foreman_remote_execution-1.5.0 app/views/templates/ssh/power_action.erb
foreman_remote_execution-1.4.6 app/views/templates/ssh/power_action.erb
foreman_remote_execution-1.4.5 app/views/templates/ssh/power_action.erb
foreman_remote_execution-1.4.4 app/views/templates/ssh/power_action.erb
foreman_remote_execution-1.4.3 app/views/templates/ssh/power_action.erb
foreman_remote_execution-1.4.2 app/views/templates/ssh/power_action.erb
foreman_remote_execution-1.3.7 app/views/templates/ssh/power_action.erb
foreman_remote_execution-1.3.6 app/views/templates/ssh/power_action.erb
foreman_remote_execution-1.4.1 app/views/templates/ssh/power_action.erb
foreman_remote_execution-1.3.5 app/views/templates/ssh/power_action.erb