ansible-roles/postgresql
2021-05-04 14:19:18 +02:00
..
defaults add postgresql_version to empty 2020-12-07 16:24:11 +01:00
files Move all trusted GPG keys to file repository 2021-05-03 14:23:13 +02:00
handlers Set handler postgresql with systemctl daemon-reload 2020-03-09 18:04:22 +01:00
meta change repositories URL 2019-03-21 15:31:58 +01:00
tasks Use 'loop' syntax instead of 'with_items' 2021-05-04 14:19:18 +02:00
templates postgresql: Fix postgresql@.service customization 2021-01-08 14:46:38 +01:00
tests Use 'loop' syntax instead of 'with_items' 2021-05-04 14:19:18 +02:00
.kitchen.yml Kitchen: Change base image to evolix/ansible 2017-06-02 08:38:08 -04:00
README.md Improve documentation 2017-01-05 18:22:06 +01:00

PostgreSQL

Installation and basic configuration of PostgreSQL.

Tasks

Tasks are in several files, included in tasks/main.yml :

  • packages.yml : packages installation ;
  • config.yml : configurations ;
  • nrpe.yml : nrpe user for Nagios checks ;
  • munin.yml : Munin plugins ;
  • logrotate.yml : logrotate configuration.

Available variables

Main variables are :

  • postgresql_databases: list of databases for Munin plugins
  • postgresql_shared_buffers: (default: 4GB)
  • postgresql_work_mem: (default: 8MB)
  • postgresql_random_page_cost: (default: 1.5)
  • postgresql_effective_cache_size: (default: 14GB)

The full list of variables (with default values) can be found in defaults/main.yml.