From 31b043c3fb14269d607ee524f39f8e758d2c503b Mon Sep 17 00:00:00 2001
From: Zara <zara.zaimeche@codethink.co.uk>
Date: Wed, 16 Mar 2016 10:48:23 +0000
Subject: [PATCH] Add sender email for storyboard.openstack.org

This patch updates the sender email from the default
no-reply@storyboard.openstack.org to
storyboard@storyboard.openstack.org , as the former user is not
recognised. By doing it here, we avoid changing the global defaults,
as per the comments in this patch:
https://review.openstack.org/#/c/293080/

Change-Id: Ic4d12ab42687aaf4d0157aa5155ad7d81b94bacb
---
 manifests/site.pp                                 | 1 +
 modules/openstack_project/manifests/storyboard.pp | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/manifests/site.pp b/manifests/site.pp
index 8f8f0e8253..4f98931c9c 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -614,6 +614,7 @@ node 'storyboard.openstack.org' {
       "https://${::fqdn}",
       'http://docs-draft.openstack.org',
     ],
+    sender_email_address => 'storyboard@storyboard.openstack.org',
   }
 }
 
diff --git a/modules/openstack_project/manifests/storyboard.pp b/modules/openstack_project/manifests/storyboard.pp
index b4dcdfaa40..ec08962c0a 100644
--- a/modules/openstack_project/manifests/storyboard.pp
+++ b/modules/openstack_project/manifests/storyboard.pp
@@ -15,6 +15,7 @@ class openstack_project::storyboard(
   $hostname = $::fqdn,
   $valid_oauth_clients = [$::fqdn],
   $cors_allowed_origins = ["https://${::fqdn}"],
+  $sender_email_address = undef,
 ) {
 
   class { 'project_config':
@@ -94,6 +95,7 @@ class openstack_project::storyboard(
     rabbitmq_vhost         => '/',
     rabbitmq_user          => $rabbitmq_user,
     rabbitmq_user_password => $rabbitmq_password,
+    sender_email_address   => $sender_email_address,
   }
 
   class { '::storyboard::rabbit':