]>
Commit | Line | Data |
---|---|---|
1 | class profile::mail ( | |
2 | String $mailhub, | |
3 | Optional[Integer] $mailhub_port = 25, | |
4 | Optional[String] $default_target = "postmaster", | |
5 | ) { | |
6 | ensure_packages(["s-nail", "ssmtp"]) | |
7 | ||
8 | $hostname = lookup("base_installation::real_hostname") | |
9 | ||
10 | file { "/etc/ssmtp/ssmtp.conf": | |
11 | ensure => "present", | |
12 | content => template("profile/mail/ssmtp.conf.erb"), | |
13 | } | |
14 | } | |
15 |