diff --git a/docs/packstack.rst b/docs/packstack.rst index 80bf277a3..baa5a8782 100644 --- a/docs/packstack.rst +++ b/docs/packstack.rst @@ -14,9 +14,9 @@ Packstack is a utility that uses uses puppet modules to install OpenStack. It ca - packstack - packstack [options] -- packstack --gen-answer-file= [--default-password=] / packstack --answer-file= +- packstack --gen-answer-file= [options] / packstack --answer-file= -The third option allows the user to generate a default answer file, edit the default options and finally run Packstack a second time using this answer file. This is the easiest way to run Packstack and the one that will be documented here. Optionally, it is possible to specify a default password when generating the answer file, and this default password will be used for all accounts. +The third option allows the user to generate a default answer file, edit the default options and finally run Packstack a second time using this answer file. This is the easiest way to run Packstack and the one that will be documented here. Optionally, it is possible to set additional command-line options (such as a default password), and those options will be set in the answer file. When is created, it will contain the OPTIONS below, which can then be edited by the user. diff --git a/packstack/installer/run_setup.py b/packstack/installer/run_setup.py index 4c5d1133b..2026a76ea 100644 --- a/packstack/installer/run_setup.py +++ b/packstack/installer/run_setup.py @@ -801,7 +801,7 @@ def initCmdLineParser(): # Init parser and all general flags usage = "usage: %prog [options] [--help]" parser = OptionParser(usage=usage, version="%prog {0} {1}".format(version.release_string(), version.version_string())) - parser.add_option("--gen-answer-file", help="Generate a template of an answer file, using this option excludes all other options") + parser.add_option("--gen-answer-file", help="Generate a template of an answer file.") parser.add_option("--answer-file", help="Runs the configuration in non-interactive mode, extracting all information from the" "configuration file. using this option excludes all other options") parser.add_option("--install-hosts", help="Install on a set of hosts in a single step. The format should be a comma separated list " @@ -972,8 +972,6 @@ def main(): # If --gen-answer-file was supplied, do not run main if options.gen_answer_file: - # Make sure only --gen-answer-file was supplied - validateSingleFlag(options, "gen_answer_file") answerfilepath = _gettmpanswerfilepath() if not answerfilepath: _printAdditionalMessages()