gitlab/database.yml: Tweak to integrate gitlab with internal postgresql
authorKirill Smelkov <kirr@nexedi.com>
Thu, 7 Jan 2016 15:39:11 +0000 (18:39 +0300)
committerKirill Smelkov <kirr@nexedi.com>
Sun, 17 Jan 2016 21:39:28 +0000 (00:39 +0300)
commita73d20f43ada093384ebe6d0500e7d1f60fba7fa
tree7ad82a07eb31ce778e24755f5ab62f42443527e2
parent2e81276b44f672b9ca026650d930fefb85723abd
gitlab/database.yml: Tweak to integrate gitlab with internal postgresql

We tweak database.yml to point to our postgresql unix socket; set
adapter to hardcoded postgresql, encoding to unicode and omit collation
(which according to omnibus-gitlab is used for mysql only).

The only instance parameter imported from omnibus is `db_pool` - how
many connection to a DB to keep open in a RoR thread/process.

XXX we use db's superuser as a user to connect. Is it ok to do even if
    the whole DB is used only for gitlab? (I think it is ok for the
    first iteration, but we'll probably need to refine this later)

/cc @kazuhiko, @jerome
software/gitlab/gitlab-parameters.cfg
software/gitlab/instance-gitlab.cfg.in
software/gitlab/template/database.yml.in