2017-01-05 04:41:08 -06:00
|
|
|
#
|
|
|
|
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
|
|
|
|
#
|
|
|
|
|
|
|
|
"""
|
|
|
|
This Debian base platform module exports default filesystem paths as common
|
|
|
|
in Debian-based systems.
|
|
|
|
"""
|
|
|
|
|
|
|
|
# Fallback to default path definitions
|
2018-04-05 02:21:16 -05:00
|
|
|
from __future__ import absolute_import
|
|
|
|
|
2017-01-05 04:41:08 -06:00
|
|
|
from ipaplatform.base.paths import BasePathNamespace
|
|
|
|
import sysconfig
|
|
|
|
|
|
|
|
MULTIARCH = sysconfig.get_config_var('MULTIARCH')
|
|
|
|
|
|
|
|
class DebianPathNamespace(BasePathNamespace):
|
|
|
|
BIN_HOSTNAMECTL = "/usr/bin/hostnamectl"
|
|
|
|
AUTOFS_LDAP_AUTH_CONF = "/etc/autofs_ldap_auth.conf"
|
|
|
|
ETC_HTTPD_DIR = "/etc/apache2"
|
|
|
|
HTTPD_ALIAS_DIR = "/etc/apache2/nssdb"
|
|
|
|
ALIAS_CACERT_ASC = "/etc/apache2/nssdb/cacert.asc"
|
|
|
|
ALIAS_PWDFILE_TXT = "/etc/apache2/nssdb/pwdfile.txt"
|
|
|
|
HTTPD_CONF_D_DIR = "/etc/apache2/conf-enabled/"
|
|
|
|
HTTPD_IPA_KDCPROXY_CONF_SYMLINK = "/etc/apache2/conf-enabled/ipa-kdc-proxy.conf"
|
|
|
|
HTTPD_IPA_PKI_PROXY_CONF = "/etc/apache2/conf-enabled/ipa-pki-proxy.conf"
|
|
|
|
HTTPD_IPA_REWRITE_CONF = "/etc/apache2/conf-available/ipa-rewrite.conf"
|
|
|
|
HTTPD_IPA_CONF = "/etc/apache2/conf-enabled/ipa.conf"
|
|
|
|
HTTPD_NSS_CONF = "/etc/apache2/mods-available/nss.conf"
|
2018-05-21 05:46:42 -05:00
|
|
|
HTTPD_SSL_CONF = "/etc/apache2/mods-available/ssl.conf"
|
|
|
|
HTTPD_SSL_SITE_CONF = "/etc/apache2/sites-available/default-ssl.conf"
|
2017-03-14 10:24:56 -05:00
|
|
|
OLD_IPA_KEYTAB = "/etc/apache2/ipa.keytab"
|
2017-01-05 04:41:08 -06:00
|
|
|
HTTPD_PASSWORD_CONF = "/etc/apache2/password.conf"
|
|
|
|
NAMED_CONF = "/etc/bind/named.conf"
|
|
|
|
NAMED_VAR_DIR = "/var/cache/bind"
|
|
|
|
NAMED_KEYTAB = "/etc/bind/named.keytab"
|
|
|
|
NAMED_RFC1912_ZONES = "/etc/bind/named.conf.default-zones"
|
|
|
|
NAMED_ROOT_KEY = "/etc/bind/bind.keys"
|
|
|
|
NAMED_BINDKEYS_FILE = "/etc/bind/bind.keys"
|
|
|
|
NAMED_MANAGED_KEYS_DIR = "/var/cache/bind/dynamic"
|
2018-05-21 06:04:20 -05:00
|
|
|
CHRONY_CONF = "/etc/chrony/chrony.conf"
|
2017-01-05 04:41:08 -06:00
|
|
|
OPENLDAP_LDAP_CONF = "/etc/ldap/ldap.conf"
|
|
|
|
ETC_DEBIAN_VERSION = "/etc/debian_version"
|
|
|
|
IPA_P11_KIT = "/usr/local/share/ca-certificates/ipa-ca.crt"
|
|
|
|
ETC_SYSCONFIG_DIR = "/etc/default"
|
|
|
|
SYSCONFIG_AUTOFS = "/etc/default/autofs"
|
|
|
|
SYSCONFIG_DIRSRV = "/etc/default/dirsrv"
|
|
|
|
SYSCONFIG_DIRSRV_INSTANCE = "/etc/default/dirsrv-%s"
|
|
|
|
SYSCONFIG_DIRSRV_SYSTEMD = "/etc/default/dirsrv.systemd"
|
|
|
|
SYSCONFIG_IPA_DNSKEYSYNCD = "/etc/default/ipa-dnskeysyncd"
|
|
|
|
SYSCONFIG_IPA_ODS_EXPORTER = "/etc/default/ipa-ods-exporter"
|
|
|
|
SYSCONFIG_KRB5KDC_DIR = "/etc/default/krb5-kdc"
|
|
|
|
SYSCONFIG_NAMED = "/etc/default/bind9"
|
|
|
|
SYSCONFIG_NFS = "/etc/default/nfs-common"
|
|
|
|
SYSCONFIG_NTPD = "/etc/default/ntp"
|
|
|
|
SYSCONFIG_ODS = "/etc/default/opendnssec"
|
|
|
|
SYSCONFIG_PKI = "/etc/dogtag/"
|
|
|
|
SYSCONFIG_PKI_TOMCAT = "/etc/default/pki-tomcat"
|
|
|
|
SYSCONFIG_PKI_TOMCAT_PKI_TOMCAT_DIR = "/etc/dogtag/tomcat/pki-tomcat"
|
|
|
|
SYSTEMD_SYSTEM_HTTPD_D_DIR = "/etc/systemd/system/apache2.service.d/"
|
|
|
|
SYSTEMD_SYSTEM_HTTPD_IPA_CONF = "/etc/systemd/system/apache2.service.d/ipa.conf"
|
|
|
|
DNSSEC_TRUSTED_KEY = "/etc/bind/trusted-key.key"
|
2017-03-29 03:33:32 -05:00
|
|
|
GSSAPI_SESSION_KEY = "/etc/apache2/ipasession.key"
|
2017-03-14 16:48:44 -05:00
|
|
|
OLD_KRA_AGENT_PEM = "/etc/apache2/nssdb/kra-agent.pem"
|
2018-05-21 06:04:20 -05:00
|
|
|
KEYCTL = "/bin/keyctl"
|
2017-01-05 04:41:08 -06:00
|
|
|
SBIN_SERVICE = "/usr/sbin/service"
|
|
|
|
CERTMONGER_COMMAND_TEMPLATE = "/usr/lib/ipa/certmonger/%s"
|
|
|
|
UPDATE_CA_TRUST = "/usr/sbin/update-ca-certificates"
|
|
|
|
BIND_LDAP_DNS_IPA_WORKDIR = "/var/cache/bind/dyndb-ldap/ipa/"
|
|
|
|
BIND_LDAP_DNS_ZONE_WORKDIR = "/var/cache/bind/dyndb-ldap/ipa/master/"
|
2018-05-21 06:02:09 -05:00
|
|
|
LIBARCH = "/{0}".format(MULTIARCH)
|
2017-01-05 04:41:08 -06:00
|
|
|
LIBSOFTHSM2_SO = "/usr/lib/softhsm/libsofthsm2.so"
|
|
|
|
PAM_KRB5_SO = "/usr/lib/{0}/security/pam_krb5.so".format(MULTIARCH)
|
|
|
|
LIB_SYSTEMD_SYSTEMD_DIR = "/lib/systemd/system/"
|
|
|
|
DOGTAG_IPA_CA_RENEW_AGENT_SUBMIT = "/usr/lib/certmonger/dogtag-ipa-ca-renew-agent-submit"
|
|
|
|
DOGTAG_IPA_RENEW_AGENT_SUBMIT = "/usr/lib/certmonger/dogtag-ipa-renew-agent-submit"
|
2017-03-14 16:48:44 -05:00
|
|
|
CERTMONGER_DOGTAG_SUBMIT = "/usr/lib/certmonger/dogtag-submit"
|
2017-01-05 04:41:08 -06:00
|
|
|
IPA_SERVER_GUARD = "/usr/lib/certmonger/ipa-server-guard"
|
|
|
|
GENERATE_RNDC_KEY = "/bin/true"
|
|
|
|
IPA_DNSKEYSYNCD_REPLICA = "/usr/lib/ipa/ipa-dnskeysync-replica"
|
|
|
|
IPA_DNSKEYSYNCD = "/usr/lib/ipa/ipa-dnskeysyncd"
|
2017-03-14 09:43:22 -05:00
|
|
|
IPA_HTTPD_KDCPROXY = "/usr/lib/ipa/ipa-httpd-kdcproxy"
|
2017-01-05 04:41:08 -06:00
|
|
|
IPA_ODS_EXPORTER = "/usr/lib/ipa/ipa-ods-exporter"
|
2018-05-21 06:04:20 -05:00
|
|
|
IPA_HTTPD_PASSWD_READER = "/usr/lib/ipa/ipa-httpd-pwdreader"
|
2017-01-05 04:41:08 -06:00
|
|
|
HTTPD = "/usr/sbin/apache2ctl"
|
|
|
|
REMOVE_DS_PL = "/usr/sbin/remove-ds"
|
|
|
|
SETUP_DS_PL = "/usr/sbin/setup-ds"
|
2017-03-29 03:33:32 -05:00
|
|
|
FONTS_DIR = "/usr/share/fonts/truetype"
|
2017-01-05 04:41:08 -06:00
|
|
|
VAR_KERBEROS_KRB5KDC_DIR = "/var/lib/krb5kdc/"
|
|
|
|
VAR_KRB5KDC_K5_REALM = "/var/lib/krb5kdc/.k5."
|
|
|
|
CACERT_PEM = "/var/lib/krb5kdc/cacert.pem"
|
|
|
|
KRB5KDC_KADM5_ACL = "/etc/krb5kdc/kadm5.acl"
|
|
|
|
KRB5KDC_KADM5_KEYTAB = "/etc/krb5kdc/kadm5.keytab"
|
|
|
|
KRB5KDC_KDC_CONF = "/etc/krb5kdc/kdc.conf"
|
|
|
|
KDC_CERT = "/var/lib/krb5kdc/kdc.crt"
|
|
|
|
KDC_KEY = "/var/lib/krb5kdc/kdc.key"
|
|
|
|
VAR_LOG_HTTPD_DIR = "/var/log/apache2"
|
|
|
|
VAR_LOG_HTTPD_ERROR = "/var/log/apache2/error.log"
|
|
|
|
NAMED_RUN = "/var/cache/bind/named.run"
|
|
|
|
VAR_OPENDNSSEC_DIR = "/var/lib/opendnssec"
|
|
|
|
OPENDNSSEC_KASP_DB = "/var/lib/opendnssec/db/kasp.db"
|
|
|
|
IPA_ODS_EXPORTER_CCACHE = "/var/lib/opendnssec/tmp/ipa-ods-exporter.ccache"
|
|
|
|
IPA_CUSTODIA_SOCKET = "/run/apache2/ipa-custodia.sock"
|
|
|
|
IPA_CUSTODIA_AUDIT_LOG = '/var/log/ipa-custodia.audit.log'
|
2017-03-29 03:33:32 -05:00
|
|
|
WSGI_PREFIX_DIR = "/run/apache2/wsgi"
|
2017-01-05 04:41:08 -06:00
|
|
|
|
|
|
|
paths = DebianPathNamespace()
|