-
Notifications
You must be signed in to change notification settings - Fork 1
Configuration File
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-onlyOr as an empty template to fill in manually with:
deploystack generate-config ~/openstack-config.yamlOnce ready, start the deployment with:
deploystack deploy --config-file <path>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"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"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 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. |
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. |
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). |
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. |
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-exforpublicandbr-intforinternal.
Any additional networks defined inprovider_networkswill 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.
Block storage configuration for the Cinder service. Uses LVM as the backend.
Note: Cinder is only deployed if
optional_services.INSTALL_CINDERis set toyes.
| 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"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. |
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).
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.