Sha256: 1a52094657dbdc09ce48ee9463801004967662f07eadcaca8b204329cd727119

Contents?: true

Size: 840 Bytes

Versions: 68

Compression:

Stored size: 840 Bytes

Contents

<%#
kind: job_template
name: Service Action - SSH Default
model: JobTemplate
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\nreload\nenable\ndisable"
  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 %>
  <% case input("action")
  when 'enable' %>
chkconfig --add <%= input("service") %>
  <% when 'disable' %>
chkconfig --del <%= input("service") %>
  <% else %>
service <%= input("service") %> <%= input("action") %>
  <% end %>
<% end -%>

Version data entries

68 entries across 68 versions & 1 rubygems

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