Add postgresql config

This commit is contained in:
Kevin Fenzi 2013-09-12 22:40:01 +00:00
parent 35c1ff1d8c
commit 9d56847976
2 changed files with 11 additions and 0 deletions

View file

@ -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'

View 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