Puppet Class: r10k::postrun_command

Inherits:
r10k::params
Defined in:
manifests/postrun_command.pp

Summary

This class will configure r10k to run as part of the masters agent run

Overview

Parameters:

  • command (String[1]) (defaults to: $r10k::params::pre_postrun_command)
  • ensure (Enum['present', 'absent']) (defaults to: 'present')


6
7
8
9
10
11
12
13
14
15
16
17
# File 'manifests/postrun_command.pp', line 6

class r10k::postrun_command (
  String[1] $command                = $r10k::params::pre_postrun_command,
  Enum['present', 'absent'] $ensure = 'present',
) inherits r10k::params {
  ini_setting { 'r10k_postrun_command':
    ensure  => $ensure,
    path    => "${r10k::params::puppetconf_path}/puppet.conf",
    section => 'agent',
    setting => 'postrun_command',
    value   => $command,
  }
}