Juan Hernandez has uploaded a new change for review. Change subject: packaging: Functions to configure for maintenance ......................................................................
packaging: Functions to configure for maintenance This patch adds functions that will later be used to configure the engine in maintenance mode during upgrades. Change-Id: I82a8a1328af6e40db474db319c19ed403710e628 Signed-off-by: Juan Hernandez <[email protected]> --- M packaging/fedora/setup/common_utils.py 1 file changed, 10 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/90/8790/1 diff --git a/packaging/fedora/setup/common_utils.py b/packaging/fedora/setup/common_utils.py index 208fce1..e9c62b6 100755 --- a/packaging/fedora/setup/common_utils.py +++ b/packaging/fedora/setup/common_utils.py @@ -1345,3 +1345,13 @@ # Return the result: return javaHome + +def configureEngineForMaintenance(): + with open(basedefs.FILE_ENGINE_SYSCONFIG_MAINTENANCE, "w") as configFile: + configFile.write("ENGINE_HTTP_ENABLED=false\n") + configFile.write("ENGINE_HTTPS_ENABLED=false\n") + configFile.write("ENGINE_AJP_ENABLED=false\n") + +def restoreEngineFromMaintenance(): + if os.path.exists(basedefs.FILE_ENGINE_SYSCONFIG_MAINTENANCE): + os.remove(basedefs.FILE_ENGINE_SYSCONFIG_MAINTENANCE) -- To view, visit http://gerrit.ovirt.org/8790 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I82a8a1328af6e40db474db319c19ed403710e628 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Juan Hernandez <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
