Add postgresql config
This commit is contained in:
parent
35c1ff1d8c
commit
9d56847976
2 changed files with 11 additions and 0 deletions
|
@ -2,6 +2,12 @@
|
|||
#
|
||||
# These tasks only run on koji db servers from the postgresql playbook
|
||||
#
|
||||
- name: iptables
|
||||
template: src=templates/pg_hba.conf.j2 dest=/var/lib/pgsql/data/pg_hba.conf mode=600 backup=yes
|
||||
notify:
|
||||
- restart postgresql
|
||||
tags:
|
||||
- config
|
||||
|
||||
#
|
||||
# create a koji database if not already created
|
||||
|
@ -29,3 +35,4 @@
|
|||
tags:
|
||||
- db
|
||||
only_if: '$is_kojidb'
|
||||
|
||||
|
|
4
roles/koji_db/templates/pg_hba.conf.j2
Normal file
4
roles/koji_db/templates/pg_hba.conf.j2
Normal file
|
@ -0,0 +1,4 @@
|
|||
local all all ident
|
||||
host koji koji {{ ansible_eth0["ipv4"]["address"] }} 255.255.255.255 md5
|
||||
host all all 0.0.0.0 0.0.0.0 md5
|
||||
host all all ::1/128 md5
|
Loading…
Add table
Add a link
Reference in a new issue