Sha256: f928d268203ea223be6bf94c58e8d9c353deb26f3d6a69d5e1f9c3433599f343

Contents?: true

Size: 602 Bytes

Versions: 64

Compression:

Stored size: 602 Bytes

Contents

<%#
name: Puppet Agent Disable - Script 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: script
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

64 entries across 64 versions & 1 rubygems

Version Path
foreman_remote_execution-13.2.8 app/views/templates/script/puppet_agent_disable.erb
foreman_remote_execution-15.0.2 app/views/templates/script/puppet_agent_disable.erb
foreman_remote_execution-15.0.1 app/views/templates/script/puppet_agent_disable.erb
foreman_remote_execution-13.2.7 app/views/templates/script/puppet_agent_disable.erb
foreman_remote_execution-15.0.0 app/views/templates/script/puppet_agent_disable.erb
foreman_remote_execution-14.1.4 app/views/templates/script/puppet_agent_disable.erb
foreman_remote_execution-14.1.3 app/views/templates/script/puppet_agent_disable.erb
foreman_remote_execution-14.1.2 app/views/templates/script/puppet_agent_disable.erb
foreman_remote_execution-14.1.1 app/views/templates/script/puppet_agent_disable.erb
foreman_remote_execution-14.1.0 app/views/templates/script/puppet_agent_disable.erb
foreman_remote_execution-14.0.2 app/views/templates/script/puppet_agent_disable.erb
foreman_remote_execution-14.0.1 app/views/templates/script/puppet_agent_disable.erb
foreman_remote_execution-13.2.6 app/views/templates/script/puppet_agent_disable.erb
foreman_remote_execution-14.0.0 app/views/templates/script/puppet_agent_disable.erb
foreman_remote_execution-13.2.5 app/views/templates/script/puppet_agent_disable.erb
foreman_remote_execution-13.2.4 app/views/templates/script/puppet_agent_disable.erb
foreman_remote_execution-13.2.3 app/views/templates/script/puppet_agent_disable.erb
foreman_remote_execution-13.2.2 app/views/templates/script/puppet_agent_disable.erb
foreman_remote_execution-12.0.7 app/views/templates/script/puppet_agent_disable.erb
foreman_remote_execution-13.2.1 app/views/templates/script/puppet_agent_disable.erb