Allow to specify a tablespace for a database

* Tablespaces have to be created before the databases
* Add pillar examples
* Add tests
This commit is contained in:
Javier Bértoli
2016-06-08 07:36:28 -03:00
parent 87a9980729
commit 9719e2354e
3 changed files with 42 additions and 26 deletions

View File

@@ -47,6 +47,9 @@ postgres:
- ['local', 'db1', 'localUser']
- ['host', 'db2', 'remoteUser', '123.123.0.0/24']
tablespaces:
my_space: /srv/my_tablespace
databases:
db1:
owner: 'localUser'
@@ -68,9 +71,10 @@ postgres:
template: 'template0'
lc_ctype: 'C.UTF-8'
lc_collate: 'C.UTF-8'
tablespace: 'my_space'
# optional extensions to enable on database
extensions:
postgis:
# extensions:
# postgis:
# backup extension defaults to .bak if postgresconf_backup is True.
# Set to False to stop creation of backup on postgresql.conf changes.
postgresconf_backup: True