postgresql: add variable to configure binding addresses (default: 127.0.0.1)
This commit is contained in:
parent
1e19418fb0
commit
4d1d77faaf
3 changed files with 8 additions and 1 deletions
|
@ -12,6 +12,8 @@ The **patch** part changes is incremented if multiple releases happen the same m
|
|||
|
||||
### Added
|
||||
|
||||
* postgresql: add variable to configure binding addresses (default: 127.0.0.1)
|
||||
|
||||
### Changed
|
||||
|
||||
* fail2ban: Give the possibility to override jail.local (with fail2ban_override_jaillocal)
|
||||
|
|
|
@ -8,6 +8,10 @@ postgresql_work_mem: 8MB
|
|||
postgresql_random_page_cost: 1.5
|
||||
postgresql_effective_cache_size: "{{ (ansible_memtotal_mb * 0.5) | int }}MB"
|
||||
|
||||
# Binding
|
||||
postgresql_listen_addresses:
|
||||
- "127.0.0.1"
|
||||
|
||||
# PostgreSQL version
|
||||
postgresql_version: ''
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
# Tuning
|
||||
shared_buffers = {{ postgresql_shared_buffers }}
|
||||
work_mem = {{ postgresql_work_mem }}
|
||||
listen_addresses = '{{ postgresql_listen_addresses | join(',') }}'
|
||||
#shared_preload_libraries = 'pg_stat_statements'
|
||||
#synchronous_commit = off
|
||||
{% if postgresql_version is version('9.5', '<') %}
|
||||
|
@ -13,7 +14,7 @@ checkpoint_completion_target = 0.9
|
|||
random_page_cost = {{ postgresql_random_page_cost }}
|
||||
effective_cache_size = {{ postgresql_effective_cache_size }}
|
||||
|
||||
# Loging
|
||||
# Logging
|
||||
log_min_duration_statement = 1s
|
||||
log_checkpoints = on
|
||||
log_lock_waits = on
|
||||
|
|
Loading…
Add table
Reference in a new issue