diff --git a/manifests/application.pp b/manifests/application.pp index a0b3adf..ea1782a 100644 --- a/manifests/application.pp +++ b/manifests/application.pp @@ -54,6 +54,11 @@ class storyboard::application ( $enable_cron = 'True', + $enable_email = 'True', + $sender_email_address = 'no-reply@storyboard.openstack.org', + $smtp_host = 'localhost', + $smtp_port = 25, + ) { # Variables diff --git a/templates/storyboard.conf.erb b/templates/storyboard.conf.erb index f1b534a..f046ff4 100644 --- a/templates/storyboard.conf.erb +++ b/templates/storyboard.conf.erb @@ -145,3 +145,44 @@ rabbit_virtual_host = <%= @rabbitmq_vhost %> # Enable/Disable the token cleaning cron plugin. This requires cron # management to be enabled. # enable = <%= @enable_token_cleanup %> + +[plugin_email] +# Enable, or disable, the notification email plugin. +enable = <%= @enable_email %> + +# The email address from which storyboard will send its messages. +sender = <%= @sender_email_address %> + +<% if scope.lookupvar('storyboard::application::reply_to_email_address') != :undef %> + +# The email address of the Reply-To header (optional). +reply_to = <%= @reply_to_email_address %> + +<% end %> + +# The SMTP server to use. +smtp_host = <%= @smtp_host %> + +# The SMTP Server Port to connect to (default 25). +smtp_port = <%= @smtp_port %> + +# The SMTP socket timeout, in seconds +# smtp_timeout = 10 + +# The FQDN of the sending host when identifying itself to the SMTP server +# (optional). +# smtp_local_hostname = + +# Path to the SSL Keyfile, when using ESMTP. Please make sure the storyboard +# client can read this file. +# smtp_ssl_keyfile = + +# Path to the SSL Certificate, when using ESMTP. Please make sure the +# storyboard client can read this file. +# smtp_ssl_certfile = + +# Username/login for the SMTP server. +# smtp_user = + +# Password for the SMTP server. +# smtp_password =