]>
Commit | Line | Data |
---|---|---|
82caf311 IB |
1 | class profile::mail ( |
2 | String $mailhub, | |
3 | Optional[Integer] $mailhub_port = 25, | |
528b0cf9 | 4 | Optional[String] $default_target = "postmaster", |
82caf311 IB |
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 |