forked from lvicainne/puppet-opendkim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparams.pp
More file actions
67 lines (60 loc) · 1.73 KB
/
Copy pathparams.pp
File metadata and controls
67 lines (60 loc) · 1.73 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
class opendkim::params {
$uid = -1
$gid = -1
$pidfile = '/var/run/opendkim/opendkim.pid'
$homedir = '/var/run/opendkim'
$mode = 'sv'
$package_name = 'opendkim'
$log_why = 'no'
$canonicalization = 'relaxed/simple'
$subdomains = 'yes'
$socket = 'inet:8891@127.0.0.1'
$umask = '0022'
$trusted_hosts = ['::1', '127.0.0.1', 'localhost']
$maximum_signed_bytes = undef
$trustanchorfile = undef
$senderheaders = undef
$manage_private_keys = true
$alldomain = false
$selector = undef
$publickey = undef
$publickeyextended = undef
$privatekey = undef
$hash_algorithms = undef
$signaturealgorithm = undef
$minimumkeybits = undef
$keys = []
$nameservers = undef
$removeoldsignatures = 'no'
$service_enable = true
$service_ensure = 'running'
case fact('os.family') {
'Debian': {
$user = 'opendkim'
$group = 'opendkim'
$service_name = 'opendkim'
$configfile = '/etc/opendkim.conf'
$sysconfigfile = '/etc/default/opendkim'
$configdir = '/etc/opendkim'
}
'FreeBSD': {
$user = 'mailnull'
$group = 'mailnull'
$service_name = 'milter-opendkim'
$configfile = '/usr/local/etc/mail/opendkim.conf'
$sysconfigfile = undef
$configdir = '/usr/local/etc/mail/opendkim'
}
'Redhat': {
$user = 'opendkim'
$group = 'opendkim'
$service_name = 'opendkim'
$configfile = '/etc/opendkim.conf'
$sysconfigfile = '/etc/sysconfig/opendkim'
$configdir = '/etc/opendkim'
}
default: {
fail("${fact('os.family')} is not supported by this module.")
}
}
}