diff --git a/roles/bodhi2/backend/tasks/main.yml b/roles/bodhi2/backend/tasks/main.yml index 1c689c959b..7afce5c4cc 100644 --- a/roles/bodhi2/backend/tasks/main.yml +++ b/roles/bodhi2/backend/tasks/main.yml @@ -246,6 +246,16 @@ - bodhi - cron +- name: bodhi-check-policies cron job. + cron: name="bodhi-check-policies" hour="*/6" minute=0 user="apache" + job="/usr/bin/bodhi-check-policies > /dev/null" + cron_file=bodhi-check-policies-job + when: inventory_hostname.startswith('bodhi-backend01') and env == "staging" + tags: + - config + - bodhi + - cron + - name: bodhi-expire-overrides cron job. cron: name="bodhi-expire-overrides" hour="*" minute=0 user="apache" job="/usr/bin/bodhi-expire-overrides /etc/bodhi/production.ini 2> /dev/null" diff --git a/roles/bodhi2/base/templates/staging.ini.j2 b/roles/bodhi2/base/templates/staging.ini.j2 index be0fe07c8b..1b69e3d2b9 100644 --- a/roles/bodhi2/base/templates/staging.ini.j2 +++ b/roles/bodhi2/base/templates/staging.ini.j2 @@ -257,6 +257,17 @@ fmn_url = https://apps.stg.fedoraproject.org/notifications/ resultsdb_url = https://taskotron.stg.fedoraproject.org/resultsdb/ resultsdb_api_url = https://taskotron.stg.fedoraproject.org/resultsdb_api/ +# Set this to True to enable gating based on policies enforced by Greenwave. If you set this to True, +# be sure to add a cron job to run the bodhi-check-policies CLI periodically. +test_gating.required = True + +# If this is set to a URL, a "More information about test gating" link will appear on update pages for users +# to click and learn more. +# test_gating.url = + +# The API url of Greenwave. +greenwave_api_url = https://greenwave.fedoraproject.org/api/v1.0 + fedmenu.url = https://apps.stg.fedoraproject.org/fedmenu fedmenu.data_url = https://apps.stg.fedoraproject.org/js/data.js