Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
fix: Attemp to fix config map
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Christie committed Nov 14, 2023
1 parent 77904d4 commit da66240
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,4 @@ metadata:
namespace: {{ stack_namespace }}
data:
postgresql.conf: |
#--------------------------------------------------------------------------
# CONNECTIONS AND AUTHENTICATION
#--------------------------------------------------------------------------
listen_addresses = '*'
max_connections = {{ database_conf.max_connections }}
shared_buffers = {{ database_conf.shared_buffers }}
work_mem = {{ database_conf.work_mem }}
{{ database_conf }}
15 changes: 8 additions & 7 deletions roles/fragalysis-stack/vars/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,14 @@ database_image: library/postgres
database_image_tag: '12.16'
database_port: 5432

# Configuration of the DB server.
# Values written to the postgres-conf ConfigMap.
# Values written here should be the typical default.
database_conf:
max_connections: 100
shared_buffers: 128MB
work_mem: 4MB
# Configuration of the DB server. Content written to the postgres-conf ConfigMap.
# Values defined here should be typical defaults for the default database_image_tag.
# If users want to change the values they must provide a replacement of
# the entire configuration file.
database_conf: |
max_connections = 100
shared_buffers = 128MB
work_mem = 4MB
# For the django application database.
# Needs at least 400MB, size it accordingly.
Expand Down

0 comments on commit da66240

Please sign in to comment.