Sha256: 32c7bd994dd72d451adc82cf7c3fdab77bb7b38504538de665448928257c4bd4

Contents?: true

Size: 623 Bytes

Versions: 37

Compression:

Stored size: 623 Bytes

Contents

<%#
kind: job_template
name: Service Action - SSH Default
job_category: Services
description_format: '%{action} service %{service}'
provider_type: SSH
template_inputs:
- name: action
  description: Action to perform on the service
  input_type: user
  options: "restart\nstart\nstop\nstatus"
  required: true
- name: service
  description: Name of the service
  input_type: user
  required: true
%>
<% if @host.operatingsystem.family == "Redhat" && @host.operatingsystem.major.to_i > 6 %>
systemctl <%= input("action") %> <%= input("service") %>
<% else %>
service <%= input("service") %> <%= input("action") %>
<% end -%>

Version data entries

37 entries across 37 versions & 1 rubygems

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