instance.cfg.in 2.16 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
# GitLab "switch-softwaretype" instance
[buildout]
parts = switch-softwaretype

# std stuff for slapos instance
eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true


[switch-softwaretype]
recipe = slapos.cookbook:softwaretype
default = $${instance-gitlab.cfg:rendered}
# TODO -export, -import, -pull-backup


[instance-gitlab.cfg]
recipe  = slapos.recipe.template:jinja2
mode    = 0644
template= ${instance-gitlab.cfg.in:target}
rendered= $${buildout:directory}/instance-gitlab.cfg
context =
23 24
    import os os
    import pwd pwd
25
    import multiprocessing multiprocessing
26

27 28
    key eggs_directory          buildout:eggs-directory
    key develop_eggs_directory  buildout:develop-eggs-directory
29 30
    raw gitlab_repository_location          ${gitlab-repository:location}
    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 39 40
    raw gunzip_bin                  ${gzip:location}/bin/gunzip
    raw gzip_bin                    ${gzip:location}/bin/gzip
    raw logrotate_bin               ${logrotate:location}/usr/sbin/logrotate
41
    raw postgresql_location         ${postgresql92:location}
Kirill Smelkov's avatar
Kirill Smelkov committed
42
    raw redis_binprefix             ${redis28:location}/bin
43 44 45 46

# config files
    raw config_ru_in                ${config.ru.in:target}
    raw database_yml_in             ${database.yml.in:target}
47
    raw gitlab_parameters_cfg       ${gitlab-parameters.cfg:target}
48 49
    raw gitlab_shell_config_yml_in  ${gitlab-shell-config.yml.in:target}
    raw gitlab_yml_in               ${gitlab.yml.in:target}
50
    raw macrolib_cfg_in             ${macrolib.cfg.in:target}
51 52 53 54
    raw rack_attack_rb_in           ${rack_attack.rb.in:target}
    raw resque_yml_in               ${resque.yml.in:target}
    raw smtp_settings_rb_in         ${smtp_settings.rb.in:target}
    raw unicorn_rb_in               ${unicorn.rb.in:target}