5.3.3. Running PackStack with an Answer File

Once an answer file has been created and customized it can be used to run the packstack command non-interactively.

Procedure 5.5. Running PackStack with an Answer File

  1. Run the packstack command with the --answer-file=FILE parameter to specify an answer file. Replace FILE with the path to the answer file.
    # packstack --answer-file=FILE

    Example 5.6. Running PackStack with an Answer File

    In this example, PackStack is run using an answer file stored in ~/answers.cfg.
    # packstack --answer-file=~/answers.cfg
  2. PackStack will attempt to deploy OpenStack using Puppet manifests. This process may take a significant amount of time depending on the deployment options selected. When the deployment is complete PackStack will display this message:
    **** Installation completed successfully ******
    Additional information about your environment including the location of the keystonerc containing your OpenStack administrator authentication token and the URL of the dashboard, if configured, will also be displayed.
  3. Reboot all the nodes in the environment to ensure that the kernel change takes effect.
    PackStack deploys a new kernel with network namespaces enabled for all the nodes. You must reboot the environment to ensure that the change takes effect.
    # reboot
You have successfully deployed OpenStack using a PackStack answer file.

Note

A log file containing the details of each PackStack run is stored in a uniquely named folder in the /var/tmp/packstack/ directory.