From cd3f27298dfb809588c7192a922fa4a00a081037 Mon Sep 17 00:00:00 2001
From: "James E. Blair" <jeblair@hp.com>
Date: Tue, 26 Aug 2014 10:48:24 -0700
Subject: [PATCH] Make enable notifications a flag

So that it can be disabled.

Change-Id: I04d20b491cfa0c897160d9fc78c37a164cd09122
---
 manifests/application.pp      | 3 ++-
 templates/storyboard.conf.erb | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/manifests/application.pp b/manifests/application.pp
index 7b960ad..15d0bdd 100644
--- a/manifests/application.pp
+++ b/manifests/application.pp
@@ -40,7 +40,8 @@ class storyboard::application (
   $rabbitmq_port          = 5672,
   $rabbitmq_vhost         = '/',
   $rabbitmq_user          = 'storyboard',
-  $rabbitmq_user_password = 'changemetoo'
+  $rabbitmq_user_password = 'changemetoo',
+  $enable_notifications   = 'True'
 ) {
 
   # Variables
diff --git a/templates/storyboard.conf.erb b/templates/storyboard.conf.erb
index d2183e9..8a39660 100644
--- a/templates/storyboard.conf.erb
+++ b/templates/storyboard.conf.erb
@@ -48,7 +48,7 @@ refresh_token_ttl = <%= @refresh_token_ttl %>
 
 # Enable notifications. This feature drives deferred processing, reporting,
 # and subscriptions.
-enable_notifications = True
+enable_notifications = <%= @enable_notifications %>
 
 [database]
 # This line MUST be changed to actually run storyboard