blob: 108263827ed1b3396a3144b5579a4cdbd62b4718 (
plain)
1
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
32
33
34
35
36
37
38
|
#
# == Class: postfix::transport_regexp
#
# Manages Postfix transport_regexp by merging snippets shipped:
# - in the module's files/transport_regexp.d/ or puppet:///files/etc/postfix/transport_regexp.d
# (the latter takes precedence if present); site_postfix module is supported
# as well, see the source argument of file {"$postfix_transport_regexp_snippets_dir"
# bellow for details.
# - via postfix::transport_regexp_snippet defines
#
# Example usage:
#
# node "toto.example.com" {
# class { 'postfix':
# manage_transport_regexp => 'yes',
# }
# postfix::config { "transport_maps":
# value => "hash:/etc/postfix/transport, regexp:/etc/postfix/transport_regexp",
# }
# }
#
class postfix::transport_regexp {
concat { '/etc/postfix/transport_regexp':
owner => root,
group => root,
mode => '0600',
}
# Cleanup previous implementation's internal files
include common::moduledir
file { "${common::moduledir::module_dir_path}/postfix/transport_regexp":
ensure => absent,
recurse => true,
force => true,
}
}
|