29 lines
829 B
YAML
29 lines
829 B
YAML
---
|
|
# PostgreSQL port
|
|
postgres_port: 5432
|
|
|
|
# PostgreSQL admin user (only for database management)
|
|
postgres_admin_user: postgres
|
|
|
|
# PostgreSQL admin password (REQUIRED - must be set explicitly)
|
|
# Set via inventory, host_vars, or ansible-vault
|
|
# postgres_admin_password: ""
|
|
|
|
# PostgreSQL data directory
|
|
postgres_data_dir: /var/lib/postgres/data
|
|
|
|
# Binding address(es)
|
|
postgres_listen_addresses: "127.0.0.1,{{ podman_subnet_gateway | default('10.88.0.1' }}"
|
|
|
|
# Firewall configuration
|
|
postgres_firewall_allowed_sources:
|
|
- 127.0.0.0/8 # Localhost
|
|
- "{{ podman_subnet | default('10.88.0.0/16') }}" # Podman bridge network
|
|
|
|
# Performance tuning (adjust based on your hardware)
|
|
postgres_shared_buffers: 256MB
|
|
postgres_effective_cache_size: 1GB
|
|
postgres_maintenance_work_mem: 64MB
|
|
postgres_work_mem: 4MB
|
|
postgres_max_connections: 100
|