Add db-datanommer01, clean up postgres playbooks to be generic and not koji specific.

This commit is contained in:
Kevin Fenzi 2014-01-10 18:56:25 +00:00
parent 7a3df53822
commit 8cc4c30647
5 changed files with 26 additions and 39 deletions

View file

@ -12,27 +12,6 @@
tags:
- packages
- name: install koji package on koji db servers for schema
yum: name=koji state=installed
tags:
- packages
when: is_kojidb == "True"
- name: initialize postgresql
command: service postgresql initdb
creates=/var/lib/pgsql/data/postgresql.conf
ignore_errors: true
tags:
- service
- name: setup postgresql koji config file
template: src=pg_hba.conf.j2 dest=/var/lib/pgsql/data/pg_hba.conf mode=600 backup=yes
notify:
- restart postgresql
tags:
- config
when: is_kojidb == "True"
- name: Set postgresql-server to run on boot
service: name=postgresql enabled=yes
ignore_errors: true