Parameter deprecation support

This patch adds implementation of parameter deprecation system.
Packstack will now check for deprecated parameters in answer file
if current parameter is not found in answer file.

Also support for default values have been added. Eg. when parameter
is not found in answer file, Packstack tries to use default value
instead of throwing exceptions. This will allow smaller answer files
where only few parameters have to differ from default values.

Change-Id: Id646a442e789221e5c31c9c151bcdfd118652e8f
This commit is contained in:
Martin Magr
2014-05-26 16:01:57 +02:00
parent 40e682061e
commit b78a942b90
5 changed files with 65 additions and 12 deletions

View File

@@ -37,7 +37,8 @@ def initConfig(controller):
"CONF_NAME": "CONFIG_AMQP_BACKEND",
"USE_DEFAULT": False,
"NEED_CONFIRM": False,
"CONDITION": False},
"CONDITION": False,
"DEPRECATES": ['CONFIG_AMQP_SERVER']},
{"CMD_OPTION": "amqp-host",
"USAGE": ("The IP address of the server on which to install the "