Puppet Class: postfix::config::master

Defined in:
manifests/config/master.pp

Overview

Parameters:

  • master_cf_file (String)
  • owner (String)
  • group (String)
  • mode (String)
  • services (Hash) (defaults to: {})


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'manifests/config/master.pp', line 2

class postfix::config::master (
  String $master_cf_file,
  String $owner,
  String $group,
  String $mode,
  Hash   $services = {},
) {

  Package<|tag == 'postfix-packages'|> -> Concat[ $master_cf_file ]

  concat { $master_cf_file :
    owner  => $owner,
    group  => $group,
    mode   => $mode,
    notify => Service['postfix'],
  }

  concat::fragment{'postfix: master_cf_header' :
    target  => $master_cf_file,
    content => template('postfix/service_header.erb'),
    order   => '00',
  }

  $service_defaults = {
    master_cf_file => $master_cf_file,
  }

  # create the services
  create_resources('postfix::config::service', $services, $service_defaults)
}