aboutsummaryrefslogtreecommitdiff
path: root/modules/profile/manifests/mail.pp
blob: 0b4a7a5e543bcee1ee3a1806abee6dc796323501 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class profile::mail (
  String            $mailhub,
  Optional[Integer] $mailhub_port = 25,
  Optional[String]  $default_target = "postmaster",
) {
  ensure_packages(["s-nail", "ssmtp"])

  $hostname = lookup("base_installation::real_hostname")

  file { "/etc/ssmtp/ssmtp.conf":
    ensure  => "present",
    content =>  template("profile/mail/ssmtp.conf.erb"),
  }
}