Puppet Class: ssmtp::params
- Inherited by:
-
ssmtp
- Defined in:
-
manifests/params.pp
Summary
This class contain the default parameters for ssmtp module
Overview
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
68
69
70
71
72
73
|
# File 'manifests/params.pp', line 4
class ssmtp::params {
# Operating system specific definitions
case $::osfamily {
'RedHat' : {
$supported = true
# Package definition
$package_ssmtp = 'ssmtp'
# Config definition
$config_ssmtp_conf = '/etc/ssmtp/ssmtp.conf'
$config_ssmtp_conf_template = 'ssmtp/etc/ssmtp.conf.erb'
$config_revaliases_conf = '/etc/ssmtp/revaliases'
$config_revaliases_conf_template = 'ssmtp/etc/revaliases.erb'
$ssmtp_conf_group = 'mail'
$revaliases_conf_group = 'root'
}
'Debian' : {
$supported = true
# Package definition
$package_ssmtp = 'ssmtp'
# Config definition
$config_ssmtp_conf = '/etc/ssmtp/ssmtp.conf'
$config_ssmtp_conf_template = 'ssmtp/etc/ssmtp.conf.erb'
$config_revaliases_conf = '/etc/ssmtp/revaliases'
$config_revaliases_conf_template = 'ssmtp/etc/revaliases.erb'
$ssmtp_conf_group = 'mail'
$revaliases_conf_group = 'root'
}
'FreeBSD': {
$supported = true
# Package definitions
$package_ssmtp = 'ssmtp'
# Config definition
$config_ssmtp_conf = '/usr/local/etc/ssmtp/ssmtp.conf'
$config_ssmtp_conf_template = 'ssmtp/etc/ssmtp.conf.erb'
$config_revaliases_conf = '/usr/local/etc/ssmtp/revaliases'
$config_revaliases_conf_template = 'ssmtp/etc/revaliases.erb'
$config_mailer_conf = '/etc/mail/mailer.conf'
$config_mailer_conf_template = 'ssmtp/etc/mailer.conf.erb'
$ssmtp_conf_group = 'ssmtp'
$revaliases_conf_group = 'ssmtp'
$mailer_conf_mode = '0644'
$mailer_conf_owner = 'root'
$mailer_conf_group = 'root'
}
default : {
$supported = false
}
}
# sSMTP definitions
$default_mta = false
$root_email = 'john.doe@example.local'
$mail_hub = 'mail.example.local'
$revaliases = ['# Custom revaliases']
$from_line_override = 'YES'
# Config file mode & ownership
$ssmtp_conf_mode = '0640'
$ssmtp_conf_owner = 'root'
$revaliases_conf_mode = '0644'
$revaliases_conf_owner = 'root'
}
|