) {
ensure_packages(["s-nail", "ssmtp"])
- $hostname = lookup("base_installation::real_hostname")
+ $mail_host = "mail.immae.eu"
+ $password_seed = lookup("base_installation::puppet_pass_seed")
+ $ldap_password = generate_password(24, $password_seed, "ldap")
+ $ldap_cn = lookup("base_installation::ldap_cn")
file { "/etc/ssmtp/ssmtp.conf":
ensure => "present",
# Where will the mail seem to come from?
#rewriteDomain=y
# The full hostname
-hostname=<%= @hostname %>
+hostname=<%= @mail_host %>
+TLS_CA_FILE=/etc/ssl/certs/ca-certificates.crt
+UseTLS=Yes
+UseSTARTTLS=Yes
+AuthUser=<%= @ldap_cn %>
+AuthPass=<%= @ldap_password %>
profile::postgresql::master { "postgresql master for caldance":
letsencrypt_host => $web_host,
- backup_hosts => ["backup-1"],
+ backup_hosts => [],
}
postgresql::server::db { $pg_db: