diff options
author | Martin Basti <mbasti@redhat.com> | 2015-03-18 15:46:00 +0100 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2015-04-14 19:25:47 +0200 |
commit | f24f614396de809350b54423ca128b478601a64e (patch) | |
tree | 7284b80ce5c44ef57f507092e7be312ea082aa61 /ipaserver/install/plugins/baseupdate.py | |
parent | cc19b5a76a37d1fb87deb45d9cbfc71472a99fa4 (diff) | |
download | freeipa-f24f614396de809350b54423ca128b478601a64e.tar.gz freeipa-f24f614396de809350b54423ca128b478601a64e.tar.xz freeipa-f24f614396de809350b54423ca128b478601a64e.zip |
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>
Diffstat (limited to 'ipaserver/install/plugins/baseupdate.py')
-rw-r--r-- | ipaserver/install/plugins/baseupdate.py | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/ipaserver/install/plugins/baseupdate.py b/ipaserver/install/plugins/baseupdate.py index fa997c9db..d39d8ac89 100644 --- a/ipaserver/install/plugins/baseupdate.py +++ b/ipaserver/install/plugins/baseupdate.py @@ -18,9 +18,8 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. from ipalib import api -from ipalib import Updater, Object +from ipalib import Object from ipaserver.install import service -from ipaserver.install.plugins import (PRE_UPDATE, POST_UPDATE, MIDDLE) class DSRestart(service.Service): """ @@ -46,32 +45,3 @@ class DSRestart(service.Service): self.step("starting directory server", self.start) self.start_creation(start_message="Restarting Directory server " "to apply updates", show_service_name=False) - -class update(Object): - """ - Generic object used to register all updates into a single namespace. - """ - backend_name = 'ldap2' - -api.register(update) - - -class PreUpdate(Updater): - """ - Base class for updates that run prior to file processing. - """ - updatetype = PRE_UPDATE - order = MIDDLE - - def __init__(self): - super(PreUpdate, self).__init__() - -class PostUpdate(Updater): - """ - Base class for updates that run after file processing. - """ - updatetype = POST_UPDATE - order = MIDDLE - - def __init__(self): - super(PostUpdate, self).__init__() |