From d2852466f2961f9af46057f9410b5d96457337f8 Mon Sep 17 00:00:00 2001 From: mh Date: Mon, 20 May 2013 21:56:53 +0200 Subject: add a simple dashboard setup --- templates/master/dashboard/database.yml.erb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 templates/master/dashboard/database.yml.erb (limited to 'templates/master/dashboard/database.yml.erb') diff --git a/templates/master/dashboard/database.yml.erb b/templates/master/dashboard/database.yml.erb new file mode 100644 index 0000000..df7a376 --- /dev/null +++ b/templates/master/dashboard/database.yml.erb @@ -0,0 +1,8 @@ +production: + adapter: mysql + database: 'dashboard', + host: 'localhost' + username: 'dashboard' + password: '<%= mysql_password %>' + encoding: utf8 + -- cgit v1.2.3 From e7268a8b4dc50898bbcc0701231bb0ca64644b6f Mon Sep 17 00:00:00 2001 From: mh Date: Mon, 20 May 2013 22:19:35 +0200 Subject: fix template --- templates/master/dashboard/database.yml.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/master/dashboard/database.yml.erb') diff --git a/templates/master/dashboard/database.yml.erb b/templates/master/dashboard/database.yml.erb index df7a376..f501c33 100644 --- a/templates/master/dashboard/database.yml.erb +++ b/templates/master/dashboard/database.yml.erb @@ -1,6 +1,6 @@ production: adapter: mysql - database: 'dashboard', + database: 'dashboard' host: 'localhost' username: 'dashboard' password: '<%= mysql_password %>' -- cgit v1.2.3 From c2ae508d3ee3719c98767cc8a09e0bab52ff0f58 Mon Sep 17 00:00:00 2001 From: mh Date: Mon, 20 May 2013 22:31:38 +0200 Subject: use ip instead of hostname --- templates/master/dashboard/database.yml.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/master/dashboard/database.yml.erb') diff --git a/templates/master/dashboard/database.yml.erb b/templates/master/dashboard/database.yml.erb index f501c33..f871e72 100644 --- a/templates/master/dashboard/database.yml.erb +++ b/templates/master/dashboard/database.yml.erb @@ -1,7 +1,7 @@ production: adapter: mysql database: 'dashboard' - host: 'localhost' + host: '127.0.0.1' username: 'dashboard' password: '<%= mysql_password %>' encoding: utf8 -- cgit v1.2.3 From f7a31af7c4c44ec11ff1fc61c466c4476e9f093c Mon Sep 17 00:00:00 2001 From: mh Date: Thu, 5 Dec 2013 09:53:51 +0100 Subject: make it possible to consume an external database --- templates/master/dashboard/database.yml.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/master/dashboard/database.yml.erb') diff --git a/templates/master/dashboard/database.yml.erb b/templates/master/dashboard/database.yml.erb index f871e72..5c39db5 100644 --- a/templates/master/dashboard/database.yml.erb +++ b/templates/master/dashboard/database.yml.erb @@ -1,8 +1,8 @@ production: adapter: mysql database: 'dashboard' - host: '127.0.0.1' + host: '<%= @mysql_host %>' username: 'dashboard' - password: '<%= mysql_password %>' + password: '<%= @mysql_password %>' encoding: utf8 -- cgit v1.2.3