Files
fedora-infra_ansible/playbooks/groups/secondary.yml
Samyak Jain b4e6f57a4a playbooks/groups/secondary.yml: Install isomd5sum package on secondary servers
Added `isomd5sum` to the list of installed packages in `playbooks/groups/secondary.yml`
to support checksum verification tests on `secondary01.fedoraproject.org`.

This ensures that `isomd5sum` is available for testing workflows, particularly for
QA tasks related to Fedora media checksums.

Signed-off-by: Samyak Jain <samyak.jn11@gmail.com>
2025-03-19 21:19:58 +00:00

92 lines
3.0 KiB
YAML

---
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
vars:
myhosts: "secondary"
- name: Setup secondary arch download server
hosts: secondary
user: root
gather_facts: true
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- "/srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml"
roles:
- base
- rkhunter
- nagios_client
- hosts
- ipa/client
- collectd/base
- download
- rsyncd
- sudo
- { role: nfs/client,
mnt_dir: '/srv/pub/archive',
nfs_src_dir: 'fedora_ftp_archive' }
- { role: nfs/client,
mnt_dir: '/srv/pub/alt',
nfs_mount_opts: "rw,hard,bg,intr,noatime,nodev,nosuid,sec=sys,nfsvers=3",
nfs_src_dir: 'fedora_ftp/fedora.redhat.com/pub/alt' }
- { role: nfs/client,
mnt_dir: '/srv/pub/fedora-secondary',
nfs_mount_opts: "rw,hard,bg,intr,noatime,nodev,nosuid,sec=sys,nfsvers=3",
nfs_src_dir: 'fedora_ftp/fedora.redhat.com/pub/fedora-secondary' }
- role: apache
- role: httpd/mod_ssl
- role: httpd/certificate
certname: "{{wildcard_cert_name}}"
SSLCertificateChainFile: "{{wildcard_int_file}}"
- role: httpd/website
vars:
- site_name: secondary.fedoraproject.org
- cert_name: "{{wildcard_cert_name}}"
server_aliases:
- archive.fedoraproject.org
- archives.fedoraproject.org
pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- name: Install some misc packages needed for various tasks
ansible.builtin.package:
state: present
name:
- createrepo
- koji
- python3-productmd
- isomd5sum
- name: Add create-filelist script from quick-fedora-mirror
ansible.builtin.copy: src="{{ files }}/scripts/create-filelist.py2" dest=/usr/local/bin/create-filelist mode=0755
- name: Add cron script to update fullfiletimelist
ansible.builtin.copy: src="{{ files }}/scripts/update-fullfiletimelist" dest=/usr/local/bin/update-fullfiletimelist mode=0755
- name: Add cron script to prune old logs at /srv/pub/alt/linuxsystemroles/logs
ansible.builtin.copy: src="{{ files }}/scripts/linuxsystemroles-logs-clean" dest=/usr/local/bin/linuxsystemroles-logs-clean mode=0755
- name: Update fullfiletimelist job
cron: name="update-fullfiletimelist" hour="*/2" minute="55" user="root"
job="/usr/local/bin/lock-wrapper update-fullfiletimelist '/usr/local/bin/update-fullfiletimelist -l /tmp/update-fullfiletimelist.lock -t /srv/pub alt'"
cron_file=update-fullfiletimelist
- name: Prune old logs at /srv/pub/alt/linuxsystemroles/logs
cron: name="linuxsystemroles-logs-clean" hour="0" minute="15" user="root"
job="/usr/local/bin/linuxsystemroles-logs-clean /srv/pub/alt/linuxsystemroles/logs >/dev/null"
cron_file=linuxsystemroles-logs-clean
- name: Set MAILTO for the previous cron job
cron: env=true name=MAILTO value="systemroles-owner@lists.fedorahosted.org"
cron_file=linuxsystemroles-logs-clean user=root
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"