Sha256: 1e573b441f01c2e755d599b2551d30b9a14c9cb65ade67f8cd56dff8e821d562

Contents?: true

Size: 596 Bytes

Versions: 35

Compression:

Stored size: 596 Bytes

Contents

<%#
name: Puppet Agent Disable - SSH Default
model: JobTemplate
job_category: Puppet
description_format: Disable Puppet agent
snippet: false
template_inputs:
- name: comment
  required: false
  input_type: user
  description: Reason for disabling the Puppet agent
  advanced: false
provider_type: SSH
kind: job_template
-%>
<% if @host.operatingsystem.family == 'Debian' -%>
export PATH=/opt/puppetlabs/bin:$PATH
<% end -%>
puppet agent --disable "<%= input("comment").present? ? input("comment") : "Disabled using Foreman Remote Execution"  %> - <%= current_user %> - $(date "+%d/%m/%Y %H:%M")"

Version data entries

35 entries across 35 versions & 1 rubygems

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