3.3. Running Packstack Non-Interactively
You can run Packstack non-interactively by providing your configuration options in a text file (referred to as an answer file), instead of using standard input.
Important
Red Hat Enterprise Linux OpenStack Platform requires that each system in the OpenStack environment run Red Hat Enterprise Linux Server; all systems must be signed up to receive updates from Red Hat Network using Subscription Manager.
To allow Packstack to install OpenStack on each node, you can use either of the following:
- You can
sshinto each node, register it with Red Hat Network, attach an OpenStack subscription, and enable the required repositories (for information on registering, see Section 2.1.2, “Software Repositories”). - You can put your Red Hat subscription username and password into the answers file, using the parameters
CONFIG_RH_USERandCONFIG_RH_PW. Running Packstack with this answer file configures each node to receive updates from Red Hat Network using Subscription Manager.
Procedure 3.3. Deploy OpenStack using an Answer File
Install the Packstack utility
#yum install openstack-packstackGenerate the default file
Generate the default answer file. For example:$packstack --gen-answer-file=ANSWER_FILE.txtEdit the file
Edit the answer file with your desired configuration values. For file parameters, see Appendix A, Answer File Configuration Keys.Run Packstack using the file
Use the answer file to install OpenStack:$packstack --answer-file=ANSWER_FILE.txt
Deployment time can be significant; Packstack provides continuous updates indicating which manifests are being deployed as it progresses. Once the process is completed, a confirmation message similar to the one below is displayed (depending on the options you chose):
**** Installation completed successfully ****** Additional information: * To use the command line tools you need to source the file /root/keystonerc_admin created on 192.0.43.10 * To use the console, browse to http://192.0.43.10/dashboard * To use Nagios, browse to http://192.0.43.10/nagios username : nagiosadmin, password: abcdefgh12345678 * Kernel package with netns support has been installed on host 192.0.43.10. Because of the kernel update host mentioned above requires reboot. * The installation log file is available at: /var/tmp/packstack/20150613-133302-5UY8KB/openstack-setup.log
You have successfully deployed an OpenStack environment using Packstack. For next steps, see Chapter 4, Using OpenStack.
Warning
The answer file contains a number of required configuration values, including administrative passwords. It is recommended that you store the answer file in a secure location.
Unless specified, passwords are also generated for each service; for a complete password listing and update commands, refer to Appendix B, Passwords.