Chapter 4. Configuring the all-in-one OpenStack installation

The all-in-one Red Hat OpenStack Platform installation does not require configuration pre-deployment or post-deployment. However, you must create the following configuration files manually before you can deploy OpenStack:

  • $HOME/containers-prepare-parameters.yaml
  • $HOME/standalone_parameters.yaml

If you want to customize, develop, and test your all-in-one installation, 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

4.1. Generating YAML files for the all-in-one installation

To generate the containers-prepare-parameters.yaml and standalone_parameters.yaml files, complete the following steps:

  1. Generate the containers-prepare-parameters.yaml file that contains the default ContainerImagePrepare parameters:

    $ openstack tripleo container image prepare default --output-env-file $HOME/containers-prepare-parameters.yaml
  2. Create the $HOME/standalone_parameters.yaml file and configure basic parameters for your standalone OpenStack installation, including network configuration and some deployment options. In this example, network interface eth0 is a default interface, and network interface eth1 is the interface that you use to deploy OpenStack:

    export IP=192.168.25.2
    export NETMASK=24
    export INTERFACE=eth1
    
    cat <<EOF > $HOME/standalone_parameters.yaml
    parameter_defaults:
      CloudName: $IP
      ControlPlaneStaticRoutes: []
      Debug: true
      DeploymentUser: $USER
      DnsServers:
        - 1.1.1.1
        - 8.8.8.8
      DockerInsecureRegistryAddress:
        - $IP:8787
      NeutronPublicInterface: $INTERFACE
      NeutronDnsDomain: localdomain
      NeutronBridgeMappings: datacentre:br-ctlplane
      NeutronPhysicalBridge: br-ctlplane
      StandaloneEnableRoutedNetworks: false
      StandaloneHomeDir: $HOME
      StandaloneLocalMtu: 1500
    EOF

    You must configure the DnsServers parameter with your DNS address. For example, use the address from the /etc/resolv.conf file:

    $ cat /etc/resolv.conf
    192.168.122.1

    If you have an internal time source, or if your environment blocks access to external time sources, use the NtpServer parameter to define the time source that you want to use:

    NtpServer: clock.example.com

    If you want to use the all-in-one OpenStack installation in a virtual environment, you must define the virtualization type with the StandaloneExtraConfig parameter:

    StandaloneExtraConfig:
      NovaComputeLibvirtType: qemu