Install the mdapi configuration file

This commit is contained in:
Pierre-Yves Chibon 2015-11-10 11:07:43 +01:00
parent a6418a1251
commit d7f658c43f
2 changed files with 17 additions and 0 deletions

View file

@ -11,12 +11,19 @@
- mdapi
- packages
- name: create all the directory for the configuration file
action: file state=directory path=/etc/mdapi
tags:
- mdapi
- config
- 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 }
- { file: 'mdapi.cfg', location: /etc/mdapi }
tags:
- mdapi
- config

View file

@ -0,0 +1,10 @@
{% if env == 'staging' %}
KOJI_REPO = 'http://koji.stg.fedoraproject.org/repos/'
PKGDB2_URL = 'https://admin.stg.fedoraproject.org/pkgdb/'
DL_SERVER = 'http://dl.fedoraproject.org'
{% else %}
KOJI_REPO = 'https://kojipkgs.fedoraproject.org/repos/'
PKGDB2_URL = 'https://admin.fedoraproject.org/pkgdb/'
DL_SERVER = 'http://dl.fedoraproject.org'
{% endif %}