Puppet Class: sendmail::package

Inherits:
sendmail::params
Defined in:
manifests/package.pp

Summary

Manage the Sendmail MTA package.

Overview

Parameters:

  • auxiliary_packages (Array[String]) (defaults to: $sendmail::params::auxiliary_packages)

    Additional packages that will be installed by the Sendmail module. Valid options: array of strings. The default varies by operating system.

  • package_ensure (String) (defaults to: 'present')

    Configure whether the Sendmail package should be installed, and what version. Valid options: ‘present`, `latest`, or a specific version number.

  • package_manage (Boolean) (defaults to: $sendmail::params::package_manage)

    Configure whether Puppet should manage the Sendmail package(s). Valid options: ‘true` or `false`. The default is `true`.



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'manifests/package.pp', line 17

class sendmail::package (
  Array[String] $auxiliary_packages = $sendmail::params::auxiliary_packages,
  String        $package_ensure     = 'present',
  Boolean       $package_manage     = $sendmail::params::package_manage,
) inherits sendmail::params {
  if $package_manage {
    package { $sendmail::params::package_name:
      ensure => $package_ensure,
    }

    unless empty($auxiliary_packages) {
      stdlib::ensure_packages($auxiliary_packages)
    }
  }
}