aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-06-22 12:32:11 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-06-22 12:32:11 -0300
commit8e97faad323173a9f01f4e45457278880ca2faa0 (patch)
tree50c2cc584aa068078caf947ae8c91fa140b586c0
parent0cbb1a80e4463d8e54bbd50a11593fb179ac67a5 (diff)
downloadpuppet-nodo-8e97faad323173a9f01f4e45457278880ca2faa0.tar.gz
puppet-nodo-8e97faad323173a9f01f4e45457278880ca2faa0.tar.bz2
Adds nodo::subsystem::mail::msmtp::maildomain param
-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 %>