mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-02-02 20:59:02 +08:00
This should update all the references we have to https://pagure.io/fedora-infrastructure to the new https://forge.fedoraproject.org/infra/tickets/ area. Do not merge this before the migration on tuesday. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
226 lines
9.6 KiB
TOML
226 lines
9.6 KiB
TOML
# This is a TOML-format file. For the spec, see https://github.com/toml-lang/toml#spec
|
|
|
|
# Secret key used to generate the CSRF token in the forms.
|
|
{% if env == 'staging' %}
|
|
secret_key = '{{ stg_anitya_secrect_key }}'
|
|
{% else %}
|
|
secret_key = '{{ anitya_secret_key }}'
|
|
{% endif %}
|
|
|
|
# Preferred HTTP scheme
|
|
preferred_url_scheme = "https"
|
|
|
|
# The lifetime of the session, in seconds.
|
|
permanent_session_lifetime = 604800
|
|
|
|
{% if env == 'staging' %}
|
|
db_url = "postgresql://{{ anitya_db_user }}:{{ anitya_stg_db_pass }}@{{ anitya_db_host }}/{{ anitya_db_name }}"
|
|
{% else %}
|
|
db_url = "postgresql://{{ anitya_db_user }}:{{ anitya_db_pass }}@{{ anitya_db_host }}/{{ anitya_db_name }}"
|
|
{% endif %}
|
|
|
|
# List of admins
|
|
anitya_web_admins = [
|
|
{% if env == 'staging' %}
|
|
"zlopez@fedoraproject.org", # zlopez stg
|
|
{% else %}
|
|
"zlopez@fedoraproject.org", # zlopez
|
|
"kevin@fedoraproject.org", # kevin
|
|
{% endif %}
|
|
]
|
|
|
|
# The email to use in the 'From' header when sending emails.
|
|
admin_email = "admin@fedoraproject.org"
|
|
|
|
# The SMTP server to send mail through
|
|
smtp_server = "smtp.example.com"
|
|
|
|
# Whether or not to send emails to MAIL_ADMIN via SMTP_SERVER when HTTP 500
|
|
# errors occur.
|
|
email_errors = false
|
|
|
|
# List of users that are not allowed to sign in
|
|
blacklisted_users = []
|
|
|
|
{% if env == 'staging' %}
|
|
# Enabled authentication backends
|
|
authlib_enabled_backends = ["Fedora", "GitHub", "Google"]
|
|
|
|
# Github OAuth backend variables
|
|
# Github OAuth app client id
|
|
# See https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app
|
|
github_client_id = "{{ anitya_stg_github_client_id }}"
|
|
# Github OAuth app client secret
|
|
# See https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app
|
|
github_client_secret = "{{ anitya_stg_github_client_secret }}"
|
|
# Github access token URL
|
|
github_access_token_url = "https://github.com/login/oauth/access_token"
|
|
# Github URL used for authorization
|
|
github_authorize_url = "https://github.com/login/oauth/authorize"
|
|
# Github URL for API
|
|
github_api_base_url = "https://api.github.com/"
|
|
# Additional arguments for Github authentication
|
|
github_client_kwargs = { scope = "user:email" }
|
|
|
|
# Fedora OAuth backend variables
|
|
# Fedora OAuth client id
|
|
# Have to be requested in a ticket on https://forge.fedoraproject.org/infra/tickets
|
|
fedora_client_id = "{{ anitya_stg_fedora_client_id }}"
|
|
# Fedora OAuth secret
|
|
# Have to be requested in a ticket on https://forge.fedoraproject.org/infra/tickets
|
|
fedora_client_secret = "{{ anitya_stg_fedora_client_secret }}"
|
|
# Fedora OAuth authentication endpoint
|
|
fedora_server_metadata_url = "https://id.stg.fedoraproject.org/.well-known/openid-configuration"
|
|
# Additional arguments for Fedora authentication
|
|
fedora_client_kwargs = { scope = "openid profile email", token_endpoint_auth_method = "client_secret_post" }
|
|
|
|
# Google OAuth backend variables
|
|
# Google OAuth client id
|
|
# See https://support.google.com/cloud/answer/6158849
|
|
google_client_id = "{{ anitya_stg_google_client_id }}"
|
|
# Google OAuth client secret
|
|
# See https://support.google.com/cloud/answer/6158849
|
|
google_client_secret = "{{ anitya_stg_google_client_secret }}"
|
|
# Google OAuth authentication endpoint
|
|
google_server_metadata_url = "https://accounts.google.com/.well-known/openid-configuration"
|
|
# Additional arguments for Google authentication
|
|
google_client_kwargs = { scope = "openid profile email" }
|
|
{% else %}
|
|
# Enabled authentication backends
|
|
authlib_enabled_backends = ["Fedora", "GitHub", "Google"]
|
|
|
|
# Github OAuth backend variables
|
|
# Github OAuth app client id
|
|
# See https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app
|
|
github_client_id = "{{ anitya_github_client_id }}"
|
|
# Github OAuth app client secret
|
|
# See https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app
|
|
github_client_secret = "{{ anitya_github_client_secret }}"
|
|
# Github access token URL
|
|
github_access_token_url = "https://github.com/login/oauth/access_token"
|
|
# Github URL used for authorization
|
|
github_authorize_url = "https://github.com/login/oauth/authorize"
|
|
# Github URL for API
|
|
github_api_base_url = "https://api.github.com/"
|
|
# Additional arguments for Github authentication
|
|
github_client_kwargs = { scope = "user:email" }
|
|
|
|
# Fedora OAuth backend variables
|
|
# Fedora OAuth client id
|
|
# Have to be requested in a ticket on https://forge.fedoraproject.org/infra/tickets
|
|
fedora_client_id = "{{ anitya_fedora_client_id }}"
|
|
# Fedora OAuth secret
|
|
# Have to be requested in a ticket on https://forge.fedoraproject.org/infra/tickets
|
|
fedora_client_secret = "{{ anitya_fedora_client_secret }}"
|
|
# Fedora OAuth authentication endpoint
|
|
fedora_server_metadata_url = "https://id.fedoraproject.org/.well-known/openid-configuration"
|
|
# Additional arguments for Fedora authentication
|
|
fedora_client_kwargs = { scope = "openid profile email", token_endpoint_auth_method = "client_secret_post" }
|
|
|
|
# Google OAuth backend variables
|
|
# Google OAuth client id
|
|
# See https://support.google.com/cloud/answer/6158849
|
|
google_client_id = "{{ anitya_google_client_id }}"
|
|
# Google OAuth client secret
|
|
# See https://support.google.com/cloud/answer/6158849
|
|
google_client_secret = "{{ anitya_google_client_secret }}"
|
|
# Google OAuth authentication endpoint
|
|
google_server_metadata_url = "https://accounts.google.com/.well-known/openid-configuration"
|
|
# Additional arguments for Google authentication
|
|
google_client_kwargs = { scope = "openid profile email" }
|
|
{% endif %}
|
|
|
|
# Default regular expression used for backend
|
|
default_regex = """\
|
|
(?i)%(name)s(?:[-_]?(?:minsrc|src|source))?[-_]([^-/_\\s]+?)(?:[-_]\
|
|
(?:minsrc|src|source|asc|release))?\\.(?:tar|t[bglx]z|tbz2|zip)\
|
|
"""
|
|
|
|
# Github access token
|
|
{% if env == 'staging' %}
|
|
github_access_token = "{{ github_stg_release_monitoring }}"
|
|
{% else %}
|
|
github_access_token = "{{ github_prod_release_monitoring }}"
|
|
{% endif %}
|
|
|
|
# Error threshold
|
|
check_error_threshold = 100
|
|
|
|
# Configurable links to package repositories for package mappings in distributions
|
|
# If you want to add any new distribution just add a new entry to this section
|
|
# %s will be filled in HTML template by the name of package mapping
|
|
[distro_mapping_links]
|
|
AlmaLinux = "https://git.almalinux.org/rpms/%s"
|
|
Alpine = "https://pkgs.alpinelinux.org/packages?name=%s"
|
|
ALT = "https://packages.altlinux.org/en/search/?branch=sisyphus&q=%s"
|
|
"AOSC OS" = "https://packages.aosc.io/packages/%s"
|
|
"Arch Linux" = "https://archlinux.org/packages/?q=%s"
|
|
"Arch Linux AUR" = "https://aur.archlinux.org/packages/%s"
|
|
"Buildroot" = "https://git.buildroot.net/buildroot/tree/package/%s"
|
|
"Chimera Linux" = "https://pkgs.chimera-linux.org/packages?name=%s"
|
|
Chromebrew = "https://github.com/chromebrew/chromebrew/blob/master/packages/%s.rb"
|
|
"Clear Linux" = "https://www.clearlinux.org/software/bundle/%s.html"
|
|
COPR = "https://copr.fedorainfracloud.org/coprs/%s/"
|
|
CRUX = "https://crux.nu/portdb/?a=search&q=%s"
|
|
"CPE NVD NIST" = "https://nvd.nist.gov/products/cpe/search/results?keyword=%s"
|
|
"Cygwin" = "https://cygwin.com/cgit/cygwin-packages/%s/tree"
|
|
Debian = "https://tracker.debian.org/pkg/%s"
|
|
"Devuan" = "https://pkginfo.devuan.org/cgi-bin/policy-query.html?c=package&q=^%s$&x=submit"
|
|
Docker = "https://hub.docker.com/r/%s"
|
|
F-Droid = "https://f-droid.org/packages/%s"
|
|
Fedora = "https://src.fedoraproject.org/rpms/%s"
|
|
"Fedora EPEL" = "https://src.fedoraproject.org/rpms/%s"
|
|
Flathub = "https://flathub.org/apps/details/%s"
|
|
"FreeBSD" = "https://ports.freebsd.org/cgi/ports.cgi?query=^%s-&stype=name"
|
|
"Freedesktop SDK" = "https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/blob/master/elements/components/%s.bst"
|
|
"FZUG" = "https://github.com/FZUG/repo/tree/master/rpms/%s"
|
|
Gentoo = "https://packages.gentoo.org/packages/search?q=%s"
|
|
Guix = "https://packages.guix.gnu.org/packages/%s"
|
|
Homebrew = "https://formulae.brew.sh/formula/%s#default"
|
|
IUS = "https://github.com/iusrepo/%s"
|
|
MacPorts = "https://ports.macports.org/port/%s/"
|
|
Mageia = "https://svnweb.mageia.org/packages/cauldron/%s/current/"
|
|
"Manjaro Linux" = "https://manjaristas.org/branch_compare?q=%s"
|
|
"Meson WrapDB" = "https://github.com/mesonbuild/wrapdb/blob/master/subprojects/%s.wrap"
|
|
NetBSD = "https://pkgsrc.se/search.php?so=%s"
|
|
NethServer = "https://github.com/NethServer/nethserver-%s"
|
|
"NixOS" = "https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=%s"
|
|
"OpenMandriva" = "https://github.com/OpenMandrivaAssociation/%s/"
|
|
openSUSE = "https://software.opensuse.org/package/%s"
|
|
"openSUSE Leap" = "https://software.opensuse.org/package/%s"
|
|
"openSUSE Tumbleweed" = "https://software.opensuse.org/package/%s"
|
|
PLD-Linux = "https://github.com/pld-linux/%s"
|
|
postmarketOS = "https://pkgs.postmarketos.org/packages?branch=master&name=%s"
|
|
"RPM Fusion" = "https://admin.rpmfusion.org/pkgdb/search/?term=%s"
|
|
"Rocky Linux" = "https://git.rockylinux.org/staging/rpms/%s"
|
|
Spack = "https://github.com/spack/spack/tree/develop/var/spack/repos/builtin/packages/%s"
|
|
stagex = "https://stagex.tools/packages/#%s"
|
|
Ubuntu = "https://launchpad.net/ubuntu/+source/%s"
|
|
"Ultramarine Linux" = "https://github.com/Ultramarine-Linux/pkg-%s"
|
|
UnitedRPMs = "https://github.com/UnitedRPMs/%s"
|
|
Void = "https://github.com/void-linux/void-packages/tree/master/srcpkgs/%s"
|
|
Wolfi = "https://github.com/wolfi-dev/os/blob/main/%s.yaml"
|
|
|
|
|
|
# The logging configuration, in dictConfig format.
|
|
[anitya_log_config]
|
|
version = 1
|
|
disable_existing_loggers = false
|
|
|
|
[anitya_log_config.formatters.simple]
|
|
format = "[%(asctime)s %(name)s %(levelname)s %(thread)d] %(message)s"
|
|
|
|
[anitya_log_config.handlers.console]
|
|
class = "logging.StreamHandler"
|
|
formatter = "simple"
|
|
stream = "ext://sys.stdout"
|
|
|
|
[anitya_log_config.loggers.anitya]
|
|
level = "INFO"
|
|
propagate = false
|
|
handlers = ["console"]
|
|
|
|
[anitya_log_config.root]
|
|
level = "INFO"
|
|
handlers = ["console"]
|