Single source of documentation

This patch adds feature for parsing docs/packstack.rst file for parameter
USAGE values.

Change-Id: Iea404e8ade657e82ac1e33ad3697180680c3633e
Closes-bug: rhbz#1199847
This commit is contained in:
Martin Mágr
2015-03-25 16:55:32 +01:00
parent b576673fb8
commit 9a347f80d5
24 changed files with 163 additions and 625 deletions

View File

@@ -16,11 +16,13 @@
Installs and configures MariaDB
"""
from packstack.installer import basedefs
from packstack.installer import validators
from packstack.installer import processors
from packstack.installer import utils
from packstack.modules.common import filtered_hosts
from packstack.modules.common import filtered_hosts
from packstack.modules.documentation import update_params_usage
from packstack.modules.ospluginutils import appendManifestFile
from packstack.modules.ospluginutils import createFirewallResources
from packstack.modules.ospluginutils import getManifestTemplate
@@ -34,9 +36,6 @@ PLUGIN_NAME_COLORED = utils.color_text(PLUGIN_NAME, 'blue')
def initConfig(controller):
params = [
{"CMD_OPTION": "mariadb-host",
"USAGE": ("The IP address of the server on which to install MariaDB "
"or IP address of DB server to use if MariaDB "
"installation was not selected"),
"PROMPT": "Enter the IP address of the MariaDB server",
"OPTION_LIST": [],
"VALIDATORS": [validators.validate_ssh],
@@ -78,6 +77,7 @@ def initConfig(controller):
"CONDITION": False,
"DEPRECATES": ['CONFIG_MYSQL_PW']},
]
update_params_usage(basedefs.PACKSTACK_DOC, params, sectioned=False)
group = {"GROUP_NAME": "MARIADB",
"DESCRIPTION": "MariaDB Config parameters",
"PRE_CONDITION": lambda x: 'yes',