Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Leo Le Bouter
slapos
Commits
7e1b12d4
Commit
7e1b12d4
authored
Jan 02, 2020
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitlab: fix promises after commit
dddedb4f
~ Switch to monitor-promise-base
parent
a3f96bdd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
12 deletions
+19
-12
software/gitlab/buildout.hash.cfg
software/gitlab/buildout.hash.cfg
+1
-1
software/gitlab/instance-gitlab.cfg.in
software/gitlab/instance-gitlab.cfg.in
+18
-11
No files found.
software/gitlab/buildout.hash.cfg
View file @
7e1b12d4
...
...
@@ -50,7 +50,7 @@ md5sum = 0ddf4093dcf4427e5a160707e6017950
[instance-gitlab.cfg.in]
_update_hash_filename_ = instance-gitlab.cfg.in
md5sum =
d794631233626d03b04894ca6b6d8496
md5sum =
9dd764b3c90b3425b19b40da029b759c
[instance-gitlab-export.cfg.in]
_update_hash_filename_ = instance-gitlab-export.cfg.in
...
...
software/gitlab/instance-gitlab.cfg.in
View file @
7e1b12d4
...
...
@@ -30,6 +30,7 @@ parts =
service-nginx
service-postgresql
service-redis
promise-redis
service-cron
...
...
@@ -107,7 +108,7 @@ srv = ${:home}/srv
# slapos startup/service/promise scripts live here:
startup = ${:etc}/run
service = ${:etc}/service
promise.slow = ${:
promise}
.slow
promise.slow = ${:
etc}/promise
.slow
# gitlab: etc/ log/ ...
[gitlab-dir]
...
...
@@ -405,8 +406,8 @@ tune-command =
# [promise-<something>] to check <something> by url
[promise-byurl]
<= monitor-promise-base
module = check_
url_availabl
e
name =
!py! '${:_buildout_section_name_}'[8:] + '.py'
module = check_
command_execut
e
name =
${:_buildout_section_name_}.py
config-http_code = 200
...
...
@@ -447,14 +448,14 @@ depend =
${promise-postgresql:recipe}
[promise-postgresql]
<= monitor-
base-promi
se
<= monitor-
promise-ba
se
module = check_command_execute
name = promise-postgresql.py
config-command =
{{ postgresql_location }}/bin/psql
-h ${service-postgresql:pgdata-directory}
-U ${service-postgresql:superuser}
-d ${service-postgresql:dbname}
{{ postgresql_location }}/bin/psql
\
-h ${service-postgresql:pgdata-directory}
\
-U ${service-postgresql:superuser}
\
-d ${service-postgresql:dbname}
\
-c '\q'
# postgresql logs to stdout/stderr - logs are handled by slapos not us
...
...
@@ -473,7 +474,7 @@ log = ${directory:log}/redis
[service-redis]
recipe = slapos.cookbook:redis.server
wrapper = ${directory:service}/redis
promise_wrapper = ${directory:
promise}/redis
promise_wrapper = ${directory:
bin}/redis-promise
server_dir = ${redis:srv}
config_file = ${directory:etc}/redis.conf
...
...
@@ -489,6 +490,11 @@ server_bin = {{ redis_binprefix }}/redis-server
depend =
${logrotate-entry-redis:recipe}
[promise-redis]
<= monitor-promise-base
module = check_command_execute
name = promise-redis.py
config-command = ${service-redis:promise_wrapper}
# NOTE slapos.cookbook:redis.server setups promise automatically
...
...
@@ -536,7 +542,7 @@ depend =
<= promise-byurl
# http://localhost/users/statics.css will not redirect to /users/sign_in anymore because of this commit:
# https://lab.nexedi.com/nexedi/gitlab-workhorse/commit/c81f109a62fecf2a847fb17ceed012b380dab49f#c1215002e6d745f05eaaf9ee1dad7752e85d866f_318_331
config-
url =
--unix-socket ${gitlab-workhorse:socket} http://localhost/users/sign_in
config-
command = {{ curl_bin }}
--unix-socket ${gitlab-workhorse:socket} http://localhost/users/sign_in
# gitlab-workhorse logs to stdout/stderr - logs are handled by slapos not us
...
...
@@ -578,7 +584,7 @@ depend =
[promise-unicorn]
<= promise-byurl
config-
url =
--unix-socket ${unicorn:socket} http://localhost/
config-
command = {{ curl_bin }}
--unix-socket ${unicorn:socket} http://localhost/
[promise-rakebase]
recipe = slapos.cookbook:wrapper
...
...
@@ -726,6 +732,7 @@ depend =
# XXX this depends on gitlab-workhorse being up
# (nginx is configured to proxy all requests to gitlab-workhorse)
config-url = ${backend-info:url}/users/sign_in
module = check_url_available
[logrotate-entry-nginx]
<= logrotate-entry
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment