此内容没有您所选择的语言版本。
Chapter 4. Configuring the all-in-one Red Hat OpenStack Platform environment
You must create the following configuration files manually before you can deploy the all-in-one Red Hat OpenStack Platform environment:
-
$HOME/containers-prepare-parameters.yaml -
$HOME/standalone_parameters.yaml
If you want to customize the all-in-one environment for development or testing, edit the following configuration files:
-
/usr/share/openstack-tripleo-heat-templates/environments/standalone/standalone-tripleo.yaml -
/usr/share/openstack-tripleo-heat-templates/roles/Standalone.yaml
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:ContainerImageRegistryCredentials: registry.redhat.io: <USERNAME>: "<PASSWORD>"ContainerImageRegistryCredentials: registry.redhat.io: <USERNAME>: "<PASSWORD>"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:ContainerImageRegistryLogin: true
ContainerImageRegistryLogin: trueCopy to Clipboard Copied! Toggle word wrap Toggle overflow Create the
$HOME/standalone_parameters.yamlfile and configure basic parameters for your all-in-one Red Hat OpenStack Platform environment, including network configuration and some deployment options. In this example, network interfaceeth1is the interface on the management network that you use to deploy OpenStack.eth1has the IP address 192.168.25.2:Copy to Clipboard Copied! Toggle word wrap Toggle overflow You must configure the
DnsServersparameter with your DNS address. You can find this address in the/etc/resolv.conffile:[stack@all-in-one]$ cat /etc/resolv.conf 192.168.122.1
[stack@all-in-one]$ cat /etc/resolv.conf 192.168.122.1Copy 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:NtpServer: clock.example.com
NtpServer: clock.example.comCopy to Clipboard Copied! Toggle word wrap Toggle overflow If you want to use the all-in-one Red Hat OpenStack Platform installation in a virtual environment, you must define the virtualization type with the
StandaloneExtraConfigparameter:StandaloneExtraConfig: NovaComputeLibvirtType: qemu
StandaloneExtraConfig: NovaComputeLibvirtType: qemuCopy to Clipboard Copied! Toggle word wrap Toggle overflow