Puppet Class: puppet::agent::run

Inherits:
puppet::params
Defined in:
manifests/agent/run.pp

Summary

Puppet agent run command

Overview

Puppet agent run command

Examples:

include puppet::agent::run

Parameters:

  • puppet_path (Stdlib::Unixpath) (defaults to: $puppet::params::puppet_path)
  • options (String) (defaults to: '--test')


11
12
13
14
15
16
17
18
19
20
# File 'manifests/agent/run.pp', line 11

class puppet::agent::run (
  Stdlib::Unixpath $puppet_path = $puppet::params::puppet_path,
  String $options = '--test',
) inherits puppet::params {
  # /opt/puppetlabs/puppet/bin/puppet agent --test
  exec { 'puppet-agent-run':
    command => "${puppet_path} agent ${options}",
    returns => [0, 1, 2, 4, 6],
  }
}