ODCS: Configure routing of prod composes so releng compose are handled by releng backend.

This commit is contained in:
Jan Kaluža 2020-03-20 07:11:13 +00:00 committed by Pierre-Yves Chibon
parent eb1e309954
commit ee9b3796d0
4 changed files with 38 additions and 2 deletions

28
inventory/group_vars/odcs Normal file
View file

@ -0,0 +1,28 @@
# Configs executed on releng backends must have "releng_" prefix.
odcs_raw_config_urls:
releng_fmc:
url: https://pagure.io/releng/fmc.git
config_filename: fedora-minimal-compose.conf
releng_jkaluza_test_config:
url: https://pagure.io/jkaluza-test-compose.git
config_filename: test.conf
# Default queues for general ODCS backends.
odcs_celery_queues:
- pungi_composes
- releng_raw_pungi_composes
- releng_pungi_composes
- cleanup
odcs_celery_router_config:
routing_rules:
odcs.server.celery_tasks.generate_pungi_compose:
releng_raw_pungi_composes:
source_type: 5 # "raw_config"
source: "releng_.*"
releng_pungi_composes:
source_type: [1, 2, 6, 7] # "tag", "module", "build", "pungi_compose"
owner: ["jkaluza", "mohanboddu", "humaton"]
cleanup_task: odcs.server.celery_tasks.run_cleanup
default_queue: pungi_composes

View file

@ -0,0 +1,2 @@
odcs_celery_queues: ["releng_raw_pungi_composes", "releng_pungi_composes", "cleanup"]

View file

@ -470,8 +470,14 @@ odcs-frontend01.phx2.fedoraproject.org
[odcs_frontend_stg] [odcs_frontend_stg]
odcs-frontend01.stg.phx2.fedoraproject.org odcs-frontend01.stg.phx2.fedoraproject.org
[odcs_backend] [odcs_backend:children]
odcs_backend_general
odcs_backend_releng
[odcs_backend_general]
odcs-backend01.phx2.fedoraproject.org odcs-backend01.phx2.fedoraproject.org
[odcs_backend_releng]
odcs-backend-releng01.phx2.fedoraproject.org odcs-backend-releng01.phx2.fedoraproject.org
[odcs_backend_stg] [odcs_backend_stg]

View file

@ -40,7 +40,7 @@ odcs_celery_broker_password: null
odcs_celery_broker_host: null odcs_celery_broker_host: null
odcs_celery_broker_port: null odcs_celery_broker_port: null
odcs_celery_broker_vhost: rabbitmq odcs_celery_broker_vhost: rabbitmq
odcs_celery_queues: ["pungi_composes", "pulp_composes", "cleanup"] odcs_celery_queues: ["pungi_composes", "cleanup"]
odcs_celery_router_config: null odcs_celery_router_config: null
odcs_runroot_ssh_hostnames: {"x86_64": "localhost"} odcs_runroot_ssh_hostnames: {"x86_64": "localhost"}
# The default is 24 hours # The default is 24 hours