2015-07-02 05:38:43 -05:00
|
|
|
#
|
|
|
|
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
|
|
|
|
#
|
|
|
|
|
|
|
|
'''
|
|
|
|
This Fedora base platform module exports platform related constants.
|
|
|
|
'''
|
|
|
|
|
|
|
|
# Fallback to default constant definitions
|
2018-04-05 02:21:16 -05:00
|
|
|
from __future__ import absolute_import
|
|
|
|
|
2015-07-02 05:38:43 -05:00
|
|
|
from ipaplatform.redhat.constants import RedHatConstantsNamespace
|
2019-02-26 06:59:06 -06:00
|
|
|
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,)
|
2015-07-02 05:38:43 -05:00
|
|
|
|
|
|
|
|
|
|
|
class FedoraConstantsNamespace(RedHatConstantsNamespace):
|
2018-02-06 03:05:49 -06:00
|
|
|
# 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"
|
|
|
|
|
2019-02-26 06:59:06 -06:00
|
|
|
if HAS_NFS_CONF:
|
|
|
|
SECURE_NFS_VAR = None
|
2015-07-02 05:38:43 -05:00
|
|
|
|
|
|
|
constants = FedoraConstantsNamespace()
|