2014-05-06 11:48:21 -06:00
|
|
|
postgres:
|
2014-07-27 22:04:57 -04:00
|
|
|
pg_hba.conf: salt://postgres/pg_hba.conf
|
2015-04-22 17:47:02 -05:00
|
|
|
use_upstream_repo: False
|
2015-02-01 14:40:45 +00:00
|
|
|
|
2016-07-08 15:34:45 -05:00
|
|
|
pkg: 'postgresql-9.3'
|
|
|
|
pkg_client: 'postgresql-client-9.3'
|
|
|
|
pkgs_extra:
|
|
|
|
- postgresql-contrib
|
|
|
|
- postgresql-plpython
|
2014-07-27 22:04:57 -04:00
|
|
|
|
|
|
|
users:
|
|
|
|
localUser:
|
2015-10-06 13:24:53 +02:00
|
|
|
ensure: present
|
2014-07-27 22:04:57 -04:00
|
|
|
password: '98ruj923h4rf'
|
|
|
|
createdb: False
|
2015-05-05 15:10:34 -07:00
|
|
|
createroles: False
|
|
|
|
createuser: False
|
|
|
|
inherit: True
|
|
|
|
replication: False
|
2014-07-27 22:04:57 -04:00
|
|
|
|
|
|
|
remoteUser:
|
2015-10-06 13:24:53 +02:00
|
|
|
ensure: present
|
|
|
|
password: '98ruj923h4rf'
|
|
|
|
createdb: False
|
|
|
|
createroles: False
|
|
|
|
createuser: False
|
|
|
|
inherit: True
|
|
|
|
replication: False
|
|
|
|
|
|
|
|
absentUser:
|
|
|
|
ensure: absent
|
2014-07-27 22:04:57 -04:00
|
|
|
password: '98ruj923h4rf'
|
|
|
|
createdb: False
|
2015-05-05 15:10:34 -07:00
|
|
|
createroles: False
|
|
|
|
createuser: False
|
|
|
|
inherit: True
|
|
|
|
replication: False
|
2014-07-27 22:04:57 -04:00
|
|
|
|
|
|
|
# This section cover this ACL management of the pg_hba.conf file.
|
|
|
|
# <type>, <database>, <user>, [host], <method>
|
|
|
|
acls:
|
|
|
|
- ['local', 'db1', 'localUser']
|
2014-10-10 22:35:47 -05:00
|
|
|
- ['host', 'db2', 'remoteUser', '123.123.0.0/24']
|
2014-07-27 22:04:57 -04:00
|
|
|
|
2016-06-08 07:36:28 -03:00
|
|
|
tablespaces:
|
2016-08-05 20:22:51 +02:00
|
|
|
my_space:
|
|
|
|
directory: /srv/my_tablespace
|
|
|
|
owner: localUser
|
2016-06-08 07:36:28 -03:00
|
|
|
|
2014-07-27 22:04:57 -04:00
|
|
|
databases:
|
|
|
|
db1:
|
|
|
|
owner: 'localUser'
|
|
|
|
template: 'template0'
|
2016-07-19 10:10:56 -05:00
|
|
|
lc_ctype: 'en_US.UTF-8'
|
|
|
|
lc_collate: 'en_US.UTF-8'
|
2015-11-02 09:41:41 +03:00
|
|
|
# optional schemas to enable on database
|
2015-11-02 09:41:41 +03:00
|
|
|
schemas:
|
|
|
|
uuid_ossp:
|
|
|
|
owner: localUser
|
2015-11-02 09:41:41 +03:00
|
|
|
# optional extensions to enable on database
|
2015-07-23 17:51:24 +03:00
|
|
|
extensions:
|
2015-11-02 09:41:41 +03:00
|
|
|
uuid-ossp:
|
|
|
|
schema: uuid_ossp
|
2014-07-27 22:04:57 -04:00
|
|
|
db2:
|
|
|
|
owner: 'localUser'
|
|
|
|
user: 'remoteUser'
|
|
|
|
template: 'template0'
|
2016-07-19 10:10:56 -05:00
|
|
|
lc_ctype: 'en_US.UTF-8'
|
|
|
|
lc_collate: 'en_US.UTF-8'
|
2016-06-08 07:36:28 -03:00
|
|
|
tablespace: 'my_space'
|
2015-07-23 17:51:24 +03:00
|
|
|
# optional extensions to enable on database
|
2016-06-08 07:36:28 -03:00
|
|
|
# extensions:
|
|
|
|
# postgis:
|
2016-03-14 19:19:32 +00:00
|
|
|
# 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
|
2014-10-06 11:34:43 +02:00
|
|
|
# This section will append your configuration to postgresql.conf.
|
|
|
|
postgresconf: |
|
|
|
|
listen_addresses = 'localhost,*'
|
|
|
|
|