forked from saltstack-formulas/postgres-formula
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpillar.example
80 lines (72 loc) · 1.96 KB
/
pillar.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
postgres:
pg_hba.conf: salt://postgres/pg_hba.conf
commands:
initdb: service postgresql initdb
use_upstream_repo: False
lookup:
pkg: 'postgresql-9.3'
pkg_client: 'postgresql-client-9.3'
pkgs_extra:
- postgresql-contrib
- postgresql-plpython
pg_hba: '/etc/postgresql/9.3/main/pg_hba.conf'
users:
localUser:
ensure: present
password: '98ruj923h4rf'
createdb: False
createroles: False
createuser: False
inherit: True
replication: False
remoteUser:
ensure: present
password: '98ruj923h4rf'
createdb: False
createroles: False
createuser: False
inherit: True
replication: False
absentUser:
ensure: absent
password: '98ruj923h4rf'
createdb: False
createroles: False
createuser: False
inherit: True
replication: False
# This section cover this ACL management of the pg_hba.conf file.
# <type>, <database>, <user>, [host], <method>
acls:
- ['local', 'db1', 'localUser']
- ['host', 'db2', 'remoteUser', '123.123.0.0/24']
databases:
db1:
owner: 'localUser'
user: 'localUser'
template: 'template0'
lc_ctype: 'C.UTF-8'
lc_collate: 'C.UTF-8'
# optional schemas to enable on database
schemas:
uuid_ossp:
owner: localUser
# optional extensions to enable on database
extensions:
uuid-ossp:
schema: uuid_ossp
db2:
owner: 'localUser'
user: 'remoteUser'
template: 'template0'
lc_ctype: 'C.UTF-8'
lc_collate: 'C.UTF-8'
# optional extensions to enable on database
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
# This section will append your configuration to postgresql.conf.
postgresconf: |
listen_addresses = 'localhost,*'