Commit adafde55 authored by Kirill Smelkov's avatar Kirill Smelkov

X Start of database.yml

parent 50793218
......@@ -41,6 +41,11 @@ log = $${directory:log}/gitlab
var = $${directory:var}/gitlab
[gitlab-database.yml]
recipe = slapos.recipe.template
url = ${database.yml.in:target}
output = $${gitlab:etc}/database.yml
# TODO log: logrotate
......@@ -100,7 +105,7 @@ command =
for i in ${gitlab-repository:location}/config/* ; do ln -s $i ; done &&
ln -s $${gitlab:etc}/unicorn.rb . &&
ln -s $${gitlab:etc}/gitlab.yml . &&
ln -s $${gitlab:etc}/database.yml . &&
ln -s $${gitlab-database.yml:output} database.yml &&
ln -s $${gitlab:etc}/resque.yml . &&
# config/initializers/
rm initializers && mkdir initializers && cd initializers &&
......
......@@ -31,6 +31,8 @@ parts =
gitlab-shell/vendor
gitlab/vendor/bundle
database.yml.in
# gems
......@@ -158,6 +160,14 @@ output = ${buildout:directory}/instance.cfg
# TODO md5
# TODO parts/database.yml.in/database.yml.in -> parts/database.yml.in
[database.yml.in]
recipe = slapos.recipe.download
download-only = true
url = ${:_profile_base_location_}/template/${:_buildout_section_name_}
# TODO md5sum
# [buildout]
# gems-directory = gemsAAA # XXX = good idea?
......
# @autogenerated XXX
# see:
# https://gitlab.com/gitlab-org/gitlab-ce/blob/master/config/database.yml.postgresql
# https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-cookbooks/gitlab/templates/default/database.yml.erb
production:
adapter: postgresql
encoding: unicode
database: gitlabhq_production
pool: 10
# username: git
# password:
# host:
# port: 5432
# socket:
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment