Chapter 4. Configuring the all-in-one Red Hat OpenStack Platform environment
To create an all-in-one Red Hat OpenStack Platform environment, include four environment files with the openstack tripleo deploy command. You must create two of the configuration files, shown below:
- $HOME/containers-prepare-parameters.yaml
- $HOME/standalone_parameters.yaml
For more information see Section 4.1, “Generating YAML files for the all-in-one Red Hat OpenStack Platform (RHOSP) environment”.
Two environment files are provided for you in the /usr/share/openstack-tripleo-heat-templates/ directory:
- /usr/share/openstack-tripleo-heat-templates/environments/standalone/standalone-tripleo.yaml
- /usr/share/openstack-tripleo-heat-templates/roles/Standalone.yaml
You can customize the all-in-one environment for development or testing. Include modified values for the parameters in either the standalone-tripleo.yaml or Standalone.yaml configuration files in a newly created yaml file in your home directory. Include this file in the openstack tripleo deploy command.
4.1. Generating YAML files for the all-in-one Red Hat OpenStack Platform (RHOSP) environment Copy linkLink copied to clipboard!
To generate the containers-prepare-parameters.yaml and standalone_parameters.yaml files, complete the following steps:
Generate the
containers-prepare-parameters.yamlfile that contains the defaultContainerImagePrepareparameters:openstack tripleo container image prepare default --output-env-file $HOME/containers-prepare-parameters.yaml
[stack@all-in-one]$ openstack tripleo container image prepare default --output-env-file $HOME/containers-prepare-parameters.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow Edit the
containers-prepare-parameters.yamlfile and include your Red Hat credentials in theContainerImageRegistryCredentialsparameter so that the deployment process can authenticate with registry.redhat.io and pull container images successfully:Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteTo avoid entering your password in plain text, create a Red Hat Service Account. For more information, see Red Hat Container Registry Authentication:
Set the
ContainerImageRegistryLoginparameter totruein thecontainers-prepare-parameters.yaml:Copy to Clipboard Copied! Toggle word wrap Toggle overflow If you want to use the all-in-one host as the container registry, omit this parameter and include
--local-push-destinationin theopenstack tripleo container image preparecommand. For more information, see Preparing container images.Create the
$HOME/standalone_parameters.yamlfile and configure basic parameters for your all-in-one RHOSP environment, including network configuration and some deployment options. In this example, network interfaceeth1is the interface on the management network that you use to deploy RHOSP.eth1has the IP address 192.168.25.2:Copy to Clipboard Copied! Toggle word wrap Toggle overflow If you use only a single network interface, you must define the default route:
ControlPlaneStaticRoutes: - ip_netmask: 0.0.0.0/0 next_hop: $GATEWAY default: trueControlPlaneStaticRoutes: - ip_netmask: 0.0.0.0/0 next_hop: $GATEWAY default: trueCopy to Clipboard Copied! Toggle word wrap Toggle overflow If you have an internal time source, or if your environment blocks access to external time sources, use the
NtpServerparameter to define the time source that you want to use:parameter_defaults: NtpServer: - clock.example.comparameter_defaults: NtpServer: - clock.example.comCopy to Clipboard Copied! Toggle word wrap Toggle overflow If you want to use the all-in-one RHOSP installation in a virtual environment, you must define the virtualization type with the
NovaComputeLibvirtTypeparameter:parameter_defaults: NovaComputeLibvirtType: qemu
parameter_defaults: NovaComputeLibvirtType: qemuCopy to Clipboard Copied! Toggle word wrap Toggle overflow The Load-balancing service (octavia) does not require that you configure SSH. However, if you want SSH access to the load-balancing instances (amphorae), add the
OctaviaAmphoraSshKeyFileparameter with a value of the absolute path to your public key file for the stack user:OctaviaAmphoraSshKeyFile: "/home/stack/.ssh/id_rsa.pub"