forked from infra/ansible
Proxies: Only monitor registry.fpo in prod
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
This commit is contained in:
parent
b0bb423a87
commit
000633d113
1 changed files with 6 additions and 0 deletions
|
|
@ -9,3 +9,9 @@ UserParameter=httpd.curl.moby,/usr/bin/curl -s --resolve registry{{env_suffix}}.
|
|||
# this is ugly, but we need to change ".stg" into "stg."
|
||||
{% set prefix = (env_suffix | regex_replace('^\.(.+)$', '\\1.')) %}
|
||||
UserParameter=httpd.curl.rmo,/usr/bin/curl -s --resolve {{ prefix }}release-monitoring.org:443:127.0.0.1 https://{{ prefix }}release-monitoring.org/ | /usr/bin/grep "Watch for releases of your favorite projects"
|
||||
|
||||
# registry monitoring is only done in prod
|
||||
{% if env != 'staging' %}
|
||||
UserParameter=httpd.curl.flatpaks,/usr/bin/curl -s --resolve registry.fedoraproject.org:443:127.0.0.1 'https://registry.fedoraproject.org/v2/_catalog?last=fedora' | /usr/bin/grep "fedora"
|
||||
UserParameter=httpd.curl.images,/usr/bin/curl -s --resolve registry.fedoraproject.org:443:127.0.0.1 'https://registry.fedoraproject.org/v2/fedora/tags/list' | /usr/bin/grep "rawhide"
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue