Defined Type: sendmail::mc::ostype

Defined in:
manifests/mc/ostype.pp

Summary

Add the `OSTYPE` macro to the sendmail.mc file.

Overview

Examples:

Set the ‘OSTYPE` to Debian

sendmail::mc::ostype { 'Debian': }

Parameters:

  • ostype (String) (defaults to: $name)

    The type of operating system as a string. The value is used to add the ‘OSTYPE` macro to the generated sendmail.mc file. This will include the m4 file with operating system specific settings.



11
12
13
14
15
16
17
18
19
# File 'manifests/mc/ostype.pp', line 11

define sendmail::mc::ostype (
  String $ostype = $name,
) {
  concat::fragment { "sendmail_mc-ostype-${ostype}":
    target  => 'sendmail.mc',
    order   => '05',
    content => "OSTYPE(`${ostype}')dnl\n",
  }
}