File tree Expand file tree Collapse file tree 3 files changed +16
-9
lines changed Expand file tree Collapse file tree 3 files changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -56,10 +56,9 @@ listen_port = 6543
56
56
57
57
;; Unix socket is also used for -R.
58
58
;; On Debian it should be /var/run/postgresql
59
- ; unix_socket_dir = /tmp
59
+ unix_socket_dir = /tmp
60
60
;unix_socket_mode = 0777
61
61
;unix_socket_group =
62
- unix_socket_dir = /var/run/postgresql
63
62
64
63
;;;
65
64
;;; TLS settings for accepting clients
Original file line number Diff line number Diff line change
1
+ # Directory for PostgreSQL sockets, lockfiles and stats tempfiles
2
+ d /run/pgbouncer 2775 postgres postgres - -
Original file line number Diff line number Diff line change 8
8
update_cache : yes
9
9
cache_valid_time : 3600
10
10
11
- - name : Create directory for pgbouncer.pid
12
- file :
13
- path : /var/run/pgbouncer
14
- state : directory
15
- owner : postgres
16
- group : postgres
17
-
18
11
- name : PgBouncer - download latest release
19
12
get_url :
20
13
url : " https://www.pgbouncer.org/downloads/files/{{ pgbouncer_release }}/pgbouncer-{{ pgbouncer_release }}.tar.gz"
57
50
src : files/pgbouncer_config/pgbouncer.ini.j2
58
51
dest : /etc/pgbouncer/pgbouncer.ini
59
52
53
+ - name : PgBouncer - create a directory if it does not exist
54
+ file :
55
+ path : /etc/pgbouncer/userlist.txt
56
+ state : touch
57
+ group : postgres
58
+ owner : postgres
59
+
60
+ - name : import /etc/tmpfiles.d/pgbouncer.conf
61
+ template :
62
+ src : files/pgbouncer_config/tmpfiles.d-pgbouncer.conf.j2
63
+ dest : /etc/tmpfiles.d/pgbouncer.conf
64
+ become : yes
65
+
60
66
# Add systemd file for PgBouncer
61
67
- name : PgBouncer - import postgresql.service
62
68
template :
You can’t perform that action at this time.
0 commit comments