From a9dc38163cb3e01ce0f4544d2c13df0971ff8433 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Thu, 17 Sep 2015 11:57:29 -0300 Subject: [PATCH] database: allow colab to read noosfero users table --- cookbooks/postgresql/recipes/noosfero.rb | 4 ++++ roles/database_server.rb | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/cookbooks/postgresql/recipes/noosfero.rb b/cookbooks/postgresql/recipes/noosfero.rb index 758c5d6..be8323c 100644 --- a/cookbooks/postgresql/recipes/noosfero.rb +++ b/cookbooks/postgresql/recipes/noosfero.rb @@ -14,3 +14,7 @@ execute 'createdb:noosfero' do end end +execute 'grant:noosfero:colab' do + command 'psql -c "GRANT SELECT ON users TO colab" noosfero' + user 'postgres' +end diff --git a/roles/database_server.rb b/roles/database_server.rb index 1e7118d..8e5ce1d 100644 --- a/roles/database_server.rb +++ b/roles/database_server.rb @@ -3,7 +3,7 @@ description 'Database server' run_list *[ 'recipe[postgresql]', 'recipe[redis]', - 'recipe[postgresql::colab]', - 'recipe[postgresql::gitlab]', + 'recipe[postgresql::colab]', # must come before the other apps 'recipe[postgresql::noosfero]', + 'recipe[postgresql::gitlab]', ] -- libgit2 0.21.2