]>
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 | ||
8093d467 IB |
8 | $mail_host = "mail.immae.eu" |
9 | $password_seed = lookup("base_installation::puppet_pass_seed") | |
10 | $ldap_password = generate_password(24, $password_seed, "ldap") | |
11 | $ldap_cn = lookup("base_installation::ldap_cn") | |
82caf311 IB |
12 | |
13 | file { "/etc/ssmtp/ssmtp.conf": | |
14 | ensure => "present", | |
15 | content => template("profile/mail/ssmtp.conf.erb"), | |
16 | } | |
17 | } | |
18 |