From 4442a309aa0119f247d8a1b688ee325938f997a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Mon, 4 Dec 2023 12:04:45 +0100 Subject: [PATCH] Use the fedora-messaging-git-hook package on batcave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aurélien Bompard --- roles/batcave/tasks/main.yml | 6 ++++-- roles/batcave/templates/batcave-messaging.toml | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/roles/batcave/tasks/main.yml b/roles/batcave/tasks/main.yml index 1c4797643b..4582ef5bda 100644 --- a/roles/batcave/tasks/main.yml +++ b/roles/batcave/tasks/main.yml @@ -200,8 +200,10 @@ # This is another script to announce commits, this time to the fedmsg bus # -- name: install fedmsg-announce-commits script - copy: src=fedmsg-announce-commits.py dest=/usr/local/bin/fedmsg-announce-commits.py mode=0755 +- name: install packages needed + package: + name: fedora-messaging-git-hook + state: present tags: - batcave - config diff --git a/roles/batcave/templates/batcave-messaging.toml b/roles/batcave/templates/batcave-messaging.toml index 4dfc9c32af..8f551458d7 100644 --- a/roles/batcave/templates/batcave-messaging.toml +++ b/roles/batcave/templates/batcave-messaging.toml @@ -21,3 +21,7 @@ certfile = "/etc/pki/rabbitmq/batcave.crt" [client_properties] app = "batcave" + +[consumer_config] +with_namespace = false +url_template = "https://{{ env_suffix }}pagure.io/fedora-infra/{repo}/c/{rev}?branch={branch}"