Sha256: 50ec79e2c9040b5146eab763ef3f21b708a2f316b5f1fba6a3e8c72988fbfe12

Contents?: true

Size: 625 Bytes

Versions: 1

Compression:

Stored size: 625 Bytes

Contents

<%#
kind: job_template
name: Service Action - SSH Default
job_name: Service Action
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

1 entries across 1 versions & 1 rubygems

Version Path
foreman_remote_execution-0.1.2 app/views/templates/service_action.erb