aboutsummaryrefslogtreecommitdiff
path: root/modules/profile
diff options
context:
space:
mode:
Diffstat (limited to 'modules/profile')
-rw-r--r--modules/profile/manifests/mail.pp5
-rw-r--r--modules/profile/templates/mail/ssmtp.conf.erb7
2 files changed, 10 insertions, 2 deletions
diff --git a/modules/profile/manifests/mail.pp b/modules/profile/manifests/mail.pp
index 0b4a7a5..ee295dd 100644
--- a/modules/profile/manifests/mail.pp
+++ b/modules/profile/manifests/mail.pp
@@ -5,7 +5,10 @@ class profile::mail (
5) { 5) {
6 ensure_packages(["s-nail", "ssmtp"]) 6 ensure_packages(["s-nail", "ssmtp"])
7 7
8 $hostname = lookup("base_installation::real_hostname") 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")
9 12
10 file { "/etc/ssmtp/ssmtp.conf": 13 file { "/etc/ssmtp/ssmtp.conf":
11 ensure => "present", 14 ensure => "present",
diff --git a/modules/profile/templates/mail/ssmtp.conf.erb b/modules/profile/templates/mail/ssmtp.conf.erb
index 1766140..ea5bc99 100644
--- a/modules/profile/templates/mail/ssmtp.conf.erb
+++ b/modules/profile/templates/mail/ssmtp.conf.erb
@@ -11,4 +11,9 @@ mailhub=<%= @mailhub %>:<%= @mailhub_port %>
11# Where will the mail seem to come from? 11# Where will the mail seem to come from?
12#rewriteDomain=y 12#rewriteDomain=y
13# The full hostname 13# The full hostname
14hostname=<%= @hostname %> 14hostname=<%= @mail_host %>
15TLS_CA_FILE=/etc/ssl/certs/ca-certificates.crt
16UseTLS=Yes
17UseSTARTTLS=Yes
18AuthUser=<%= @ldap_cn %>
19AuthPass=<%= @ldap_password %>