remove db-koji02 as it is now db-koji01
This commit is contained in:
parent
9fbe3df30b
commit
3015b75976
1 changed files with 6 additions and 6 deletions
|
@ -104,7 +104,7 @@
|
||||||
|
|
||||||
- name: postgresql recover.conf template (standby only)
|
- name: postgresql recover.conf template (standby only)
|
||||||
template: dest=/var/lib/pgsql/data/recovery.conf src=recovery.conf
|
template: dest=/var/lib/pgsql/data/recovery.conf src=recovery.conf
|
||||||
when: inventory_hostname.startswith('db-koji02')
|
when: inventory_hostname.startswith('db-koji01.iad2')
|
||||||
notify:
|
notify:
|
||||||
- restart postgresql
|
- restart postgresql
|
||||||
tags:
|
tags:
|
||||||
|
@ -113,19 +113,19 @@
|
||||||
|
|
||||||
- name: Ensure postgres has a place to backup to
|
- name: Ensure postgres has a place to backup to
|
||||||
file: dest=/backups state=directory owner=postgres
|
file: dest=/backups state=directory owner=postgres
|
||||||
when: inventory_hostname.startswith('db-koji02')
|
when: inventory_hostname.startswith('db-koji01.iad2') or inventory_hostname.startswith('db01.iad2')
|
||||||
tags:
|
tags:
|
||||||
- postgresql
|
- postgresql
|
||||||
|
|
||||||
- name: Copy over backup scriplet
|
- name: Copy over backup scriplet
|
||||||
copy: src=backup-database dest=/usr/local/bin/backup-database mode=0755
|
copy: src=backup-database dest=/usr/local/bin/backup-database mode=0755
|
||||||
when: not inventory_hostname.startswith('db-koji02')
|
when: inventory_hostname.startswith('db-koji01.iad2')
|
||||||
tags:
|
tags:
|
||||||
- postgresql
|
- postgresql
|
||||||
|
|
||||||
- name: Copy over backup scriplet
|
- name: Copy over backup scriplet
|
||||||
copy: src=backup-database.db-koji02 dest=/usr/local/bin/backup-database mode=0755
|
copy: src=backup-database.db-koji02 dest=/usr/local/bin/backup-database mode=0755
|
||||||
when: inventory_hostname.startswith('db-koji02')
|
when: inventory_hostname.startswith('db-koji01.iad2')
|
||||||
tags:
|
tags:
|
||||||
- postgresql
|
- postgresql
|
||||||
|
|
||||||
|
@ -133,13 +133,13 @@
|
||||||
copy: src=backup-database.anitya dest=/usr/local/bin/backup-database.anitya mode=0755
|
copy: src=backup-database.anitya dest=/usr/local/bin/backup-database.anitya mode=0755
|
||||||
tags:
|
tags:
|
||||||
- postgresql
|
- postgresql
|
||||||
when: inventory_hostname.startswith('db01.phx2')
|
when: inventory_hostname.startswith('db01.phx2') or inventory_hostname.startswith('db01.iad2')
|
||||||
|
|
||||||
- name: Copy over anitya publib backup cron
|
- name: Copy over anitya publib backup cron
|
||||||
copy: src=cron-backup-anitya-public dest=/etc/cron.d/cron-backup-anitya-public mode=0644
|
copy: src=cron-backup-anitya-public dest=/etc/cron.d/cron-backup-anitya-public mode=0644
|
||||||
tags:
|
tags:
|
||||||
- postgresql
|
- postgresql
|
||||||
when: inventory_hostname.startswith('db01.phx2')
|
when: inventory_hostname.startswith('db01.phx2') or inventory_hostname.startswith('db01.iad2')
|
||||||
|
|
||||||
- name: Set up some cronjobs to backup databases as configured
|
- name: Set up some cronjobs to backup databases as configured
|
||||||
template: >
|
template: >
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue