Build keystonerc_demo for demo user

If provisioning a demo network with a demo keystone user, create
the keystonerc_demo file. Also makes the demo user password
configurable.

Change-Id: I4b85a3389c273dc9d77d0cd6674b9b59f633afa7
This commit is contained in:
Terry Wilson
2013-07-15 17:23:31 -05:00
parent 1ffec0e358
commit d1d744317d
4 changed files with 28 additions and 0 deletions

View File

@@ -74,6 +74,18 @@ def initConfig(controllerObject):
"USE_DEFAULT" : True,
"NEED_CONFIRM" : False,
"CONDITION" : False },
{"CMD_OPTION" : "keystone-demo-passwd",
"USAGE" : "The password to use for the Keystone demo user",
"PROMPT" : "Enter the password for the Keystone demo user",
"OPTION_LIST" : [],
"VALIDATORS" : [validators.validate_not_empty],
"DEFAULT_VALUE" : uuid.uuid4().hex[:16],
"MASK_INPUT" : True,
"LOOSE_VALIDATION": False,
"CONF_NAME" : "CONFIG_KEYSTONE_DEMO_PW",
"USE_DEFAULT" : True,
"NEED_CONFIRM" : False,
"CONDITION" : False },
{"CMD_OPTION" : "keystone-token-format",
"USAGE" : "Kestone token format. Use either UUID or PKI",
"PROMPT" : "Enter the Keystone token format.",