Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 5686568333344768: Issue 2184 - Configure codereview setup to use PostgreSQL (Closed)

Created:
April 15, 2015, 9:06 p.m. by mathias
Modified:
May 15, 2015, 9:34 a.m.
Reviewers:
Felix Dahlke
CC:
Wladimir Palant, Fred
Visibility:
Public.

Description

Note that it is planned to migrate the Nginx setup from class rietveld to class codereview in a subsequent patch-set. Also, see https://issues.adblockplus.org/ticket/2184 for more information --

Patch Set 1 #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -8 lines) Patch
M hiera/roles/codereviewserver.yaml View 1 chunk +2 lines, -1 line 0 comments Download
A modules/codereview/manifests/init.pp View 1 chunk +89 lines, -0 lines 4 comments Download
M modules/rietveld/manifests/init.pp View 2 chunks +5 lines, -1 line 3 comments Download
M modules/rietveld/templates/settings.py.erb View 1 chunk +6 lines, -6 lines 0 comments Download

Messages

Total messages: 7
mathias
April 15, 2015, 9:06 p.m. (2015-04-15 21:06:09 UTC) #1
Felix Dahlke
http://codereview.adblockplus.org/5686568333344768/diff/5629499534213120/modules/codereview/manifests/init.pp File modules/codereview/manifests/init.pp (right): http://codereview.adblockplus.org/5686568333344768/diff/5629499534213120/modules/codereview/manifests/init.pp#newcode45 modules/codereview/manifests/init.pp:45: $database_account = hiera('codereview::database_account', 'rietveld'), Should we really use defaults ...
April 22, 2015, 5:32 a.m. (2015-04-22 05:32:22 UTC) #2
mathias
http://codereview.adblockplus.org/5686568333344768/diff/5629499534213120/modules/codereview/manifests/init.pp File modules/codereview/manifests/init.pp (right): http://codereview.adblockplus.org/5686568333344768/diff/5629499534213120/modules/codereview/manifests/init.pp#newcode45 modules/codereview/manifests/init.pp:45: $database_account = hiera('codereview::database_account', 'rietveld'), On 2015/04/22 05:32:23, Felix H. ...
April 23, 2015, 4:28 p.m. (2015-04-23 16:28:49 UTC) #3
Felix Dahlke
Sorry for the delay. http://codereview.adblockplus.org/5686568333344768/diff/5629499534213120/modules/rietveld/manifests/init.pp File modules/rietveld/manifests/init.pp (right): http://codereview.adblockplus.org/5686568333344768/diff/5629499534213120/modules/rietveld/manifests/init.pp#newcode8 modules/rietveld/manifests/init.pp:8: $database = hiera('rietveld::database', { On ...
May 11, 2015, 8:10 p.m. (2015-05-11 20:10:44 UTC) #4
mathias
On 2015/05/11 20:10:44, Felix H. Dahlke wrote: > So you mean you'd want to move ...
May 13, 2015, 9:39 a.m. (2015-05-13 09:39:45 UTC) #5
Felix Dahlke
On 2015/05/13 09:39:45, matze wrote: > On 2015/05/11 20:10:44, Felix H. Dahlke wrote: > > ...
May 13, 2015, 11:45 a.m. (2015-05-13 11:45:04 UTC) #6
Felix Dahlke
May 13, 2015, 11:45 a.m. (2015-05-13 11:45:19 UTC) #7
On 2015/05/13 11:45:04, Felix H. Dahlke wrote:
> On 2015/05/13 09:39:45, matze wrote:
> > On 2015/05/11 20:10:44, Felix H. Dahlke wrote:
> > 
> > > So you mean you'd want to move away from private-stub in the long run and
> use
> > > defaults instead?
> > 
> > Well, I'd love to get rid of it, but that's not realistic (for quite a
while,
> at
> > least), especially because there's still a need for storing private files,
> where
> > we'd need an alternative approach then.
> > 
> > However, as we've discussed last year, there's a lot of possible
improvements
> to
> > the way we write our modules - in order to increase robustness, comply more
> with
> > the DRY principle, ease the understanding and so on. We have agreed that
> writing
> > non-ABP-specific modules (like rietveld, but unlike codereviewserver to pick
> up
> > this very example here) as if they are meant to become published as
standalone
> > ones. While that's not really the plan, it's a pretty good guideline to sum
up
> a
> > lot of improvements.
> > 
> > In this context; I believe that a good module should be able to become set
up
> > and running with as less effort as possible. Thus using suitable defaults is
> > probably a key factor.
> 
> Alright, SQLite and that generic database name are indeed reasonable defaults
> that doesn't necessarily have to be overwritten.

Sorry, forgot the LGTM :D

Powered by Google App Engine
This is Rietveld