Permalink
Browse files

Merge pull request #16 from cjAdvertising/mail-from-fqdn

Use node fqdn to construct default mail-from attribute.
  • Loading branch information...
2 parents de0953d + 1ff2f8a commit f09e7af715b4d72d3058232f5077a39092fb4fc4 @apsoto committed Oct 31, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 attributes/default.rb
View
@@ -4,7 +4,7 @@
default[:monit][:poll_start_delay] = 120
default[:monit][:mail_format][:subject] = "$SERVICE $EVENT"
-default[:monit][:mail_format][:from] = "monit@example.com"
+default[:monit][:mail_format][:from] = "monit@#{node['fqdn']}"
default[:monit][:mail_format][:message] = <<-EOS
Monit $ACTION $SERVICE at $DATE on $HOST: $DESCRIPTION.
Yours sincerely,
@@ -21,4 +21,4 @@
default[:monit][:address] = "localhost"
default[:monit][:ssl] = false
default[:monit][:cert] = "/etc/monit/monit.pem"
-default[:monit][:allow] = ["localhost"]
+default[:monit][:allow] = ["localhost"]

0 comments on commit f09e7af

Please sign in to comment.