mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-28 18:01:23 -06:00
b5c1ce88a4
Currently, FreeIPA's install/admin scripts are long pieces of code that aren't very reusable, importable, or testable. They have been extended over time with features such as logging and error handling, but since each tool was extended individually, there is much inconsistency and code duplication. This patch starts a framework which the admin tools can use, and converts ipa-ldap-updater to use the framework. Common tasks the tools do -- option parsing, validation, logging setup, error handling -- are represented as methods. Individual tools can extend, override or reuse the defaults as they see fit. The ipa-ldap-updater has two modes (normal and --upgrade) that don't share much functionality. They are represented by separate classes. Option parsing, and selecting which class to run, happens before they're instantiated. All code is moved to importable modules to aid future testing. The only thing that remains in the ipa-ldap-updater script is a two-line call to the library. First part of the work for: https://fedorahosted.org/freeipa/ticket/2652 |
||
---|---|---|
.. | ||
plugins | ||
__init__.py | ||
adtrustinstance.py | ||
bindinstance.py | ||
cainstance.py | ||
certs.py | ||
dsinstance.py | ||
httpinstance.py | ||
installutils.py | ||
ipa_ldap_updater.py | ||
krbinstance.py | ||
ldapupdate.py | ||
Makefile.am | ||
memcacheinstance.py | ||
ntpinstance.py | ||
replication.py | ||
service.py | ||
sysupgrade.py | ||
upgradeinstance.py |