Puppet Class: sendmail::local_host_names

Defined in:
manifests/local_host_names.pp

Summary

Manage entries in the Sendmail local-host-names file.

Overview

Do not declare this class directly. Use the ‘local_host_names` parameter of the `sendmail` class instead.

Parameters:

  • local_host_names (Array[String]) (defaults to: [])

    An array of host names that will be written into the local host names file. Leading or trailing whitespace is ignored. Empty entries are also ignored.



13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'manifests/local_host_names.pp', line 13

class sendmail::local_host_names (
  Array[String] $local_host_names = [],
) {
  include sendmail::params

  file { $sendmail::params::local_host_names_file:
    ensure  => file,
    owner   => 'root',
    group   => $sendmail::params::sendmail_group,
    mode    => '0644',
    content => join(suffix(sendmail::canonify_array($local_host_names), "\n")),
    notify  => Class['sendmail::service'],
  }
}