Commit a9273526 authored by Alain Takoudjou's avatar Alain Takoudjou

gitlab: fix promises after commit dddedb4f ~ Switch to monitor-promise-base

parent cf32f2ee
...@@ -50,7 +50,7 @@ md5sum = 0ddf4093dcf4427e5a160707e6017950 ...@@ -50,7 +50,7 @@ md5sum = 0ddf4093dcf4427e5a160707e6017950
[instance-gitlab.cfg.in] [instance-gitlab.cfg.in]
_update_hash_filename_ = instance-gitlab.cfg.in _update_hash_filename_ = instance-gitlab.cfg.in
md5sum = d794631233626d03b04894ca6b6d8496 md5sum = 9dd764b3c90b3425b19b40da029b759c
[instance-gitlab-export.cfg.in] [instance-gitlab-export.cfg.in]
_update_hash_filename_ = instance-gitlab-export.cfg.in _update_hash_filename_ = instance-gitlab-export.cfg.in
......
...@@ -30,6 +30,7 @@ parts = ...@@ -30,6 +30,7 @@ parts =
service-nginx service-nginx
service-postgresql service-postgresql
service-redis service-redis
promise-redis
service-cron service-cron
...@@ -107,7 +108,7 @@ srv = ${:home}/srv ...@@ -107,7 +108,7 @@ srv = ${:home}/srv
# slapos startup/service/promise scripts live here: # slapos startup/service/promise scripts live here:
startup = ${:etc}/run startup = ${:etc}/run
service = ${:etc}/service service = ${:etc}/service
promise.slow = ${:promise}.slow promise.slow = ${:etc}/promise.slow
# gitlab: etc/ log/ ... # gitlab: etc/ log/ ...
[gitlab-dir] [gitlab-dir]
...@@ -405,8 +406,8 @@ tune-command = ...@@ -405,8 +406,8 @@ tune-command =
# [promise-<something>] to check <something> by url # [promise-<something>] to check <something> by url
[promise-byurl] [promise-byurl]
<= monitor-promise-base <= monitor-promise-base
module = check_url_available module = check_command_execute
name = !py! '${:_buildout_section_name_}'[8:] + '.py' name = ${:_buildout_section_name_}.py
config-http_code = 200 config-http_code = 200
...@@ -447,14 +448,14 @@ depend = ...@@ -447,14 +448,14 @@ depend =
${promise-postgresql:recipe} ${promise-postgresql:recipe}
[promise-postgresql] [promise-postgresql]
<= monitor-base-promise <= monitor-promise-base
module = check_command_execute module = check_command_execute
name = promise-postgresql.py name = promise-postgresql.py
config-command = config-command =
{{ postgresql_location }}/bin/psql {{ postgresql_location }}/bin/psql \
-h ${service-postgresql:pgdata-directory} -h ${service-postgresql:pgdata-directory} \
-U ${service-postgresql:superuser} -U ${service-postgresql:superuser} \
-d ${service-postgresql:dbname} -d ${service-postgresql:dbname} \
-c '\q' -c '\q'
# postgresql logs to stdout/stderr - logs are handled by slapos not us # postgresql logs to stdout/stderr - logs are handled by slapos not us
...@@ -473,7 +474,7 @@ log = ${directory:log}/redis ...@@ -473,7 +474,7 @@ log = ${directory:log}/redis
[service-redis] [service-redis]
recipe = slapos.cookbook:redis.server recipe = slapos.cookbook:redis.server
wrapper = ${directory:service}/redis wrapper = ${directory:service}/redis
promise_wrapper = ${directory:promise}/redis promise_wrapper = ${directory:bin}/redis-promise
server_dir = ${redis:srv} server_dir = ${redis:srv}
config_file = ${directory:etc}/redis.conf config_file = ${directory:etc}/redis.conf
...@@ -489,6 +490,11 @@ server_bin = {{ redis_binprefix }}/redis-server ...@@ -489,6 +490,11 @@ server_bin = {{ redis_binprefix }}/redis-server
depend = depend =
${logrotate-entry-redis:recipe} ${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 # NOTE slapos.cookbook:redis.server setups promise automatically
...@@ -536,7 +542,7 @@ depend = ...@@ -536,7 +542,7 @@ depend =
<= promise-byurl <= promise-byurl
# http://localhost/users/statics.css will not redirect to /users/sign_in anymore because of this commit: # 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 # 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 # gitlab-workhorse logs to stdout/stderr - logs are handled by slapos not us
...@@ -578,7 +584,7 @@ depend = ...@@ -578,7 +584,7 @@ depend =
[promise-unicorn] [promise-unicorn]
<= promise-byurl <= promise-byurl
config-url = --unix-socket ${unicorn:socket} http://localhost/ config-command = {{ curl_bin }} --unix-socket ${unicorn:socket} http://localhost/
[promise-rakebase] [promise-rakebase]
recipe = slapos.cookbook:wrapper recipe = slapos.cookbook:wrapper
...@@ -726,6 +732,7 @@ depend = ...@@ -726,6 +732,7 @@ depend =
# XXX this depends on gitlab-workhorse being up # XXX this depends on gitlab-workhorse being up
# (nginx is configured to proxy all requests to gitlab-workhorse) # (nginx is configured to proxy all requests to gitlab-workhorse)
config-url = ${backend-info:url}/users/sign_in config-url = ${backend-info:url}/users/sign_in
module = check_url_available
[logrotate-entry-nginx] [logrotate-entry-nginx]
<= logrotate-entry <= logrotate-entry
......
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