Install the mdapi configuration file
This commit is contained in:
parent
a6418a1251
commit
d7f658c43f
2 changed files with 17 additions and 0 deletions
|
@ -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
|
||||
|
|
10
roles/mdapi/templates/mdapi.conf
Normal file
10
roles/mdapi/templates/mdapi.conf
Normal 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 %}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue