aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem/mail/msmtp.pp
blob: 550b415cc51823f23f32f852934368a3754169a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class nodo::subsystem::mail::msmtp(
  $maildomain = $fqdn,
) {
  if !defined(Package['msmtp']) {
    package { 'msmtp':
      ensure => present,
    }
  }

  file { '/etc/msmtprc':
    ensure  => present,
    owner   => root,
    group   => root,
    mode    => '0644',
    content => template('nodo/msmtp/msmtprc.erb'),
  }
}