db-fas: clean up some old logic
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
01676bfdf1
commit
373f7a2a83
1 changed files with 1 additions and 50 deletions
|
@ -11,18 +11,7 @@
|
||||||
stream=12
|
stream=12
|
||||||
profiles=
|
profiles=
|
||||||
state=enabled
|
state=enabled
|
||||||
when: ansible_distribution_major_version|int >= 8 and ansible_distribution == 'RedHat' and not inventory_hostname.startswith(('db-fas01.stg','db-koji01'))
|
when: ansible_distribution_major_version|int == 8
|
||||||
|
|
||||||
- name: on db-fas01 enable the postgresql 9.6 module.
|
|
||||||
copy:
|
|
||||||
dest: /etc/dnf/modules.d/postgresql.module
|
|
||||||
content: |
|
|
||||||
[postgresql]
|
|
||||||
name=postgresql
|
|
||||||
stream=9.6
|
|
||||||
profiles=
|
|
||||||
state=enabled
|
|
||||||
when: inventory_hostname.startswith('db-fas01')
|
|
||||||
|
|
||||||
- name: on db-koji01 and db01.stg enable the postgresql 15 module.
|
- name: on db-koji01 and db01.stg enable the postgresql 15 module.
|
||||||
copy:
|
copy:
|
||||||
|
@ -182,44 +171,6 @@
|
||||||
- cron
|
- cron
|
||||||
- postgresql
|
- postgresql
|
||||||
|
|
||||||
#- name: install script to kill long running pgsql jobs
|
|
||||||
# copy: >
|
|
||||||
# src=kill_idle_xact_92.sh
|
|
||||||
# dest=/usr/local/bin/kill_idle_xact_92.sh
|
|
||||||
# mode=0755
|
|
||||||
# when: inventory_hostname.startswith('db-koji01')
|
|
||||||
# tags:
|
|
||||||
# - cron
|
|
||||||
# - postgresql
|
|
||||||
#
|
|
||||||
#- name: Set up a cron job to kill long postresql queries
|
|
||||||
# copy: >
|
|
||||||
# src=koji-cleanup-locks.cron
|
|
||||||
# dest=/etc/cron.d/koji-cleanup-locks.cron
|
|
||||||
# when: inventory_hostname.startswith('db-koji01')
|
|
||||||
# tags:
|
|
||||||
# - cron
|
|
||||||
# - postgresql
|
|
||||||
#
|
|
||||||
- name: Set up a script for cron job to clean long fas sessions on fas database server only
|
|
||||||
copy: >
|
|
||||||
src=fasdb-cleanup-sessions
|
|
||||||
dest=/usr/local/bin/fasdb-cleanup-sessions
|
|
||||||
mode=755
|
|
||||||
when: inventory_hostname.startswith('db-fas01')
|
|
||||||
tags:
|
|
||||||
- cron
|
|
||||||
- postgresql
|
|
||||||
|
|
||||||
- name: Set up a cron job to clean long fas sessions on fas database server only
|
|
||||||
copy: >
|
|
||||||
src=fasdb-cleanup-sessions.cron
|
|
||||||
dest=/etc/cron.d/fasdb-cleanup-sessions.cron
|
|
||||||
when: inventory_hostname.startswith('db-fas01')
|
|
||||||
tags:
|
|
||||||
- cron
|
|
||||||
- postgresql
|
|
||||||
|
|
||||||
- name: Set up datanommer/datagrepper SAR script
|
- name: Set up datanommer/datagrepper SAR script
|
||||||
copy: >
|
copy: >
|
||||||
src=datagrepper_sar.py
|
src=datagrepper_sar.py
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue