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.3.4 app/views/templates/ssh/power_action.erb
foreman_remote_execution-1.3.3 app/views/templates/ssh/power_action.erb
foreman_remote_execution-1.3.2 app/views/templates/ssh/power_action.erb
foreman_remote_execution-1.3.1 app/views/templates/ssh/power_action.erb
foreman_remote_execution-1.3.0 app/views/templates/ssh/power_action.erb
foreman_remote_execution-1.2.2 app/views/templates/ssh/power_action.erb
foreman_remote_execution-1.2.1 app/views/templates/ssh/power_action.erb
foreman_remote_execution-1.2.0 app/views/templates/ssh/power_action.erb
foreman_remote_execution-1.1.1 app/views/templates/ssh/power_action.erb
foreman_remote_execution-1.1.0 app/views/templates/ssh/power_action.erb
foreman_remote_execution-1.0.0 app/views/templates/ssh/power_action.erb
foreman_remote_execution-0.3.2 app/views/templates/power_action.erb
foreman_remote_execution-0.3.1 app/views/templates/power_action.erb
foreman_remote_execution-0.3.0 app/views/templates/power_action.erb