diff --git a/modules/zuul/manifests/init.pp b/modules/zuul/manifests/init.pp index 18b21528ef..26525f826a 100644 --- a/modules/zuul/manifests/init.pp +++ b/modules/zuul/manifests/init.pp @@ -34,6 +34,10 @@ class zuul ( $statsd_host = '', $git_email = '', $git_name = '', + $smtp_host = 'localhost', + $smtp_port = 25, + $smtp_default_from = "zuul@${::fqdn}", + $smtp_default_to = "zuul.reports@${::fqdn}", $swift_authurl = '', $swift_user = '', $swift_key = '', diff --git a/modules/zuul/templates/zuul.conf.erb b/modules/zuul/templates/zuul.conf.erb index f2f840ddc1..75534cad61 100644 --- a/modules/zuul/templates/zuul.conf.erb +++ b/modules/zuul/templates/zuul.conf.erb @@ -41,3 +41,11 @@ region_name=<%= swift_region_name %> default_container=<%= swift_default_container %> default_logserver_prefix=<%= swift_default_logserver_prefix %> <% end -%> + +<% if smtp_host != "" -%> +[smtp] +server=<%= smtp_host %> +port=<%= smtp_port %> +default_from=<%= smtp_default_from %> +default_to=<%= smtp_default_to %> +<% end -%>