Move postgresql stuff around.
This commit is contained in:
parent
51746b66d0
commit
3dae75234b
4 changed files with 21 additions and 8 deletions
|
@ -37,7 +37,6 @@
|
||||||
- /srv/web/infra/ansible/roles/nagios_client
|
- /srv/web/infra/ansible/roles/nagios_client
|
||||||
- /srv/web/infra/ansible/roles/fas_client
|
- /srv/web/infra/ansible/roles/fas_client
|
||||||
- /srv/web/infra/ansible/roles/postgresql_server
|
- /srv/web/infra/ansible/roles/postgresql_server
|
||||||
- /srv/web/infra/ansible/roles/koji_db
|
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- include: $tasks/hosts.yml
|
- include: $tasks/hosts.yml
|
||||||
|
@ -47,6 +46,20 @@
|
||||||
- include: $tasks/sudo.yml
|
- include: $tasks/sudo.yml
|
||||||
- include: $tasks/collectd/client.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
|
# TODO: add iscsi task
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
|
|
|
@ -2,13 +2,6 @@
|
||||||
#
|
#
|
||||||
# These tasks only run on koji db servers from the postgresql playbook
|
# 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
|
# create a koji database if not already created
|
||||||
#
|
#
|
||||||
|
|
|
@ -19,6 +19,13 @@
|
||||||
tags:
|
tags:
|
||||||
- service
|
- 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
|
- name: Set postgresql-server to run on boot
|
||||||
service: name=postgresql enabled=yes
|
service: name=postgresql enabled=yes
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue