Move postgresql stuff around.

This commit is contained in:
Kevin Fenzi 2013-09-12 22:56:34 +00:00
parent 51746b66d0
commit 3dae75234b
4 changed files with 21 additions and 8 deletions

View file

@ -37,7 +37,6 @@
- /srv/web/infra/ansible/roles/nagios_client
- /srv/web/infra/ansible/roles/fas_client
- /srv/web/infra/ansible/roles/postgresql_server
- /srv/web/infra/ansible/roles/koji_db
tasks:
- include: $tasks/hosts.yml
@ -47,6 +46,20 @@
- include: $tasks/sudo.yml
- include: $tasks/collectd/client.yml
- name: make koji db
hosts: dbserver-secondary
gather_facts: no
sudo: yes
sudo_user: postgres
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- ${private}/vars.yml
- ${vars}/${ansible_distribution}.yml
roles:
- /srv/web/infra/ansible/roles/koji_db
# TODO: add iscsi task
handlers:

View file

@ -2,13 +2,6 @@
#
# These tasks only run on koji db servers from the postgresql playbook
#
- 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
#
# create a koji database if not already created
#

View file

@ -19,6 +19,13 @@
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
- name: Set postgresql-server to run on boot
service: name=postgresql enabled=yes
ignore_errors: true