id int64 0 458k | file_name stringlengths 4 119 | file_path stringlengths 14 227 | content stringlengths 24 9.96M | size int64 24 9.96M | language stringclasses 1
value | extension stringclasses 14
values | total_lines int64 1 219k | avg_line_length float64 2.52 4.63M | max_line_length int64 5 9.91M | alphanum_fraction float64 0 1 | repo_name stringlengths 7 101 | repo_stars int64 100 139k | repo_forks int64 0 26.4k | repo_open_issues int64 0 2.27k | repo_license stringclasses 12
values | repo_extraction_date stringclasses 433
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
17,100 | __init__.py | freeipa_freeipa/ipaclient/install/__init__.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
| 71 | Python | .py | 3 | 22.666667 | 66 | 0.779412 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,101 | ipa_client_automount.py | freeipa_freeipa/ipaclient/install/ipa_client_automount.py | #
# Authors:
# Rob Crittenden <rcritten@redhat.com>
#
# Copyright (C) 2012, 2019 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation,... | 16,557 | Python | .py | 442 | 28.986425 | 78 | 0.628924 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,102 | ipa_client_install.py | freeipa_freeipa/ipaclient/install/ipa_client_install.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
from __future__ import absolute_import
from ipaclient.install import client
from ipaplatform.paths import paths
from ipapython.install import cli
from ipapython.install.core import knob, extend_knob
class StandaloneClientInstall(client.ClientIns... | 1,652 | Python | .py | 53 | 25.037736 | 76 | 0.680985 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,103 | ipa_client_samba.py | freeipa_freeipa/ipaclient/install/ipa_client_samba.py | #
# Copyright (C) 2019 FreeIPA Contributors see COPYING for license
#
# Configure the Samba suite to operate as domain member in IPA domain
from __future__ import print_function
import logging
import os
import gssapi
from urllib.parse import urlsplit
from optparse import OptionParser # pylint: disable=deprecated-mo... | 26,665 | Python | .py | 673 | 30.580981 | 79 | 0.61785 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,104 | stageuser.py | freeipa_freeipa/ipaclient/plugins/stageuser.py | #
# Copyright (C) 2022 FreeIPA Contributors see COPYING for license
#
from ipaclient.plugins.baseuser import baseuser_add_passkey
from ipalib.plugable import Registry
from ipalib import _
register = Registry()
@register(override=True, no_fail=True)
class stageuser_add_passkey(baseuser_add_passkey):
__doc__ = _... | 376 | Python | .py | 10 | 35.8 | 70 | 0.787293 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,105 | automount.py | freeipa_freeipa/ipaclient/plugins/automount.py | # Authors:
# Rob Crittenden <rcritten@redhat.com>
# Pavel Zuna <pzuna@redhat.com>
#
# Copyright (C) 2008 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# th... | 10,745 | Python | .py | 268 | 26.843284 | 96 | 0.500862 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,106 | sudorule.py | freeipa_freeipa/ipaclient/plugins/sudorule.py | # Authors:
# Jr Aquino <jr.aquino@citrixonline.com>
#
# Copyright (C) 2010-2014 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation,... | 2,331 | Python | .py | 50 | 40.22 | 78 | 0.673568 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,107 | migration.py | freeipa_freeipa/ipaclient/plugins/migration.py | # Authors:
# Pavel Zuna <pzuna@redhat.com>
#
# Copyright (C) 2009 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either versio... | 3,040 | Python | .py | 70 | 37.1 | 239 | 0.68277 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,108 | user.py | freeipa_freeipa/ipaclient/plugins/user.py | # Authors:
# Jason Gerard DeRose <jderose@redhat.com>
# Pavel Zuna <pzuna@redhat.com>
#
# Copyright (C) 2008 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
... | 3,184 | Python | .py | 77 | 33.454545 | 79 | 0.639651 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,109 | otptoken.py | freeipa_freeipa/ipaclient/plugins/otptoken.py | # Authors:
# Nathaniel McCallum <npmccallum@redhat.com>
#
# Copyright (C) 2013 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, ... | 6,395 | Python | .py | 155 | 32.335484 | 82 | 0.614244 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,110 | baseuser.py | freeipa_freeipa/ipaclient/plugins/baseuser.py | #
# Copyright (C) 2022 FreeIPA Contributors see COPYING for license
#
import os
import logging
import subprocess
from ipaclient.frontend import MethodOverride
from ipalib import errors
from ipalib import Bool, Flag, StrEnum
from ipalib.text import _
from ipaplatform.paths import paths
logger = logging.getLogger(__na... | 4,095 | Python | .py | 96 | 28.322917 | 78 | 0.521063 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,111 | rpcclient.py | freeipa_freeipa/ipaclient/plugins/rpcclient.py | # Authors:
# Jason Gerard DeRose <jderose@redhat.com>
# Rob Crittenden <rcritten@redhat.com>
# Petr Viktorin <pviktori@redhat.com>
#
# Copyright (C) 2008-2013 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the term... | 1,651 | Python | .py | 41 | 36.634146 | 76 | 0.725282 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,112 | vault.py | freeipa_freeipa/ipaclient/plugins/vault.py | # Authors:
# Endi S. Dewata <edewata@redhat.com>
#
# Copyright (C) 2015 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either ... | 41,222 | Python | .py | 1,019 | 28.672228 | 81 | 0.568019 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,113 | automember.py | freeipa_freeipa/ipaclient/plugins/automember.py | # Authors:
# Jr Aquino <jr.aquino@citrix.com>
#
# Copyright (C) 2011 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either ver... | 1,496 | Python | .py | 38 | 35.684211 | 73 | 0.730028 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,114 | passwd.py | freeipa_freeipa/ipaclient/plugins/passwd.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
from ipaclient.frontend import CommandOverride
from ipalib.plugable import Registry
register = Registry()
@register(override=True, no_fail=True)
class passwd(CommandOverride):
def get_args(self):
for arg in super(passwd, self).get_ar... | 441 | Python | .py | 13 | 28.615385 | 66 | 0.698113 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,115 | location.py | freeipa_freeipa/ipaclient/plugins/location.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
from ipaclient.frontend import MethodOverride
from ipalib import _
from ipalib.plugable import Registry
register = Registry()
@register(override=True, no_fail=True)
class location_show(MethodOverride):
def output_for_cli(self, textui, outpu... | 1,057 | Python | .py | 27 | 28.518519 | 74 | 0.577299 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,116 | permission.py | freeipa_freeipa/ipaclient/plugins/permission.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
from ipaclient.frontend import MethodOverride
from ipalib.plugable import Registry
register = Registry()
class PermissionMethodOverride(MethodOverride):
def get_options(self):
for option in super(PermissionMethodOverride, self).get_o... | 774 | Python | .py | 21 | 32.333333 | 77 | 0.764468 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,117 | host.py | freeipa_freeipa/ipaclient/plugins/host.py | # Authors:
# Rob Crittenden <rcritten@redhat.com>
# Pavel Zuna <pzuna@redhat.com>
#
# Copyright (C) 2008 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# th... | 1,876 | Python | .py | 44 | 36.068182 | 71 | 0.66849 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,118 | trust.py | freeipa_freeipa/ipaclient/plugins/trust.py | # Authors:
# Alexander Bokovoy <abokovoy@redhat.com>
# Martin Kosek <mkosek@redhat.com>
#
# Copyright (C) 2011 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publish... | 1,897 | Python | .py | 43 | 38.046512 | 76 | 0.685807 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,119 | hbactest.py | freeipa_freeipa/ipaclient/plugins/hbactest.py | # Authors:
# Alexander Bokovoy <abokovoy@redhat.com>
#
# Copyright (C) 2011 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, eit... | 2,210 | Python | .py | 51 | 36.529412 | 97 | 0.671781 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,120 | internal.py | freeipa_freeipa/ipaclient/plugins/internal.py | # Authors:
# Pavel Zuna <pzuna@redhat.com>
# Adam Young <ayoung@redhat.com>
# Endi S. Dewata <edewata@redhat.com>
#
# Copyright (c) 2010 Red Hat
# See file 'copying' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General P... | 1,443 | Python | .py | 34 | 40.5 | 71 | 0.770164 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,121 | __init__.py | freeipa_freeipa/ipaclient/plugins/__init__.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
"""
Sub-package containing all client plugins.
"""
| 123 | Python | .py | 6 | 19.333333 | 66 | 0.767241 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,122 | certprofile.py | freeipa_freeipa/ipaclient/plugins/certprofile.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
from ipaclient.frontend import MethodOverride
from ipalib import util
from ipalib.parameters import File
from ipalib.plugable import Registry
from ipalib.text import _
register = Registry()
@register(override=True, no_fail=True)
class certprofil... | 1,499 | Python | .py | 37 | 32.864865 | 72 | 0.649449 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,123 | hbacrule.py | freeipa_freeipa/ipaclient/plugins/hbacrule.py | # Authors:
# Pavel Zuna <pzuna@redhat.com>
#
# Copyright (C) 2009 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either versio... | 1,509 | Python | .py | 39 | 34.051282 | 71 | 0.698087 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,124 | service.py | freeipa_freeipa/ipaclient/plugins/service.py | # Authors:
# Jason Gerard DeRose <jderose@redhat.com>
# Rob Crittenden <rcritten@redhat.com>
# Pavel Zuna <pzuna@redhat.com>
#
# Copyright (C) 2008 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GN... | 1,948 | Python | .py | 46 | 36.021739 | 72 | 0.674394 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,125 | otptoken_yubikey.py | freeipa_freeipa/ipaclient/plugins/otptoken_yubikey.py | # Authors:
# Nathaniel McCallum <npmccallum@redhat.com>
#
# Copyright (C) 2014 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, ... | 6,365 | Python | .py | 160 | 28.20625 | 84 | 0.557913 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,126 | certmap.py | freeipa_freeipa/ipaclient/plugins/certmap.py | #
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
#
from ipaclient.frontend import MethodOverride
from ipalib import errors, x509
from ipalib.parameters import BinaryFile
from ipalib.plugable import Registry
from ipalib.text import _
register = Registry()
@register(override=True, no_fail=True)
cl... | 1,596 | Python | .py | 41 | 29.829268 | 77 | 0.606335 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,127 | cert.py | freeipa_freeipa/ipaclient/plugins/cert.py | # Authors:
# Andrew Wnuk <awnuk@redhat.com>
# Jason Gerard DeRose <jderose@redhat.com>
# John Dennis <jdennis@redhat.com>
#
# Copyright (C) 2009 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU G... | 4,463 | Python | .py | 113 | 30.548673 | 77 | 0.613999 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,128 | ca.py | freeipa_freeipa/ipaclient/plugins/ca.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
import base64
from ipaclient.frontend import MethodOverride
from ipalib import errors, util, x509, Str
from ipalib.plugable import Registry
from ipalib.text import _
register = Registry()
class WithCertOutArgs(MethodOverride):
takes_options... | 2,088 | Python | .py | 52 | 29.788462 | 79 | 0.602374 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,129 | misc.py | freeipa_freeipa/ipaclient/plugins/misc.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
from ipalib.misc import env as _env
from ipalib.misc import plugins as _plugins
from ipalib.plugable import Registry
register = Registry()
@register(override=True, no_fail=True)
class env(_env):
def output_for_cli(self, textui, output, *args... | 886 | Python | .py | 22 | 31.636364 | 68 | 0.61655 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,130 | server.py | freeipa_freeipa/ipaclient/plugins/server.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
from ipaclient.frontend import MethodOverride
from ipalib import _, errors
from ipalib.plugable import Registry
register = Registry()
@register(override=True, no_fail=True)
class server_del(MethodOverride):
def interactive_prompt_callback(sel... | 626 | Python | .py | 16 | 33.6875 | 70 | 0.695868 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,131 | idrange.py | freeipa_freeipa/ipaclient/plugins/idrange.py | # Authors:
# Sumit Bose <sbose@redhat.com>
#
# Copyright (C) 2012 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either vers... | 3,404 | Python | .py | 69 | 40.014493 | 78 | 0.65098 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,132 | topology.py | freeipa_freeipa/ipaclient/plugins/topology.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
import six
from ipaclient.frontend import MethodOverride
from ipalib.plugable import Registry
from ipalib import _
if six.PY3:
unicode = str
register = Registry()
@register(override=True, no_fail=True)
class topologysuffix_verify(MethodOve... | 1,937 | Python | .py | 42 | 34.666667 | 78 | 0.572187 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,133 | dns.py | freeipa_freeipa/ipaclient/plugins/dns.py | # Authors:
# Martin Kosek <mkosek@redhat.com>
# Pavel Zuna <pzuna@redhat.com>
#
# Copyright (C) 2010 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Fr... | 18,526 | Python | .py | 413 | 33.358354 | 131 | 0.573427 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,134 | lite-setup.py | freeipa_freeipa/contrib/lite-setup.py | #!/usr/bin/python3
#
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
"""Configure lite-server environment.
See README.md for more details.
"""
import argparse
import os
import socket
from urllib.request import urlopen
DEFAULT_CONF = """\
[global]
host = {args.hostname}
server = {args.servername}
b... | 5,161 | Python | .py | 165 | 27.775758 | 78 | 0.677199 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,135 | copy-schema-to-ca-RHEL6.py | freeipa_freeipa/contrib/copy-schema-to-ca-RHEL6.py | #!/usr/bin/python2
"""Copy the IPA schema to the CA directory server instance
You need to run this script to prepare a 2.2 or 3.0 IPA master for
installation of a 3.1 replica.
Once a 3.1 replica is in the domain, every older CA master will emit schema
replication errors until this script is run on it.
"""
# DO NOT... | 6,360 | Python | .py | 160 | 31.85625 | 78 | 0.636054 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,136 | lite-server.py | freeipa_freeipa/contrib/lite-server.py | #!/usr/bin/python3
#
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
#
"""In-tree development server
See README.md for more details.
"""
import logging
import linecache
import os
import optparse # pylint: disable=deprecated-module
import ssl
import sys
import time
import tracemalloc
import warnings
... | 10,760 | Python | .py | 278 | 31.557554 | 79 | 0.644979 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,137 | lgtm_container.py | freeipa_freeipa/contrib/lgtm_container.py | #!/usr/bin/python3
"""Helper script to test LGTM config
$ contrib/lgtm_container.py > Dockerfile
$ docker build -t lgtm .
"""
import os
import yaml
LGTM_YML = os.path.join(os.path.dirname(__file__), '..', '.lgtm.yml')
def main():
with open(LGTM_YML) as f:
cfg = yaml.safe_load(f)
python = cfg['extra... | 844 | Python | .py | 28 | 25.571429 | 69 | 0.616337 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,138 | setup.py | freeipa_freeipa/ipaplatform/setup.py | # Copyright (C) 2014 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any l... | 1,747 | Python | .py | 51 | 27.686275 | 71 | 0.637707 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,139 | constants.py | freeipa_freeipa/ipaplatform/constants.py | #
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
#
"""IpaMetaImporter replaces this module with ipaplatform.$NAME.constants.
"""
from __future__ import absolute_import
import ipaplatform._importhook
ipaplatform._importhook.fixup_module('ipaplatform.constants')
| 283 | Python | .py | 8 | 34.125 | 73 | 0.81685 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,140 | tasks.py | freeipa_freeipa/ipaplatform/tasks.py | #
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
#
"""IpaMetaImporter replaces this module with ipaplatform.$NAME.tasks.
"""
from __future__ import absolute_import
import ipaplatform._importhook
ipaplatform._importhook.fixup_module('ipaplatform.tasks')
| 275 | Python | .py | 8 | 33.125 | 69 | 0.811321 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,141 | __init__.py | freeipa_freeipa/ipaplatform/__init__.py | #
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
#
"""ipaplatform package
"""
NAME = None # initialized by ipaplatform.osinfo
| 147 | Python | .py | 6 | 23.5 | 66 | 0.77305 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,142 | _importhook.py | freeipa_freeipa/ipaplatform/_importhook.py | #
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
#
from __future__ import absolute_import
import importlib
import sys
from ipaplatform.osinfo import osinfo
class IpaMetaImporter:
modules = {
'ipaplatform.constants',
'ipaplatform.paths',
'ipaplatform.services',
... | 1,450 | Python | .py | 40 | 28.575 | 66 | 0.634739 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,143 | paths.py | freeipa_freeipa/ipaplatform/paths.py | #
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
#
"""IpaMetaImporter replaces this module with ipaplatform.$NAME.paths.
"""
from __future__ import absolute_import
import ipaplatform._importhook
ipaplatform._importhook.fixup_module('ipaplatform.paths')
| 275 | Python | .py | 8 | 33.125 | 69 | 0.811321 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,144 | osinfo.py | freeipa_freeipa/ipaplatform/osinfo.py | #
# Copyright (C) 2018 FreeIPA Contributors see COPYING for license
#
"""Distribution information
Known Linux distros with /etc/os-release
----------------------------------------
- alpine
- centos (like rhel, fedora)
- debian
- fedora
- rhel
- ubuntu (like debian)
The platform ids for ipaplatform providers are bas... | 6,170 | Python | .py | 201 | 22.736318 | 77 | 0.571765 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,145 | services.py | freeipa_freeipa/ipaplatform/services.py | #
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
#
"""IpaMetaImporter replaces this module with ipaplatform.$NAME.services.
"""
from __future__ import absolute_import
import ipaplatform._importhook
ipaplatform._importhook.fixup_module('ipaplatform.services')
| 281 | Python | .py | 8 | 33.875 | 72 | 0.815498 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,146 | constants.py | freeipa_freeipa/ipaplatform/suse/constants.py | #
# Copyright (C) 2020 FreeIPA Contributors, see COPYING for license
#
"""
This SUSE OS family base platform module exports default platform
related constants for the SUSE OS family-based systems.
"""
# Fallback to default path definitions
from ipaplatform.base.constants import BaseConstantsNamespace, User, Group
_... | 599 | Python | .py | 17 | 32.588235 | 74 | 0.761324 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,147 | tasks.py | freeipa_freeipa/ipaplatform/suse/tasks.py | #
# Copyright (C) 2020 FreeIPA Contributors, see COPYING for license
#
"""
This module contains default SUSE OS family-specific implementations of
system tasks.
"""
import logging
from ipaplatform.paths import paths
from ipaplatform.base.tasks import BaseTaskNamespace as BaseTask
from ipaplatform.redhat.tasks import... | 4,959 | Python | .py | 104 | 34.615385 | 79 | 0.591605 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,148 | __init__.py | freeipa_freeipa/ipaplatform/suse/__init__.py | #
# Copyright (C) 2020 FreeIPA Contributors, see COPYING for license
#
"""
This module contains SUSE specific platform files.
"""
| 131 | Python | .py | 6 | 20.666667 | 66 | 0.774194 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,149 | paths.py | freeipa_freeipa/ipaplatform/suse/paths.py | #
# Copyright (C) 2020 FreeIPA Contributors, see COPYING for license
#
"""
This SUSE OS family base platform module exports default filesystem paths as
common in SUSE OS family-based systems.
"""
from ipaplatform.base.paths import BasePathNamespace
class SusePathNamespace(BasePathNamespace):
BIN_HOSTNAMECTL = "... | 4,216 | Python | .py | 86 | 44.27907 | 78 | 0.702473 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,150 | services.py | freeipa_freeipa/ipaplatform/suse/services.py | #
# Copyright (C) 2020 FreeIPA Contributors, see COPYING for license
#
import os
import logging
import time
import contextlib
from ipaplatform.base import services as base_services
from ipapython import ipautil, dogtag
from ipaplatform.paths import paths
logger = logging.getLogger(__name__)
suse_system_units = dict... | 7,270 | Python | .py | 176 | 32.460227 | 78 | 0.628664 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,151 | constants.py | freeipa_freeipa/ipaplatform/debian/constants.py | #
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
#
'''
This Debian family platform module exports platform dependant constants.
'''
# Fallback to default path definitions
from __future__ import absolute_import
from ipaplatform.base.constants import BaseConstantsNamespace, User, Group
__all__ = ... | 882 | Python | .py | 25 | 31.88 | 74 | 0.71967 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,152 | tasks.py | freeipa_freeipa/ipaplatform/debian/tasks.py | #
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
#
"""
This module contains default Debian-specific implementations of system tasks.
"""
from __future__ import absolute_import
import logging
import os
import shutil
from pathlib import Path
from ipaplatform.base.tasks import BaseTaskNamespace
fro... | 6,766 | Python | .py | 172 | 28.732558 | 79 | 0.6054 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,153 | __init__.py | freeipa_freeipa/ipaplatform/debian/__init__.py | #
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
#
"""
This module contains Debian specific platform files.
"""
| 133 | Python | .py | 6 | 21 | 66 | 0.777778 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,154 | paths.py | freeipa_freeipa/ipaplatform/debian/paths.py | #
# 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
from __future__ import absolute_import
from ipaplatform.base.paths import BasePathNamespace
import... | 6,286 | Python | .py | 119 | 48.243697 | 93 | 0.711735 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,155 | services.py | freeipa_freeipa/ipaplatform/debian/services.py | #
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
#
"""
Contains Debian-specific service class implementations.
"""
from __future__ import absolute_import
from ipaplatform.base import services as base_services
from ipaplatform.redhat import services as redhat_services
from ipapython import ipautil... | 6,574 | Python | .py | 153 | 35.679739 | 89 | 0.680651 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,156 | constants.py | freeipa_freeipa/ipaplatform/nixos/constants.py | #
# Copyright (C) 2022 FreeIPA Contributors see COPYING for license
#
'''
This nixos base platform module exports platform related constants.
'''
# Fallback to default constant definitions
from __future__ import absolute_import
from ipaplatform.redhat.constants import (
RedHatConstantsNamespace, User, Group
)
... | 669 | Python | .py | 20 | 30.45 | 67 | 0.759812 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,157 | tasks.py | freeipa_freeipa/ipaplatform/nixos/tasks.py | #
# Copyright (C) 2022 FreeIPA Contributors see COPYING for license
#
'''
This module contains default nixos-specific implementations of system tasks.
'''
from __future__ import absolute_import
from ipapython import directivesetter
from ipaplatform.redhat.tasks import RedHatTaskNamespace
from ipaplatform.paths impo... | 715 | Python | .py | 21 | 28.666667 | 76 | 0.723032 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,158 | __init__.py | freeipa_freeipa/ipaplatform/nixos/__init__.py | #
# Copyright (C) 2022 FreeIPA Contributors see COPYING for license
#
'''
This module contains Nixos specific platform files.
'''
import sys
import warnings
NAME = 'nixos'
if sys.version_info < (3, 6):
warnings.warn(
"Support for Python 2.7 and 3.5 is deprecated. Python version "
"3.6 or newer w... | 407 | Python | .py | 15 | 23.8 | 71 | 0.712082 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,159 | paths.py | freeipa_freeipa/ipaplatform/nixos/paths.py | #
# Copyright (C) 2022 FreeIPA Contributors see COPYING for license
#
from ipaplatform.fedora.paths import FedoraPathNamespace
# Note that we cannot use real paths, as they will be meaningless on nixos, as
# nixos stores all its packages in the nixstore under version/hash specific
# paths. The `@xxx@` are placeholde... | 831 | Python | .py | 18 | 43.055556 | 79 | 0.745973 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,160 | services.py | freeipa_freeipa/ipaplatform/nixos/services.py | #
# Copyright (C) 2022 FreeIPA Contributors see COPYING for license
#
"""
Contains Nixos-specific service class implementations.
"""
from __future__ import absolute_import
from ipaplatform.redhat import services as redhat_services
# Mappings from service names as FreeIPA code references to these services
# to thei... | 1,404 | Python | .py | 30 | 44.2 | 76 | 0.800442 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,161 | constants.py | freeipa_freeipa/ipaplatform/rhel/constants.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
'''
This RHEL base platform module exports platform related constants.
'''
# Fallback to default constant definitions
from __future__ import absolute_import
from ipaplatform.redhat.constants import (
RedHatConstantsNamespace, User, Group
)
fr... | 932 | Python | .py | 26 | 33.115385 | 66 | 0.754738 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,162 | tasks.py | freeipa_freeipa/ipaplatform/rhel/tasks.py | # Authors:
# Jan Cholasta <jcholast@redhat.com>
#
# Copyright (C) 2014 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either v... | 1,042 | Python | .py | 26 | 38.653846 | 75 | 0.7889 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,163 | __init__.py | freeipa_freeipa/ipaplatform/rhel/__init__.py | # Authors:
# Jan Cholasta <jcholast@redhat.com>
#
# Copyright (C) 2014 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either v... | 846 | Python | .py | 22 | 37.409091 | 71 | 0.770352 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,164 | paths.py | freeipa_freeipa/ipaplatform/rhel/paths.py | # Authors:
# Jan Cholasta <jcholast@redhat.com>
#
# Copyright (C) 2014 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either v... | 1,282 | Python | .py | 31 | 39.612903 | 75 | 0.782958 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,165 | services.py | freeipa_freeipa/ipaplatform/rhel/services.py | # Authors:
# Jan Cholasta <jcholast@redhat.com>
#
# Copyright (C) 2014 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either v... | 2,172 | Python | .py | 48 | 43.083333 | 75 | 0.785104 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,166 | constants.py | freeipa_freeipa/ipaplatform/fedora/constants.py | #
# 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, User, Group
)
... | 976 | Python | .py | 26 | 34.730769 | 76 | 0.759318 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,167 | tasks.py | freeipa_freeipa/ipaplatform/fedora/tasks.py | # Authors: Simo Sorce <ssorce@redhat.com>
# Alexander Bokovoy <abokovoy@redhat.com>
# Martin Kosek <mkosek@redhat.com>
# Tomas Babej <tbabej@redhat.com>
#
# Copyright (C) 2007-2014 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redist... | 1,555 | Python | .py | 38 | 37.5 | 77 | 0.738237 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,168 | __init__.py | freeipa_freeipa/ipaplatform/fedora/__init__.py | # Authors:
# Tomas Babej <tbabej@redhat.com>
#
# Copyright (C) 2014 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either vers... | 1,107 | Python | .py | 30 | 34.733333 | 71 | 0.750466 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,169 | paths.py | freeipa_freeipa/ipaplatform/fedora/paths.py | # Authors:
# Tomas Babej <tbabej@redhat.com>
#
# Copyright (C) 2014 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either vers... | 1,384 | Python | .py | 34 | 38.558824 | 75 | 0.772152 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,170 | services.py | freeipa_freeipa/ipaplatform/fedora/services.py | # Author: Alexander Bokovoy <abokovoy@redhat.com>
# Tomas Babej <tbabej@redhat.com>
#
# Copyright (C) 2011-2014 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publi... | 2,174 | Python | .py | 46 | 45.217391 | 77 | 0.789299 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,171 | constants.py | freeipa_freeipa/ipaplatform/tencentos/constants.py | #
# Copyright (C) 2024 FreeIPA Contributors see COPYING for license
#
"""
This TencentOS base platform module exports platform related constants.
"""
# Fallback to default path definitions
from __future__ import absolute_import
from ipaplatform.redhat.constants import RedHatConstantsNamespace, User, Group
__all__... | 523 | Python | .py | 14 | 35.142857 | 78 | 0.798 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,172 | tasks.py | freeipa_freeipa/ipaplatform/tencentos/tasks.py | #
# Copyright (C) 2024 FreeIPA Contributors see COPYING for license
#
"""
This module contains default TencentOS-specific implementations of system tasks.
"""
from __future__ import absolute_import
from ipaplatform.redhat.tasks import RedHatTaskNamespace
class TencentOSTaskNamespace(RedHatTaskNamespace):
pass... | 356 | Python | .py | 11 | 30.363636 | 80 | 0.831361 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,173 | __init__.py | freeipa_freeipa/ipaplatform/tencentos/__init__.py | #
# Copyright (C) 2024 FreeIPA Contributors see COPYING for license
#
"""
This module contains TencentOS specific platform files.
"""
NAME = "tencentos"
| 157 | Python | .py | 7 | 21 | 66 | 0.77551 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,174 | paths.py | freeipa_freeipa/ipaplatform/tencentos/paths.py | #
# Copyright (C) 2024 FreeIPA Contributors see COPYING for license
#
"""
This TencentOS base platform module exports default filesystem paths
as common in TencentOS-based systems.
"""
from __future__ import absolute_import
from ipaplatform.redhat.paths import RedHatPathNamespace
class TencentOSPathNamespace(RedH... | 485 | Python | .py | 13 | 35.153846 | 75 | 0.808602 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,175 | services.py | freeipa_freeipa/ipaplatform/tencentos/services.py | #
# Copyright (C) 2024 FreeIPA Contributors see COPYING for license
#
"""
Contains TencentOS specific service class implementations.
"""
from __future__ import absolute_import
from ipaplatform.redhat import services as redhat_services
# Mappings from service names as FreeIPA code references to these services
# to... | 1,482 | Python | .py | 31 | 45 | 74 | 0.807128 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,176 | constants.py | freeipa_freeipa/ipaplatform/base/constants.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
'''
This base platform module exports platform dependant constants.
'''
import grp
import os
import pwd
import sys
class _Entity(str):
__slots__ = ("_entity", )
def __new__(cls, name):
# if 'name' is already an instance of cls, r... | 5,136 | Python | .py | 158 | 25.601266 | 75 | 0.590955 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,177 | tasks.py | freeipa_freeipa/ipaplatform/base/tasks.py | # Authors:
# Alexander Bokovoy <abokovoy@redhat.com>
# Tomas Babej <tbabej@redhat.com>
#
# Copyright (C) 2011-2014 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publish... | 17,528 | Python | .py | 406 | 32.635468 | 79 | 0.620783 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,178 | __init__.py | freeipa_freeipa/ipaplatform/base/__init__.py | # Authors:
# Tomas Babej <tbabej@redhat.com>
#
# Copyright (C) 2014 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either vers... | 918 | Python | .py | 22 | 40.681818 | 74 | 0.779888 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,179 | paths.py | freeipa_freeipa/ipaplatform/base/paths.py | # Authors:
# Tomas Babej <tbabej@redhat.com>
#
# Copyright (C) 2014 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either vers... | 23,834 | Python | .py | 491 | 43.325866 | 110 | 0.684095 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,180 | services.py | freeipa_freeipa/ipaplatform/base/services.py | # Author: Alexander Bokovoy <abokovoy@redhat.com>
# Tomas Babej <tbabej@redhat.com>
#
# Copyright (C) 2014 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published ... | 19,038 | Python | .py | 444 | 31.621622 | 98 | 0.583446 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,181 | constants.py | freeipa_freeipa/ipaplatform/opencloudos/constants.py | #
# Copyright (C) 2024 FreeIPA Contributors see COPYING for license
#
"""
This OpenCloudOS family base platform module exports platform related constants.
"""
# Fallback to default path definitions
from __future__ import absolute_import
from ipaplatform.redhat.constants import RedHatConstantsNamespace, User, Group
... | 536 | Python | .py | 14 | 36.071429 | 80 | 0.80117 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,182 | tasks.py | freeipa_freeipa/ipaplatform/opencloudos/tasks.py | #
# Copyright (C) 2024 FreeIPA Contributors see COPYING for license
#
"""
This module contains default OpenCloudOS family-specific implementations of
system tasks.
"""
from __future__ import absolute_import
from ipaplatform.redhat.tasks import RedHatTaskNamespace
class OpenCloudOSTaskNamespace(RedHatTaskNamespace... | 369 | Python | .py | 12 | 28.833333 | 75 | 0.837143 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,183 | __init__.py | freeipa_freeipa/ipaplatform/opencloudos/__init__.py | #
# Copyright (C) 2024 FreeIPA Contributors see COPYING for license
#
"""
This module contains OpenCloudOS family-specific platform files.
"""
NAME = "opencloudos"
| 167 | Python | .py | 7 | 22.571429 | 66 | 0.78481 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,184 | paths.py | freeipa_freeipa/ipaplatform/opencloudos/paths.py | #
# Copyright (C) 2024 FreeIPA Contributors see COPYING for license
#
"""
This OpenCloudOS family base platform module exports default filesystem paths
as common in OpenCloudOS family-based systems.
"""
from __future__ import absolute_import
from ipaplatform.redhat.paths import RedHatPathNamespace
class OpenCloud... | 507 | Python | .py | 13 | 36.846154 | 77 | 0.813142 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,185 | services.py | freeipa_freeipa/ipaplatform/opencloudos/services.py | #
# Copyright (C) 2024 FreeIPA Contributors see COPYING for license
#
"""
Contains OpenCloudOS family-specific service class implementations.
"""
from __future__ import absolute_import
from ipaplatform.redhat import services as redhat_services
# Mappings from service names as FreeIPA code references to these serv... | 1,537 | Python | .py | 31 | 46.774194 | 77 | 0.812248 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,186 | constants.py | freeipa_freeipa/ipaplatform/rhel_container/constants.py | #
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
"""RHEL container constants
"""
from ipaplatform.rhel.constants import RHELConstantsNamespace, User, Group
__all__ = ("constants", "User", "Group")
class RHELContainerConstantsNamespace(RHELConstantsNamespace):
pass
constants = RHELContain... | 343 | Python | .py | 10 | 32.3 | 74 | 0.804281 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,187 | tasks.py | freeipa_freeipa/ipaplatform/rhel_container/tasks.py | #
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
"""RHEL container tasks
"""
import logging
from ipaplatform.rhel.tasks import RHELTaskNamespace
logger = logging.getLogger(__name__)
class RHELContainerTaskNamespace(RHELTaskNamespace):
def modify_nsswitch_pam_stack(
self, sssd, mkh... | 1,010 | Python | .py | 24 | 36.833333 | 73 | 0.742828 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,188 | __init__.py | freeipa_freeipa/ipaplatform/rhel_container/__init__.py | #
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
"""
This module contains RHEL Container specific platform files.
"""
NAME = "rhel_container"
| 164 | Python | .py | 7 | 22.428571 | 66 | 0.77707 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,189 | paths.py | freeipa_freeipa/ipaplatform/rhel_container/paths.py | #
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
"""RHEL container paths
"""
import os
from ipaplatform.rhel.paths import RHELPathNamespace
def data(path):
return os.path.join("/data", path[1:])
class RHELContainerPathNamespace(RHELPathNamespace):
KRB5_CONF = data(RHELPathNamespace.KR... | 1,526 | Python | .py | 35 | 39.171429 | 73 | 0.755226 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,190 | services.py | freeipa_freeipa/ipaplatform/rhel_container/services.py | #
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
"""RHEL container services
"""
from ipaplatform.rhel import services as rhel_services
rhel_container_system_units = rhel_services.rhel_system_units.copy()
class RHELContainerService(rhel_services.RHELService):
system_units = rhel_container_s... | 771 | Python | .py | 17 | 42.588235 | 68 | 0.80914 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,191 | constants.py | freeipa_freeipa/ipaplatform/fedora_container/constants.py | #
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
"""Fedora container constants
"""
from ipaplatform.fedora.constants import FedoraConstantsNamespace, User, Group
__all__ = ("constants", "User", "Group")
class FedoraContainerConstantsNamespace(FedoraConstantsNamespace):
pass
constants = F... | 355 | Python | .py | 10 | 33.5 | 78 | 0.811209 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,192 | tasks.py | freeipa_freeipa/ipaplatform/fedora_container/tasks.py | #
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
"""Fedora container tasks
"""
import logging
from ipaplatform.fedora.tasks import FedoraTaskNamespace
logger = logging.getLogger(__name__)
class FedoraContainerTaskNamespace(FedoraTaskNamespace):
def modify_nsswitch_pam_stack(
self,... | 1,022 | Python | .py | 24 | 37.333333 | 73 | 0.745951 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,193 | __init__.py | freeipa_freeipa/ipaplatform/fedora_container/__init__.py | #
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
"""
This module contains Fedora Container specific platform files.
"""
NAME = "fedora_container"
| 168 | Python | .py | 7 | 23 | 66 | 0.782609 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,194 | paths.py | freeipa_freeipa/ipaplatform/fedora_container/paths.py | #
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
"""Fedora container paths
"""
import os
from ipaplatform.fedora.paths import FedoraPathNamespace
def data(path):
return os.path.join("/data", path[1:])
class FedoraContainerPathNamespace(FedoraPathNamespace):
KRB5_CONF = data(FedoraPath... | 1,560 | Python | .py | 35 | 40.142857 | 75 | 0.760712 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,195 | services.py | freeipa_freeipa/ipaplatform/fedora_container/services.py | #
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
"""Fedora container services
"""
from ipaplatform.fedora import services as fedora_services
fedora_container_system_units = fedora_services.fedora_system_units.copy()
class FedoraContainerService(fedora_services.FedoraService):
system_units ... | 811 | Python | .py | 17 | 44.941176 | 74 | 0.818878 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,196 | constants.py | freeipa_freeipa/ipaplatform/redhat/constants.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
'''
This Red Hat OS family base platform module exports default platform
related constants for the Red Hat OS family-based systems.
'''
# Fallback to default path definitions
from __future__ import absolute_import
from ipaplatform.base.constants ... | 631 | Python | .py | 16 | 37.125 | 74 | 0.793729 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,197 | tasks.py | freeipa_freeipa/ipaplatform/redhat/tasks.py | # Authors: Simo Sorce <ssorce@redhat.com>
# Alexander Bokovoy <abokovoy@redhat.com>
# Martin Kosek <mkosek@redhat.com>
# Tomas Babej <tbabej@redhat.com>
#
# Copyright (C) 2007-2014 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redist... | 28,073 | Python | .py | 654 | 30.792049 | 79 | 0.579221 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,198 | __init__.py | freeipa_freeipa/ipaplatform/redhat/__init__.py | # Authors:
# Tomas Babej <tbabej@redhat.com>
#
# Copyright (C) 2014 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either vers... | 842 | Python | .py | 21 | 39.047619 | 71 | 0.771951 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
17,199 | paths.py | freeipa_freeipa/ipaplatform/redhat/paths.py | # Authors:
# Tomas Babej <tbabej@redhat.com>
#
# Copyright (C) 2014 Red Hat
# see file 'COPYING' for use and warranty information
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either vers... | 1,682 | Python | .py | 40 | 39.25 | 79 | 0.761934 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |