Este commit introduce varias mejoras en los roles de Ansible para Koji: - **Rol koji_hub:** - Se reemplazó `lineinfile` con una plantilla completa para `hub.conf` para mejorar la legibilidad y mantenibilidad. - Se aseguró la instalación del paquete `python3-koji-hub-plugins` para soportar el plugin `echo`. - Se eliminó una tarea `blockinfile` redundante que duplicaba la configuración de la base de datos en `hub.conf`. - Se rehabilitó el plugin `echo` en `hub.conf` después de asegurar su disponibilidad. - **Rol postgresql:** - Se modificó la configuración de `pg_hba.conf` para iterar correctamente sobre todos los hosts en el grupo `kojihub`, asegurando que todas las instancias del hub puedan conectarse a la base de datos. - **Rol dist_git:** - Se implementó el etiquetado persistente de contextos SELinux para los directorios de `dist-git` usando `semanage fcontext` y `restorecon`, asegurando que los contextos persistan tras reetiquetados del sistema de archivos. - **Rol common:** - Se mejoró la seguridad en la generación de claves GPG usando un archivo temporal para el script por lotes, el cual se elimina de forma segura después de la generación de la clave. - **Configuración Global:** - Se introdujo la variable `koji_source_script_path` en `vars/default.yaml` para centralizar la ruta del script `mxos-get-sources.bash`, eliminando rutas hardcodeadas en `kojid_allowed_scms` y las tareas de `kojid`. - **Documentación:** - Se actualizó `docs/instalación.rst` para reflejar los cambios en la configuración de Dist-Git, plugins y variables.
63 lines
No EOL
1.6 KiB
Django/Jinja
63 lines
No EOL
1.6 KiB
Django/Jinja
[hub]
|
|
|
|
## ConfigParser style config file, similar to ini files
|
|
## https://docs.python.org/library/configparser.html
|
|
|
|
## Basic options ##
|
|
DBName = {{ koji_db_name }}
|
|
DBUser = {{ koji_db_user }}
|
|
DBHost = {{ koji_db_host }}
|
|
DBPass = {{ koji_db_password }}
|
|
KojiDir = {{ koji_top_dir }}
|
|
|
|
## Auth-related options ##
|
|
# CheckClientIP = True
|
|
|
|
## Kerberos authentication options ##
|
|
# ProxyPrincipals = koji/kojiweb@EXAMPLE.COM
|
|
# HostPrincipalFormat = compile/%s@EXAMPLE.COM
|
|
# AllowedKrbRealms = *
|
|
# DisableURLSessions = False
|
|
|
|
## SSL client certificate auth configuration ##
|
|
# The client username is the common name of the subject of their client certificate
|
|
DNUsernameComponent = CN
|
|
# ProxyDNs is used to allow a specific user (usually the web interface) to act as others
|
|
# This should match the DN of the 'kojiweb' certificate
|
|
ProxyDNs = /C={{ koji_cert_country }}/ST={{ koji_cert_state }}/L={{ koji_cert_locality }}/O={{ koji_cert_organization }}/CN={{ koji_hub_fqdn }}
|
|
|
|
## Other options ##
|
|
LoginCreatesUser = On
|
|
KojiWebURL = {{ koji_url }}
|
|
EmailDomain = {{ koji_email_domain | default('mx-os.mx') }}
|
|
NotifyOnSuccess = False
|
|
NotifyOnFailure = False
|
|
DisableNotifications = False
|
|
|
|
## Resource limits ##
|
|
# RLIMIT_AS =
|
|
# RLIMIT_CORE =
|
|
# RLIMIT_CPU =
|
|
# RLIMIT_DATA =
|
|
# RLIMIT_FSIZE =
|
|
# RLIMIT_MEMLOCK =
|
|
# RLIMIT_NOFILE =
|
|
# RLIMIT_NPROC =
|
|
# RLIMIT_OFILE =
|
|
# RLIMIT_RSS =
|
|
# RLIMIT_STACK =
|
|
|
|
## MemoryWarnThreshold = 5000
|
|
## MaxRequestLength = 4194304
|
|
|
|
## Extended features
|
|
# EnableMaven = False
|
|
# EnableWin = False
|
|
|
|
## Koji hub plugins
|
|
PluginPath = /usr/lib/koji-hub-plugins
|
|
Plugins = echo
|
|
|
|
## Debugging
|
|
KojiDebug = On
|
|
LogLevel = INFO |