Puppet Class: ssmtp::service
- Defined in:
-
manifests/service.pp
Summary
This class contain the services 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
|
# File 'manifests/service.pp', line 4
class ssmtp::service {
# sSMTP service configuration
if $ssmtp::default_mta == 'ssmtp' {
if $::osfamily == 'RedHat' {
exec { 'alternatives --set mta /usr/sbin/sendmail.ssmtp':
path => '/bin:/sbin:/usr/bin:/usr/sbin',
unless => 'test /etc/alternatives/mta -ef /usr/sbin/sendmail.ssmtp',
}
}
if $::osfamily == 'FreeBSD' {
file {
$ssmtp::params::config_mailer_conf:
ensure => file,
mode => $ssmtp::mailer_conf_mode,
owner => $ssmtp::mailer_conf_owner,
group => $ssmtp::mailer_conf_group,
path => $ssmtp::params::config_mailer_conf,
content => template($ssmtp::params::config_mailer_conf_template);
}
}
}
}
|