Puppet Class: postfix::config::main

Defined in:
manifests/config/main.pp

Overview

configures the main.cf file

This class is included by postfix::server and postfix::satellite to write the main.cf file

Parameters: $main_cf_file name and path of the main.cf file $owner owner of the main.cf file $group group of the main.cf file $mode mode of the main.cf file $parameters The parameters to set in the main.cf file Defaults to {}

Parameters:

  • main_cf_file (String)
  • owner (String)
  • group (String)
  • mode (String)
  • parameters (Hash) (defaults to: {})


21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'manifests/config/main.pp', line 21

class postfix::config::main (
  String $main_cf_file,
  String $owner,
  String $group,
  String $mode,
  Hash   $parameters       = {},
) {

  Package<|tag == 'postfix-packages'|> -> File[ $main_cf_file ]

  file { $main_cf_file :
    owner   => $owner,
    group   => $group,
    mode    => $mode,
    content => epp('postfix/main.cf.epp',{ parameters => $parameters } ),
    notify  => Service['postfix'],
  }

}