First work on the mdapi role

This commit is contained in:
Pierre-Yves Chibon 2015-11-09 15:47:52 +01:00
parent d654db07ef
commit cac003cb03
2 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,21 @@
---
# Configuration for the mdapi webapp
- name: install needed packages
yum: pkg={{ item }} state=present
with_items:
- mdapi
tags:
- mdapi
- packages
- name: Install the meta-data fetch cron job
when: inventory_hostname.startswith(('mdapi01'))
template: src={{ item.file }}
dest={{ item.location }}/{{ item.file }}
with_items:
- { file: 'mdapi.cron', location: /etc/cron.d }
tags:
- mdapi
- config

View file

@ -0,0 +1,4 @@
# Fetches repo metadata for mdapi
#
*/20 * * * * root /usr/bin/mdapi-get_repo_md