gitlab: Introduce macro library
[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     key eggs_directory          buildout:eggs-directory
24     key develop_eggs_directory  buildout:develop-eggs-directory
25     raw gitlab_repository_location          ${gitlab-repository:location}
26     raw gitlab_shell_repository_location    ${gitlab-shell-repository:location}
27
28 # program binaries
29     raw bundler_4gitlab             ${bundler-4gitlab:bundle}
30     raw dcron_bin                   ${dcron-output:crond}
31     raw git                         ${git:location}/bin/git
32     raw gunzip_bin                  ${gzip:location}/bin/gunzip
33     raw gzip_bin                    ${gzip:location}/bin/gzip
34     raw logrotate_bin               ${logrotate:location}/usr/sbin/logrotate
35     raw postgresql_location         ${postgresql92:location}
36     raw redis_binprefix             ${redis28:location}/bin
37
38 # config files
39     raw config_ru_in                ${config.ru.in:target}
40     raw database_yml_in             ${database.yml.in:target}
41     raw gitlab_parameters_cfg       ${gitlab-parameters.cfg:target}
42     raw gitlab_shell_config_yml_in  ${gitlab-shell-config.yml.in:target}
43     raw gitlab_yml_in               ${gitlab.yml.in:target}
44     raw macrolib_cfg_in             ${macrolib.cfg.in:target}
45     raw rack_attack_rb_in           ${rack_attack.rb.in:target}
46     raw resque_yml_in               ${resque.yml.in:target}
47     raw smtp_settings_rb_in         ${smtp_settings.rb.in:target}
48     raw unicorn_rb_in               ${unicorn.rb.in:target}