6.3.2. Editing a PackStack Answer File

PackStack answer files are editable in any text editor. Lines preceded with a # character are treated as comments and are ignored.
The table presented here lists the configuration keys available. Configuration values are provided in the answer files as key-value pairs of the form:
KEY=VALUE
Where a key accepts multiple comma separated values that is noted in the description of the configuration key. Some configuration keys also have command line equivalents, allowing them to be provided directly as arguments to the invocation of the packstack command. Where this is the case the command line argument is also listed in the table.

Table 6.1. PackStack Configuration Keys

Configuration Key Command Line Argument Default Value Description
CONFIG_SSH_KEY --sh-public-key /root/.ssh/id_rsa.pub Path to a Public key to install on servers. If a usable key has not been installed on the remote servers the user will be prompted for a password and this key will be installed so the password will not be required again.
CONFIG_GLANCE_INSTALL --os-glance-install y Set to y if you would like Packstack to install Glance
CONFIG_CINDER_INSTALL --os-cinder-install y Set to y if you would like Packstack to install Cinder
CONFIG_NOVA_INSTALL --os-nova-install y Set to y if you would like Packstack to install Nova
CONFIG_HORIZON_INSTALL --os-horizon-install y Set to y if you would like Packstack to install Horizon
CONFIG_SWIFT_INSTALL --os-swift-install n Set to y if you would like Packstack to install Swift
CONFIG_CLIENT_INSTALL --os-client-install y Set to y if you would like Packstack to install the openstack client packages. An admin "rc" file will also be installed
CONFIG_NTP_SERVERS --ntp-servers Comma separated list of NTP servers. Leave plain if packstack should not install ntpd on instances.
CONFIG_NAGIOS_INSTALL --nagios-install n Set to y if you would like to install Nagios. Nagios provides additional tools for monitoring the OpenStack environment.
CONFIG_MYSQL_HOST --mysql-host 192.0.43.10 The IP address of the server on which to install MySQL.
CONFIG_MYSQL_USER root Username for the MySQL administrative user.
CONFIG_MYSQL_PW --mysql-pw Password for the MySQL administrative user. This value is randomly generated if you do not provide it.
CONFIG_QPID_HOST --qpid-host 192.0.43.10 The IP address of the server on which to install the QPID service.
CONFIG_KEYSTONE_HOST --keystone-host 192.0.43.10 The IP address of the server on which to install Keystone.
CONFIG_KEYSTONE_DB_PW The password to use for the Keystone to access database. This value is randomly generated if you do not provide it.
CONFIG_KEYSTONE_ADMINTOKEN The token to use for the Keystone service API. This value is randomly generated if you do not provide it.
CONFIG_KEYSTONE_ADMINPASSWD The password to use for the Keystone administrative user. This value is randomly generated if you do not provide it.
CONFIG_GLANCE_HOST --glance-host 192.0.43.10 The IP address of the server on which to install Glance.
CONFIG_GLANCE_DB_PW The password to use for the Glance to access database. This value is randomly generated if you do not provide it.
CONFIG_GLANCE_KS_PW The password to use for the Glance to authenticate with Keystone. This value is randomly generated if you do not provide it.
CONFIG_CINDER_HOST --cinder-host 192.0.43.10 The IP address of the server on which to install Cinder.
CONFIG_CINDER_DB_PW The password to use for the Cinder to access database. This value is randomly generated if you do not provide it.
CONFIG_CINDER_KS_PW The password to use for the Cinder to authenticate with Keystone. This value is randomly generated if you do not provide it.
CONFIG_CINDER_VOLUMES_CREATE --cinder-volumes-create y
The packstack utility expects storage for use with Cinder to be available on a volume group named cinder-volumes. If this volume group does not already exist then packstack is able to create it automatically.
Selecting y means that packstack will create raw disk image in the /var/lib/cinder and mount it for use by Cinder using a loopback device.
CONFIG_CINDER_VOLUMES_SIZE --cinder-volumes-size 20G
If you elected to have packstack create the cinder-volumes volume group for you then you will need to provide the desired size of it in gigabytes (GB).
CONFIG_NOVA_API_HOST --novaapi-host 192.0.43.10 The IP address of the server on which to install the Nova API service.
CONFIG_NOVA_CERT_HOST --novacert-host 192.0.43.10 The IP address of the server on which to install the Nova Certificate service.
CONFIG_NOVA_VNCPROXY_HOST --novavncproxy-hosts 192.0.43.10 The IP address of the server on which to install the Nova VNC proxy.
CONFIG_NOVA_COMPUTE_HOSTS --novacompute-hosts 192.0.43.10 A comma separated list of IP addresses on which to install the Nova Compute services.
CONFIG_NOVA_COMPUTE_PRIVIF --novacompute-privif eth1 Private interface for Flat DHCP on the Nova compute servers.
CONFIG_NOVA_NETWORK_HOST --novanetwork-host 192.0.43.10 The IP address of the server on which to install the Nova Network service.
CONFIG_NOVA_DB_PW The password to use for the Nova to access the database. This value is randomly generated if you do not provide it.
CONFIG_NOVA_KS_PW The password to use for the Nova to authenticate with Keystone. This value is randomly generated if you do not provide it.
CONFIG_NOVA_NETWORK_PUBIF --novanetwork-pubif eth0 Public interface on the Nova network server.
CONFIG_NOVA_NETWORK_PRIVIF --novanetwork-privif eth1 Private interface for Flat DHCP on the Nova network server.
CONFIG_NOVA_NETWORK_FIXEDRANGE --novanetwork-fixed-range 192.168.32.0/22 IP Range for Flat DHCP.
CONFIG_NOVA_NETWORK_FLOATRANGE --nova-network-floating-range 10.3.4.0/22 IP Range for Floating IP addresses.
CONFIG_NOVA_SCHED_HOST --novasched-host 192.0.43.10 The IP address of the server on which to install the Nova Scheduler service.
CONFIG_NOVA_SCHED_CPU_ALLOC_RATIO --novasched-cpu-allocation-ratio 16.0 The overcommitment ratio for virtual to physical CPUs. Set to 1.0 to disable CPU overcommitment.
CONFIG_NOVA_SCHED_RAM_ALLOC_RATIO --novasched-ram-allocation-ratio 1.5 The overcommitment ratio for virtual to physical RAM. Set to 1.0 to disable RAM overcommitment.
CONFIG_OSCLIENT_HOST --osclient-host 192.0.43.10 The IP address of the server on which to install the openstack client packages. An admin "rc" file will also be installed.
CONFIG_HORIZON_HOST --os-horizon-host 192.0.43.10 The IP address of the server on which to install Horizon.
CONFIG_HORIZON_SSL --os-horizon-ssl n To set up Horizon communication over HTTPS set this to y.
CONFIG_SSL_CERT --os-ssl-cert PEM encoded certificate to be used for SSL connections to the HTTPS server, leave blank if one should be generated. This certificate must not require a passphrase.
CONFIG_SSL_KEY --os-ssl-key Keyfile corresponding to the certificate if one was provided.
CONFIG_SWIFT_PROXY_HOSTS --os-swift-proxy 192.0.43.10 The IP address on which to install the Swift proxy service.
CONFIG_SWIFT_KS_PW The password to use for the Swift to authenticate with Keystone. This value is randomly generated if you do not provide it.
CONFIG_SWIFT_STORAGE_HOSTS --os-swift-storage 192.0.43.10 A comma separated list of IP addresses on which to install the Swift Storage services, each entry should take the format IP[/DEVICE], for example 192.0.43.10/vdb will install /dev/vdb on 192.0.43.10 as a swift storage device, if /DEVICE is omitted Packstack will create a loopback device for a test setup.
CONFIG_SWIFT_STORAGE_ZONES --os-swift-storage-zones 1 Number of swift storage zones, this number must be no bigger than the number of storage devices configured.
CONFIG_SWIFT_STORAGE_REPLICAS --os-swift-storage-replicas 1 Number of swift storage replicas, this number must be no bigger than the number of storage zones configured.
CONFIG_SWIFT_STORAGE_FSTYPE --os-swift-storage-fstype ext4 FileSystem type for storage nodes. Supported values are ext4 and xfs at this time.
CONFIG_REPO --additional-repo A comma separated list of URLs to any additional yum repositories to install.
CONFIG_RH_USER --rh-username To subscribe each server with Red Hat Subscription Manager, include this with CONFIG_RH_PW
CONFIG_RH_PW --rh-password To subscribe each server with Red Hat Subscription Manager, include this with CONFIG_RH_USER
CONFIG_RH_BETA_REPO --rh-beta-repo n To subscribe each server to the Red Hat Enterprise Linux Beta repository set this configuration key to y. This is only required for preview releases of Red Hat OpenStack.
CONFIG_SATELLITE_URL --rhn-satellite-server To subscribe each server to receive updates from a Satellite server provide the URL of the Satellite server. You must also provide a user name (CONFIG_SATELLITE_USERNAME) and password (CONFIG_SATELLITE_PASSWORD) or an access key (CONFIG_SATELLITE_AKEY) for authentication.
CONFIG_SATELLITE_USERNAME --rhn-satellite-username
Satellite servers require a user name for authentication. If using Satellite to distribute packages to your systems then you must set this configuration key to your Satellite username or provide an access key for authentication.
If you intend to use an access key for Satellite authentication then leave this configuration key blank.
CONFIG_SATELLITE_PASSWORD --rhn-satellite-password
Satellite servers require a password for authentication. If using Satellite to distribute packages to your systems then you must set this configuration key to your Satellite password or provide an access key for authentication.
If you intend to use an access key for Satellite authentication then leave this configuration key blank.
CONFIG_SATELLITE_AKEY --rhn-satellite-activation-key
Satellite servers are able to accept an access key for authentication. Set this configuration key to your Satellite access key if you have one.
If you intend to use a user name and password for Satellite authentication then leave this configuration key blank.
CONFIG_SATELLITE_CACERT --rhn-satellite-cacert
Specify the path to the certificate of the certificate authority that is used to verify that the connection with the Satellite server is secure. Leave this configuration key blank if you are not using Satellite in your deployment.
CONFIG_SATELLITE_PROFILE --rhn-satellite-profile
Specify the profile name that must be used to identify the system in Red Hat Network, if you require one.
CONFIG_SATELLITE_FLAGS --rhn-satellite-flags
Specify any additional Satellite flags that you need to be passed to the rhnreg_ks command. This configuration key accepts a comma separated list of flags. Valid flags are novirtinfo, norhnsd, and nopackages.
Refer to the Red Hat Satellite documentation for more information.
CONFIG_SATELLITE_PROXY --rhn-satellite-proxy-host
Specify the HTTP proxy that must be used when connecting to the Satellite server, if required.
CONFIG_SATELLITE_PROXY_USER --rhn-satellite-proxy-username
Specify the user name for authenticating with the HTTP proxy that must be used when connecting to the Satellite server, if required.
CONFIG_SATELLITE_PROXY_PW --rhn-satellite-proxy-password
Specify the password for authenticating with the HTTP proxy server that must be used when connecting to the Satellite server, if required.
CONFIG_NAGIOS_HOST --nagios-host The IP address of the server on which to install Nagios.
CONFIG_NAGIOS_PW --nagios-passwd The password of the nagiosadmin user on the Nagios server. This value will be randomly generated if it is not provided.

Important

The amount of space selected for CINDER_VOLUMES_SIZE must be available on the device used for /var/lib/cinder.

Important

Remember that the size of the Cinder volume group will restrict the amount of disk space that you can expose to compute instances.

Important

The packstack utility registers systems to Red Hat Network using Subscription Manager. You may encounter problems if your systems have already been registered and subscribed to the Red Hat OpenStack channels using RHN Classic.