1
0
Fork 0
forked from infra/ansible

Compare commits

...

10 commits

Author SHA1 Message Date
Jeremy Cline
1b39475fef
fedora-image-uploader: drop the me-south-1 AWS region
This should be reverted whenever it becomes available, but it seems to
have been struck by drones and the replication step fails with:

AWSHTTPSConnection(host='ec2.me-south-1.amazonaws.com', port=443):
Failed to establish a new connection: [Errno 113] No route to host

Signed-off-by: Jeremy Cline <jeremycline@microsoft.com>
2026-04-08 08:55:30 -04:00
James Antill
d3db58fc89 vmhost-x86-01.stg: Use ipa02.stg as ipa_server
Signed-off-by: James Antill <james@and.org>
2026-04-07 16:00:09 -04:00
4fb1f446c5 feat: koji_hub: move rccl to heavybuild
Signed-off-by: Vít Smolík <me@smoliicek.cz>
2026-04-07 19:17:10 +00:00
0265ecd8b4 openshift / docstranslation: disable cron runs for now.
Per infra/tickets#13171
we want to disable cron runs for now while repos and other things are
sorted out. We can just revert this after things are ready.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-04-06 19:59:52 +00:00
869ea27150 Add tar to datanommer
Signed-off-by: Michael Winters <fedora@mwinters.net>
2026-04-06 11:06:14 -05:00
a9744b9cd0 Fix location after move in 8fa423e72a
Signed-off-by: Michael Winters <fedora@mwinters.net>
2026-04-03 09:00:42 -05:00
8fa423e72a move file-retention-iso-date to files/scripts
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2026-04-02 20:39:31 -07:00
2db3130404 Fix Tpyos and errata
Signed-off-by: Michael Winters <fedora@mwinters.net>
2026-04-02 21:12:54 -05:00
92e35f4f25 Lean on chronic for public-db-copy
Signed-off-by: Michael Winters <fedora@mwinters.net>
2026-04-02 23:35:10 +00:00
df3b1f249e Add set -e to cron jobs to help chronic
Signed-off-by: Michael Winters <fedora@mwinters.net>
2026-04-02 23:35:10 +00:00
8 changed files with 14 additions and 6 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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",

View file

@ -4,6 +4,7 @@ kind: CronJob
metadata:
name: cron
spec:
suspend: true
concurrencyPolicy: Forbid
schedule: "0 21 * * *"
startingDeadlineSeconds: 600

View file

@ -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

View file

@ -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