aboutsummaryrefslogblamecommitdiff
path: root/modules/profile/manifests/mail.pp
blob: cc47b77b8263aa1710847d10fc1b18d56f6ee659 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                        
class profile::mail (
  String            $mailhub,
  Optional[Integer] $mailhub_port = 25,
) {
  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"),
  }
}