instance.cfg.in 2.49 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
    raw git_location                ${git:location}
    raw gitlab_workhorse            ${gitlab-workhorse:location}/gitlab-workhorse
40 41 42
    raw gunzip_bin                  ${gzip:location}/bin/gunzip
    raw gzip_bin                    ${gzip:location}/bin/gzip
    raw logrotate_bin               ${logrotate:location}/usr/sbin/logrotate
43
    raw postgresql_location         ${postgresql92:location}
Kirill Smelkov's avatar
Kirill Smelkov committed
44
    raw redis_binprefix             ${redis28:location}/bin
45
    raw ruby_location               ${bundler-4gitlab:ruby-location}
46 47 48 49

# config files
    raw config_ru_in                ${config.ru.in:target}
    raw database_yml_in             ${database.yml.in:target}
50
    raw gitconfig_in                ${gitconfig.in:target}
51
    raw gitlab_parameters_cfg       ${gitlab-parameters.cfg:target}
52
    raw gitlab_shell_config_yml_in  ${gitlab-shell-config.yml.in:target}
53
    raw gitlab_unicorn_startup_in   ${gitlab-unicorn-startup.in:target}
54
    raw gitlab_yml_in               ${gitlab.yml.in:target}
55
    raw macrolib_cfg_in             ${macrolib.cfg.in:target}
56 57 58 59
    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}