aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/subsystem/mail/msmtp.pp4
-rw-r--r--templates/msmtp/msmtprc.erb2
2 files changed, 4 insertions, 2 deletions
diff --git a/manifests/subsystem/mail/msmtp.pp b/manifests/subsystem/mail/msmtp.pp
index 11e6e3f..550b415 100644
--- a/manifests/subsystem/mail/msmtp.pp
+++ b/manifests/subsystem/mail/msmtp.pp
@@ -1,4 +1,6 @@
-class nodo::subsystem::mail::msmtp {
+class nodo::subsystem::mail::msmtp(
+ $maildomain = $fqdn,
+) {
if !defined(Package['msmtp']) {
package { 'msmtp':
ensure => present,
diff --git a/templates/msmtp/msmtprc.erb b/templates/msmtp/msmtprc.erb
index 50fd71a..855ebe7 100644
--- a/templates/msmtp/msmtprc.erb
+++ b/templates/msmtp/msmtprc.erb
@@ -2,4 +2,4 @@ account default
host localhost
port 25
auto_from on
-maildomain <%= scope.lookupvar('::fqdn') %>
+maildomain <%= @maildomain %>