instance.cfg.in 2.9 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 bzip2_location              ${bzip2:location}
35
    raw bundler_4gitlab             ${bundler-4gitlab:bundle}
36
    raw curl_bin                    ${curl:location}/bin/curl
37
    raw dcron_bin                   ${dcron-output:crond}
38
    raw git                         ${git:location}/bin/git
39 40
    raw git_location                ${git:location}
    raw gitlab_workhorse            ${gitlab-workhorse:location}/gitlab-workhorse
41 42
    raw gunzip_bin                  ${gzip:location}/bin/gunzip
    raw gzip_bin                    ${gzip:location}/bin/gzip
43
    raw gzip_location               ${gzip:location}
44
    raw logrotate_bin               ${logrotate:location}/usr/sbin/logrotate
45 46 47
    raw nginx_bin                   ${nginx-output:nginx}
    raw nginx_mime_types            ${nginx-output:mime}
    raw openssl_bin                 ${openssl-output:openssl}
48
    raw postgresql_location         ${postgresql92:location}
Kirill Smelkov's avatar
Kirill Smelkov committed
49
    raw redis_binprefix             ${redis28:location}/bin
50
    raw ruby_location               ${bundler-4gitlab:ruby-location}
51
    raw watcher_sigkill             ${watcher-sigkill:rendered}
52 53 54

# config files
    raw database_yml_in             ${database.yml.in:target}
55
    raw gitconfig_in                ${gitconfig.in:target}
56
    raw gitlab_parameters_cfg       ${gitlab-parameters.cfg:target}
57
    raw gitlab_shell_config_yml_in  ${gitlab-shell-config.yml.in:target}
58
    raw gitlab_unicorn_startup_in   ${gitlab-unicorn-startup.in:target}
59
    raw gitlab_yml_in               ${gitlab.yml.in:target}
60
    raw macrolib_cfg_in             ${macrolib.cfg.in:target}
61 62
    raw nginx_conf_in               ${nginx.conf.in:target}
    raw nginx_gitlab_http_conf_in   ${nginx-gitlab-http.conf.in:target}
63 64 65 66
    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}