Add the backend sub-role for mirrormanager

This commit is contained in:
Pierre-Yves Chibon 2014-12-08 17:04:07 +01:00
parent 0c7a78cba0
commit f7a0533544
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,11 @@
# refresh the mirrorlist cache at the top of the hour
55 * * * * root /usr/bin/mm2_server/update-mirrorlist-server > /dev/null 2>&1
# update master directory list
# logs sent to /var/log/mirrormanager/umdl.log by default
0 */2 * * * root /usr/bin/mm2_update-master-directory-list -c /etc/mirrormanager/prod.cfg > /dev/null 2>&1
# Sync netblocks list once a day
30 0 * * * root /usr/bin/mm2_get_global_netblocks /var/lib/mirrormanager/global_netblocks.txt > /dev/null 2>&1
0 1 * * * root /usr/bin/mm2_get_internet2_netblocks /var/lib/mirrormanager/internet2_netblocks.txt > /dev/null 2>&1
30 1 * * * root /usr/bin/mm2_update-EC2-netblocks > /dev/null 2>&1

View file

@ -0,0 +1,19 @@
---
# Configuration for the mirrormanager backend
- name: clean yum metadata
command: yum clean all
tags:
- packages
- name: install needed packages
yum: pkg={{ item }} state=present
with_items:
- mirrormanager-backend
tags:
- packages
- name: install the cron job
copy: src=backend.cron dest=/etc/cron.d/mm2_backend.cron
tags:
- config