gitlab/nginx: Slapos'ify config and turn nginx into a service
[slapos.git] / software / gitlab / instance.cfg.in
1 # GitLab "switch-softwaretype" instance
2 [buildout]
3 parts = switch-softwaretype
4
5 # std stuff for slapos instance
6 eggs-directory = ${buildout:eggs-directory}
7 develop-eggs-directory = ${buildout:develop-eggs-directory}
8 offline = true
9
10
11 [switch-softwaretype]
12 recipe = slapos.cookbook:softwaretype
13 default = $${instance-gitlab.cfg:rendered}
14 # TODO -export, -import, -pull-backup
15
16
17 [instance-gitlab.cfg]
18 recipe  = slapos.recipe.template:jinja2
19 mode    = 0644
20 template= ${instance-gitlab.cfg.in:target}
21 rendered= $${buildout:directory}/instance-gitlab.cfg
22 context =
23     import os os
24     import pwd pwd
25     import multiprocessing multiprocessing
26
27     key eggs_directory          buildout:eggs-directory
28     key develop_eggs_directory  buildout:develop-eggs-directory
29     raw gitlab_repository_location          ${gitlab-repository:location}
30     raw gitlab_shell_repository_location    ${gitlab-shell-repository:location}
31
32 # program binaries
33     raw bash_bin                    ${bash:location}/bin/bash
34     raw bundler_4gitlab             ${bundler-4gitlab:bundle}
35     raw curl_bin                    ${curl:location}/bin/curl
36     raw dcron_bin                   ${dcron-output:crond}
37     raw git                         ${git:location}/bin/git
38     raw git_location                ${git:location}
39     raw gitlab_workhorse            ${gitlab-workhorse:location}/gitlab-workhorse
40     raw gunzip_bin                  ${gzip:location}/bin/gunzip
41     raw gzip_bin                    ${gzip:location}/bin/gzip
42     raw logrotate_bin               ${logrotate:location}/usr/sbin/logrotate
43     raw nginx_bin                   ${nginx-output:nginx}
44     raw nginx_mime_types            ${nginx-output:mime}
45     raw openssl_bin                 ${openssl-output:openssl}
46     raw postgresql_location         ${postgresql92:location}
47     raw redis_binprefix             ${redis28:location}/bin
48     raw ruby_location               ${bundler-4gitlab:ruby-location}
49     raw watcher_sigkill             ${watcher-sigkill:rendered}
50
51 # config files
52     raw config_ru_in                ${config.ru.in:target}
53     raw database_yml_in             ${database.yml.in:target}
54     raw gitconfig_in                ${gitconfig.in:target}
55     raw gitlab_parameters_cfg       ${gitlab-parameters.cfg:target}
56     raw gitlab_shell_config_yml_in  ${gitlab-shell-config.yml.in:target}
57     raw gitlab_unicorn_startup_in   ${gitlab-unicorn-startup.in:target}
58     raw gitlab_yml_in               ${gitlab.yml.in:target}
59     raw macrolib_cfg_in             ${macrolib.cfg.in:target}
60     raw nginx_conf_in               ${nginx.conf.in:target}
61     raw nginx_gitlab_http_conf_in   ${nginx-gitlab-http.conf.in:target}
62     raw rack_attack_rb_in           ${rack_attack.rb.in:target}
63     raw resque_yml_in               ${resque.yml.in:target}
64     raw smtp_settings_rb_in         ${smtp_settings.rb.in:target}
65     raw unicorn_rb_in               ${unicorn.rb.in:target}