Commit fd53d70e authored by Kirill Smelkov's avatar Kirill Smelkov

X get fetch works

parent ba3321d2
...@@ -10,7 +10,11 @@ ...@@ -10,7 +10,11 @@
# last updated for omnibus-gitlab 8.1.0+rc1.ce.0-24-g3021ed9 # last updated for omnibus-gitlab 8.1.0+rc1.ce.0-24-g3021ed9
# TODO recheck ) # TODO recheck )
configuration.external_url = http://lab.example.com
# TODO move to proper place and merge related from omnibus # TODO move to proper place and merge related from omnibus
# XXX https can be deduces from schema in external_url, at least not in
# separate frontend case
configuration.https = false configuration.https = false
...@@ -21,6 +25,7 @@ configuration.rate_limit_period = 60 ...@@ -21,6 +25,7 @@ configuration.rate_limit_period = 60
configuration.initial_root_password = password configuration.initial_root_password = password
configuration.email_enabled = true configuration.email_enabled = true
# XXX email_from is generated from external_url
configuration.email_from = lab@example.com configuration.email_from = lab@example.com
configuration.email_display_name = GitLab configuration.email_display_name = GitLab
configuration.email_reply_to = noreply@example.com configuration.email_reply_to = noreply@example.com
......
...@@ -16,6 +16,8 @@ parts = ...@@ -16,6 +16,8 @@ parts =
gitlab-{{ prog }} gitlab-{{ prog }}
{% endfor %} {% endfor %}
# TODO gitlab-shell - since compiled shell picks up /usr/bin/env ruby ...
gitlab-root-shadow gitlab-root-shadow
gitlab-shell-root-shadow gitlab-shell-root-shadow
...@@ -57,6 +59,7 @@ configuration.unicorn_worker_processes = {{ multiprocessing.cpu_count() + 1 }} ...@@ -57,6 +59,7 @@ configuration.unicorn_worker_processes = {{ multiprocessing.cpu_count() + 1 }}
configuration.nginx_worker_processes = {{ multiprocessing.cpu_count() }} configuration.nginx_worker_processes = {{ multiprocessing.cpu_count() }}
# for convenience # for convenience
[backend-info] [backend-info]
host = ${instance-parameter:ipv6-random} host = ${instance-parameter:ipv6-random}
...@@ -162,6 +165,7 @@ context-extra = ...@@ -162,6 +165,7 @@ context-extra =
section gitlab gitlab section gitlab gitlab
section gitlab_shell gitlab-shell section gitlab_shell gitlab-shell
section gitlab_shell_root_shadow gitlab-shell-root-shadow section gitlab_shell_root_shadow gitlab-shell-root-shadow
import urlparse urlparse
[resque.yml] [resque.yml]
<= gitlab-etc-template <= gitlab-etc-template
...@@ -216,6 +220,7 @@ template= {{ nginx_gitlab_http_conf_in }} ...@@ -216,6 +220,7 @@ template= {{ nginx_gitlab_http_conf_in }}
context-extra = context-extra =
section nginx nginx section nginx nginx
section gitlab_root_shadow gitlab-root-shadow section gitlab_root_shadow gitlab-root-shadow
section gitlab_workhorse gitlab-workhorse
section unicorn unicorn section unicorn unicorn
# TODO log: logrotate # TODO log: logrotate
...@@ -409,19 +414,28 @@ port = 0 ...@@ -409,19 +414,28 @@ port = 0
######################## ########################
# gitlab-workhorse # # gitlab-workhorse #
######################## ########################
[gitlab-workhorse] [gitlab-workhorse-dir]
recipe = slapos.cookbook:mkdirectory recipe = slapos.cookbook:mkdirectory
srv = ${directory:srv}/gitlab-workhorse srv = ${directory:srv}/gitlab-workhorse
[gitlab-workhorse]
srv = ${gitlab-workhorse-dir:srv}
socket = ${gitlab-workhorse:srv}/gitlab-workhorse.socket
# XXX -pprofListenAddr ? # XXX -pprofListenAddr ?
[service-gitlab-workhorse] [service-gitlab-workhorse]
recipe = slapos.cookbook:wrapper recipe = slapos.cookbook:wrapper
wrapper-path = ${directory:service}/gitlab-workhorse wrapper-path = ${directory:service}/gitlab-workhorse
command-line = {{ gitlab_workhorse }} command-line = {{ gitlab_workhorse }}
-listenNetwork unix -listenNetwork unix
-listenAddr ${gitlab-workhorse:srv}/gitlab-workhorse.socket -listenAddr ${gitlab-workhorse:socket}
-authSocket ${unicorn:socket} -authSocket ${unicorn:socket}
# XXX for git to be available on path
# XXX -> more general place?
environment =
PATH={{ git_location }}/bin:%(PATH)s
###################### ######################
# unicorn worker # # unicorn worker #
......
...@@ -33,6 +33,8 @@ context = ...@@ -33,6 +33,8 @@ context =
raw bundler_4gitlab ${bundler-4gitlab:bundle} raw bundler_4gitlab ${bundler-4gitlab:bundle}
raw gitlab_workhorse ${gitlab-workhorse:location}/gitlab-workhorse raw gitlab_workhorse ${gitlab-workhorse:location}/gitlab-workhorse
raw git ${git:location}/bin/git raw git ${git:location}/bin/git
# XXX git vs git_location
raw git_location ${git:location}
raw nginx_bin ${nginx-output:nginx} raw nginx_bin ${nginx-output:nginx}
raw mime_types ${nginx-output:mime} raw mime_types ${nginx-output:mime}
raw postgresql_location ${postgresql92:location} raw postgresql_location ${postgresql92:location}
......
...@@ -90,7 +90,8 @@ location = ${buildout:parts-directory}/gitlab ...@@ -90,7 +90,8 @@ location = ${buildout:parts-directory}/gitlab
repository = https://lab.nexedi.com/kirr/gitlab-shell.git repository = https://lab.nexedi.com/kirr/gitlab-shell.git
# FIXME pin gitlab-shell version properly (wrt gitlab) ? # FIXME pin gitlab-shell version properly (wrt gitlab) ?
#revision = v2.6.5-8-g6add33352316af566cec5d827981f1783c59b7f4 #revision = v2.6.5-8-g6add33352316af566cec5d827981f1783c59b7f4
branch = next #branch = next
revision = 2ad30257
location = ${buildout:parts-directory}/gitlab-shell location = ${buildout:parts-directory}/gitlab-shell
[gitlab-workhorse-repository] [gitlab-workhorse-repository]
......
...@@ -14,8 +14,10 @@ production: &base ...@@ -14,8 +14,10 @@ production: &base
## GitLab settings ## GitLab settings
gitlab: gitlab:
## Web server settings (note: host is the FQDN, do not include http://) ## Web server settings (note: host is the FQDN, do not include http://)
host: {{ backend_info.host }} {% set url = urlparse.urlparse(cfg('external_url')) %}
port: {{ backend_info.port }} {% set default_port = {'http': 80, 'https': 443} %}
host: {{ url.hostname }}
port: {{ url.port or default_port[url.scheme] }}
# TODO # TODO
#https: <%= @gitlab_https %> #https: <%= @gitlab_https %>
https: false https: false
......
...@@ -9,12 +9,8 @@ upstream gitlab { ...@@ -9,12 +9,8 @@ upstream gitlab {
server unix:{{ unicorn.socket }} fail_timeout=0; server unix:{{ unicorn.socket }} fail_timeout=0;
} }
# TODO unix socket of gitlab-git-http-server
upstream gitlab-git-http-server { upstream gitlab-git-http-server {
{# TODO reenable server unix:{{ gitlab_workhorse.socket }};
server unix:<%= node['gitlab']['gitlab-git-http-server']['listen_addr'] %>;
#}
server unix:/dev/null fail_timeout=0;
} }
{% if cfg_bool('https') and cfg_bool('nginx_redirect_http_to_https') %} {% if cfg_bool('https') and cfg_bool('nginx_redirect_http_to_https') %}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment