mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-25 08:21:05 -06:00
b553448884
IPA now uses the system-wide crypto policy for TLS ciphers on RHEL. It's also now possible to keep the default policy by setting TLS_HIGH_CIPHERS to None. Fixes: https://pagure.io/freeipa/issue/7998 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
31 lines
875 B
Python
31 lines
875 B
Python
#
|
|
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
|
|
#
|
|
|
|
'''
|
|
This Fedora base platform module exports platform related constants.
|
|
'''
|
|
|
|
# Fallback to default constant definitions
|
|
from __future__ import absolute_import
|
|
|
|
from ipaplatform.redhat.constants import RedHatConstantsNamespace
|
|
from ipaplatform.osinfo import osinfo
|
|
|
|
# Fedora 28 and earlier use /etc/sysconfig/nfs
|
|
# Fedora 30 and later use /etc/nfs.conf
|
|
# Fedora 29 has both
|
|
HAS_NFS_CONF = osinfo.version_number >= (30,)
|
|
|
|
|
|
class FedoraConstantsNamespace(RedHatConstantsNamespace):
|
|
# Fedora allows installation of Python 2 and 3 mod_wsgi, but the modules
|
|
# can't coexist. For Apache to load correct module.
|
|
MOD_WSGI_PYTHON2 = "modules/mod_wsgi.so"
|
|
MOD_WSGI_PYTHON3 = "modules/mod_wsgi_python3.so"
|
|
|
|
if HAS_NFS_CONF:
|
|
SECURE_NFS_VAR = None
|
|
|
|
constants = FedoraConstantsNamespace()
|