From 974f3c32cde39ad709d9b81575bf4e3312fc620c Mon Sep 17 00:00:00 2001
From: Michael Krotscheck <krotscheck@gmail.com>
Date: Wed, 13 Aug 2014 11:34:01 -0700
Subject: [PATCH] Removed default passwords

The default passwords for the various storyboard subcomponents
as well as the init component were removed. Documentation has
also been updated.

Change-Id: I1041154b6d30722649776eca15a0f04b090ab5c8
---
 README.md                | 5 ++++-
 manifests/application.pp | 4 ++--
 manifests/init.pp        | 4 ++--
 manifests/mysql.pp       | 2 +-
 manifests/rabbit.pp      | 2 +-
 5 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/README.md b/README.md
index a0e1f07..3d6da05 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,10 @@ To install StoryBoard and configure it with sane defaults, include the
 following in your site.pp file:
 
     node default {
-        include storyboard
+        class { 'storyboard':
+            mysql_user_password    => 'changeme',
+            rabbitmq_user_password => 'changemetoo'
+        }
     }
 
 # Configuration
diff --git a/manifests/application.pp b/manifests/application.pp
index 325871a..7314a6e 100644
--- a/manifests/application.pp
+++ b/manifests/application.pp
@@ -34,13 +34,13 @@ class storyboard::application (
   $mysql_port             = 3306,
   $mysql_database         = 'storyboard',
   $mysql_user             = 'storyboard',
-  $mysql_user_password    = 'changeme',
+  $mysql_user_password,
 
   $rabbitmq_host          = 'localhost',
   $rabbitmq_port          = 5672,
   $rabbitmq_vhost         = '/',
   $rabbitmq_user          = 'storyboard',
-  $rabbitmq_user_password = 'changemetoo',
+  $rabbitmq_user_password,
   $enable_notifications   = 'True'
 ) {
 
diff --git a/manifests/init.pp b/manifests/init.pp
index 8e51432..5dfb633 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -22,10 +22,10 @@
 class storyboard (
   $mysql_database      = 'storyboard',
   $mysql_user          = 'storyboard',
-  $mysql_user_password = 'changeme',
+  $mysql_user_password,
 
   $rabbitmq_user            = 'storyboard',
-  $rabbitmq_user_password   = 'changemetoo',
+  $rabbitmq_user_password,
 
   $hostname            = $::fqdn,
   $openid_url          = 'https://login.launchpad.net/+openid',
diff --git a/manifests/mysql.pp b/manifests/mysql.pp
index 0196a6a..0443648 100644
--- a/manifests/mysql.pp
+++ b/manifests/mysql.pp
@@ -20,7 +20,7 @@
 class storyboard::mysql (
   $mysql_database      = 'storyboard',
   $mysql_user          = 'storyboard',
-  $mysql_user_password = 'changeme',
+  $mysql_user_password,
 ) {
 
   # Install MySQL
diff --git a/manifests/rabbit.pp b/manifests/rabbit.pp
index f0acc1c..b4f0d7a 100644
--- a/manifests/rabbit.pp
+++ b/manifests/rabbit.pp
@@ -20,7 +20,7 @@
 #
 class storyboard::rabbit (
   $rabbitmq_user          = 'storyboard',
-  $rabbitmq_user_password = 'changeme'
+  $rabbitmq_user_password
 ) {
 
   class { 'rabbitmq':