forked from infra/ansible
Compare commits
10 commits
8ac48ade3b
...
1b39475fef
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1b39475fef |
||
|
|
d3db58fc89 | ||
| 4fb1f446c5 | |||
| 0265ecd8b4 | |||
| 869ea27150 | |||
| a9744b9cd0 | |||
| 8fa423e72a | |||
| 2db3130404 | |||
| 92e35f4f25 | |||
| df3b1f249e |
8 changed files with 14 additions and 6 deletions
|
|
@ -14,6 +14,8 @@ dns2: 10.16.163.34
|
|||
dns_search1: "stg.rdu3.fedoraproject.org"
|
||||
dns_search2: "fedoraproject.org"
|
||||
has_ipv4: yes
|
||||
# ipa01.stg is the default, but runs on this vmhost.
|
||||
ipa_server: ipa02.stg.rdu3.fedoraproject.org
|
||||
mac0: c4:cb:e1:e1:71:5a
|
||||
mac1: c4:cb:e1:e1:71:5b
|
||||
mac2: c4:70:bd:aa:71:14
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ source /root/sshagent >>/dev/null
|
|||
export ANSIBLE_HOST_KEY_CHECKING=False
|
||||
|
||||
# Copy all public database backups from the database servers to our public directory
|
||||
/srv/web/infra/ansible/scripts/public-db-copy >& /dev/null
|
||||
/srv/web/infra/ansible/scripts/public-db-copy
|
||||
|
||||
# Delete old datanommer-incremental backups
|
||||
/srv/web/infra/ansible/scripts/file-retention-iso-date /srv/web/infra/db-dumps/datanommer-incremental
|
||||
/srv/web/infra/ansible/files/scripts/file-retention-iso-date /srv/web/infra/db-dumps/datanommer-incremental
|
||||
|
|
@ -198,6 +198,7 @@ channel =
|
|||
source */webkitgtk* :: use heavybuilder
|
||||
source */firefox* :: use heavybuilder
|
||||
source */cef* :: use heavybuilder
|
||||
source */rccl* :: use heavybuilder
|
||||
{% endif %}
|
||||
|
||||
is_child_task :: parent
|
||||
|
|
|
|||
|
|
@ -48,7 +48,6 @@ ami_regions = [
|
|||
"eu-west-1",
|
||||
"ap-northeast-3",
|
||||
"ap-northeast-2",
|
||||
"me-south-1",
|
||||
"ap-northeast-1",
|
||||
"sa-east-1",
|
||||
"ca-central-1",
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ kind: CronJob
|
|||
metadata:
|
||||
name: cron
|
||||
spec:
|
||||
suspend: true
|
||||
concurrencyPolicy: Forbid
|
||||
schedule: "0 21 * * *"
|
||||
startingDeadlineSeconds: 600
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
---
|
||||
- name: Install moreutils
|
||||
- name: Install packages for daily export
|
||||
ansible.builtin.package:
|
||||
state: present
|
||||
name:
|
||||
- moreutls # provides `chronic` for use with cron emails
|
||||
- moreutils # provides `chronic` for use with cron emails
|
||||
- tar
|
||||
when: inventory_hostname.startswith('db-datanommer02.rdu3')
|
||||
tags:
|
||||
- datanommer
|
||||
|
|
@ -27,7 +28,7 @@
|
|||
|
||||
|
||||
- name: Copy file-retention-iso-date script
|
||||
ansible.builtin.copy: src=scripts/file-retention-iso-date dest=/usr/local/bin/file-retention-iso-date mode=0755
|
||||
ansible.builtin.copy: src="{{ files }}/scripts/file-retention-iso-date" dest=/usr/local/bin/file-retention-iso-date mode=0755
|
||||
tags:
|
||||
- datanommer
|
||||
- postgresql
|
||||
|
|
|
|||
|
|
@ -5,6 +5,10 @@
|
|||
# Only the most recent dump is published
|
||||
#
|
||||
|
||||
# We need to set -e so that `chronic` will make the right decision about alerting
|
||||
# us to any failures.
|
||||
set -e
|
||||
|
||||
# This changes really often ;)
|
||||
bkup_domain=rdu3.fedoraproject.org
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue