Added default MySQL password

Fixes issue #22.
This commit is contained in:
Martin Magr
2012-12-13 12:22:51 +01:00
parent 19acfbad5d
commit 3239da698e

View File

@@ -2,6 +2,7 @@
Installs and configures MySQL
"""
import uuid
import logging
import packstack.installer.engine_validators as validate
@@ -52,8 +53,8 @@ def initConfig(controllerObject):
"USAGE" : "Password for the MySQL admin user",
"PROMPT" : "Password for the MySQL admin user",
"OPTION_LIST" : [],
"VALIDATION_FUNC" : lambda a,b: True,
"DEFAULT_VALUE" : "",
"VALIDATION_FUNC" : validate.validateStringNotEmpty,
"DEFAULT_VALUE" : uuid.uuid4().hex[:6],
"MASK_INPUT" : True,
"LOOSE_VALIDATION": True,
"CONF_NAME" : "CONFIG_MYSQL_PW",
@@ -83,4 +84,3 @@ def createmanifest():
manifestfile = "%s_mysql.pp"%controller.CONF['CONFIG_MYSQL_HOST']
manifestdata = getManifestTemplate("mysql.pp")
appendManifestFile(manifestfile, manifestdata, 'pre')