Skip to content

Configuration File

Sorecchione07435 edited this page May 11, 2026 · 18 revisions

Configuration File Reference

The configuration file is a YAML file that controls every aspect of the OpenStack deployment. It can be generated automatically with:

deploystack deploy --allinone --generate-only

Or as an empty template to fill in manually with:

deploystack generate-config ~/openstack-config.yaml

Once ready, start the deployment with:

deploystack deploy --config-file <path>

Table of Contents


passwords

Service passwords used during deployment. All fields must be filled in before starting the deployment.

Key Description
ADMIN_PASSWORD Password for the OpenStack admin user.
SERVICE_PASSWORD Shared password for internal OpenStack services (Nova, Neutron, Cinder, etc.).
RABBITMQ_PASSWORD Password for the RabbitMQ message broker.
DATABASE_PASSWORD Password for the MariaDB/MySQL OpenStack services databases.
DEMO_PASSWORD Password for the demo user.

Example:

passwords:
  ADMIN_PASSWORD: "MyAdminSecret"
  SERVICE_PASSWORD: "MyServiceSecret"
  RABBITMQ_PASSWORD: "MyRabbitSecret"
  DATABASE_PASSWORD: "MyDBSecret"
  DEMO_PASSWORD: "MyDemoSecret"

network

Host network configuration. These values are automatically populated when using --allinone, as the tool auto-detects the active network interface.

Key Description
HOST_IP IP address of the host machine (e.g. 192.168.1.100).
HOST_IP_NETMASK Netmask of the host network (e.g. 255.255.255.0).
HOST_IP_CIDR Host IP in CIDR notation (e.g. 192.168.1.100/24).

Example:

network:
  HOST_IP: "192.168.1.100"
  HOST_IP_NETMASK: "255.255.255.0"
  HOST_IP_CIDR: "192.168.1.100/24"

public_network

Defines the external provider network that Neutron will use to allocate floating IPs. This must match your actual physical network.

Key Description
PUBLIC_SUBNET_CIDR CIDR of the public subnet (e.g. 192.168.1.0/24).
PUBLIC_SUBNET_RANGE_START First IP of the floating IP pool (e.g. 192.168.1.200).
PUBLIC_SUBNET_RANGE_END Last IP of the floating IP pool (e.g. 192.168.1.250).
PUBLIC_SUBNET_GATEWAY Gateway of the public subnet (e.g. 192.168.1.1).
PUBLIC_SUBNET_DNS_SERVERS DNS server(s) for instances (e.g. 8.8.8.8).

Example:

public_network:
  PUBLIC_SUBNET_CIDR: "192.168.1.0/24"
  PUBLIC_SUBNET_RANGE_START: "192.168.1.200"
  PUBLIC_SUBNET_RANGE_END: "192.168.1.250"
  PUBLIC_SUBNET_GATEWAY: "192.168.1.1"
  PUBLIC_SUBNET_DNS_SERVERS: "8.8.8.8"

neutron

Neutron network service configuration. Supports two drivers: OVS (Open vSwitch) and OVN (Open Virtual Network).

Key Values Description
DRIVER ovs, ovn Network driver to use for Neutron.

neutron.ovs — OVS-specific settings

Used only when DRIVER is set to ovs.

Key Default Description
CREATE_BRIDGES yes Automatically create OVS bridges during deployment.
PUBLIC_BRIDGE_INTERFACE Physical network interface to attach to the public bridge (auto-detected with --allinone).
PUBLIC_BRIDGE br-ex Name of the OVS bridge for the external/public network.
INTERNAL_BRIDGE br-internal Name of the OVS bridge for the internal tenant network. Not used with OVN.

neutron.ovn — OVN-specific settings

Used only when DRIVER is set to ovn.

Key Default Description
CREATE_BRIDGES yes Automatically create OVS/OVN bridges during deployment.
OVN_NB_PORT 6641 Port for the OVN Northbound database.
OVN_SB_PORT 6642 Port for the OVN Southbound database.
OVN_PUBLIC_BRIDGE_INTERFACE Physical interface to attach to the OVN public bridge.
OVN_PUBLIC_BRIDGE br-ex Name of the bridge for the external network.
OVN_ENCAP_TYPE geneve Encapsulation type: geneve or vxlan.
OVN_L3_SCHEDULER leastloaded L3 scheduling algorithm: leastloaded or chance.
ENABLE_DISTRIBUTED_FLOATING_IP no Enable distributed floating IPs (DVR-like with OVN).

neutron.tenant_network — Tenant network settings

Common to both OVS and OVN.

Key Default Description
TYPE geneve Tenant network type. OVN supports geneve; OVS supports vxlan, gre, vlan.
VNI_RANGE 1:65536 Range of VNI (Virtual Network Identifier) values.

neutron.provider_networks — Provider networks

Defines the physical network mappings for Neutron. By default, a single public flat network is mapped to br-ex.

provider_networks:
  - name: "public"
    bridge: "br-ex"
    type: "flat"
  # Add more if you have multiple physnets:
  # - name: "internal"
  #   bridge: "br-internal"
  #   type: "flat"

⚠️ Note: DeployStack currently supports only two network bridges: br-ex for public and br-int for internal.
Any additional networks defined in provider_networks will be ignored, as the tool does not currently support creating more than two bridges.
This setup is sufficient for a standard single-node OpenStack installation.
🔜 Future versions will aim to support multiple provider networks and bridges.


cinder

Block storage configuration for the Cinder service. Uses LVM as the backend.

Note: Cinder is only deployed if optional_services.INSTALL_CINDER is set to yes.

cinder.lvm

Key Default Description
PHYSICAL_VOLUME Path to a real physical volume to use as LVM backend (e.g. /dev/sdb). Leave empty to use a loopback file instead.
CINDER_VOLUME_LVM_PHYSICAL_PV_LOOP_NAME /dev/loop0 Loopback device name. Used only if PHYSICAL_VOLUME is not set.
CINDER_VOLUME_LVM_IMAGE_FILE_PATH /var/lib/cinder/cinder-volumes.img Path of the loopback image file on disk.
CINDER_VOLUME_LVM_IMAGE_SIZE_IN_GB 5 Size of the LVM image in GB. Ignored if a physical volume is specified.

Example (loopback):

cinder:
  lvm:
    PHYSICAL_VOLUME: ""
    CINDER_VOLUME_LVM_IMAGE_FILE_PATH: "/var/lib/cinder/cinder-volumes.img"
    CINDER_VOLUME_LVM_IMAGE_SIZE_IN_GB: "20"

Example (physical volume):

cinder:
  lvm:
    PHYSICAL_VOLUME: "/dev/sdb"

compute

Nova compute configuration.

Key Default Description
NOVA_COMPUTE_VIRT_TYPE kvm Virtualization type. Use kvm on bare metal, qemu inside a virtual machine (nested virtualization).
CPU_ALLOCATION_RATIO 4.0 Overcommit ratio for vCPUs (e.g. 4.0 means 4 vCPUs per physical core).
RAM_ALLOCATION_RATIO 1.5 Overcommit ratio for RAM.
DISK_ALLOCATION_RATIO 1.5 Overcommit ratio for disk.

optional_services

Controls which optional OpenStack services are installed.

Key Default Description
INSTALL_CINDER no Install the Cinder block storage service.
INSTALL_HORIZON yes Install the Horizon web dashboard.

Coming soon: Heat (Orchestration), Octavia (Load Balancer), Barbican (Key Manager).


openstack

General OpenStack deployment settings.

Key Default Description
OPENSTACK_RELEASE caracal OpenStack release to deploy.
REGION_NAME RegionOne Name of the OpenStack region.

For issues or contributions, visit the project repository.

Clone this wiki locally