Server Upgrade: specify order of plugins in update files

* add 'plugin' directive
* specify plugins order in update files
* remove 'run plugins' options
* use ldapupdater API instance in plugins
* add update files representing former PreUpdate and PostUpdate order of plugins

https://fedorahosted.org/freeipa/ticket/4904

Reviewed-By: David Kupka <dkupka@redhat.com>
This commit is contained in:
Martin Basti
2015-03-18 15:46:00 +01:00
committed by Petr Vobornik
parent cc19b5a76a
commit f24f614396
25 changed files with 236 additions and 335 deletions

View File

@@ -1371,7 +1371,7 @@ class Method(Attribute, Command):
@register.base()
class Updater(Method):
class Updater(Plugin):
"""
An LDAP update with an associated object (always update).
@@ -1397,8 +1397,8 @@ class Updater(Method):
>>> api.Updater.my_update # doctest:+ELLIPSIS
ipalib.frontend.my_update()
"""
def __init__(self):
super(Updater, self).__init__()
def execute(self, **options):
raise NotImplementedError('%s.execute()' % self.name)
def __call__(self, **options):
self.debug(