From 985642e8ff609dcee9eb39f3e28409c9fe1b9c77 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Tue, 24 Sep 2019 10:13:36 +0200 Subject: [PATCH] Remove roles/mdapi since it's not deployed in openshift Signed-off-by: Pierre-Yves Chibon --- roles/mdapi/tasks/main.yml | 44 -------------------------------- roles/mdapi/templates/mdapi.cfg | 14 ---------- roles/mdapi/templates/mdapi.cron | 4 --- 3 files changed, 62 deletions(-) delete mode 100644 roles/mdapi/tasks/main.yml delete mode 100644 roles/mdapi/templates/mdapi.cfg delete mode 100644 roles/mdapi/templates/mdapi.cron diff --git a/roles/mdapi/tasks/main.yml b/roles/mdapi/tasks/main.yml deleted file mode 100644 index ac4dacd1f0..0000000000 --- a/roles/mdapi/tasks/main.yml +++ /dev/null @@ -1,44 +0,0 @@ ---- -# Configuration for the mdapi webapp - -- name: install needed packages - dnf: pkg={{ item }} state=present - with_items: - - mdapi - - python3-fedmsg-core - - policycoreutils-python-utils - tags: - - mdapi - - packages - -- name: create all the directory for the configuration file - file: state=directory path=/etc/mdapi - tags: - - mdapi - - config - -- name: Install the meta-data fetch cron job - when: inventory_hostname.startswith(('mdapi01')) - template: - src: "{{ item | basename }}" - dest: "{{ item }}" - with_items: - - /etc/cron.d/mdapi.cron - - /etc/mdapi/mdapi.cfg - tags: - - mdapi - - config - -- name: stop apache service - service: name=httpd enabled=no state=stopped - ignore_errors: true - tags: - - mdapi - - service - -- name: start the mdapi service - service: name=mdapi enabled=yes state=started - ignore_errors: true - tags: - - mdapi - - service diff --git a/roles/mdapi/templates/mdapi.cfg b/roles/mdapi/templates/mdapi.cfg deleted file mode 100644 index c9fae98cad..0000000000 --- a/roles/mdapi/templates/mdapi.cfg +++ /dev/null @@ -1,14 +0,0 @@ -HOST = '*' -PORT = '8080' -PREFIX = '/mdapi' - -{% if env == 'staging' %} -KOJI_REPO = 'https://koji.stg.fedoraproject.org/repos/' -DL_SERVER = 'http://dl.phx2.fedoraproject.org' -{% else %} -KOJI_REPO = 'https://koji.fedoraproject.org/repos/' -DL_SERVER = 'http://dl.phx2.fedoraproject.org' -{% endif %} - -# The koji cert doesn't match its host -DL_VERIFY = False diff --git a/roles/mdapi/templates/mdapi.cron b/roles/mdapi/templates/mdapi.cron deleted file mode 100644 index 72e8ad5dc6..0000000000 --- a/roles/mdapi/templates/mdapi.cron +++ /dev/null @@ -1,4 +0,0 @@ -# Fetches repo metadata for mdapi -# -*/20 * * * * root /usr/bin/mdapi-get_repo_md /etc/mdapi/mdapi.cfg |& grep -vi warning > /dev/null -