Bodhi: revert broken backend critpath generation bits

This doesn't work - it puts the critical path data on the
'backend', which is not where we need it to be. We need that
data in the openshift pods, there's another commit alongside
this one which tries to do that.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2023-01-20 13:53:48 -08:00
parent 863ff38481
commit 95e4480d4c
3 changed files with 0 additions and 40 deletions

View file

@ -43,9 +43,6 @@
- bodhi2/backend
- role: bodhi2/critpath
when: env == 'staging'
- role: nfs/client
mnt_dir: '/mnt/koji/ostree'
nfs_src_dir: 'fedora_ostree_content/ostree'

View file

@ -1,6 +0,0 @@
#!/bin/sh
# generate/update critical path data for Bodhi
cd /etc/bodhi/critpath
/root/releng-git/scripts/critpath.py all

View file

@ -1,31 +0,0 @@
- name: Install required packages
package:
name:
- git # for checking out critpath generation script
- python3-dnf # script uses this
state: present
tags:
- packages
- name: Create the bodhi critical path configuration directory
file:
path: /etc/bodhi/critpath
state: directory
owner: root
group: root
- name: Check out releng repo with the script in it
git:
repo: https://pagure.io/releng.git
dest: /root/releng-git
register: gitreleng
- name: Create a cron job to run the script daily
copy: src=critpath.cron dest=/etc/cron.daily/critpath owner=root group=root mode=0755
tags:
- config
- name: Do a first run of the script if it has never run
command:
cmd: /etc/cron.daily/critpath
creates: /etc/bodhi/critpath/rawhide.json