Copy PDC client tool configuration to pdc-backend.
This commit is contained in:
parent
7e5a69e1fd
commit
8cd42e1c54
2 changed files with 22 additions and 0 deletions
|
@ -20,6 +20,14 @@
|
||||||
notify: restart fedmsg-hub
|
notify: restart fedmsg-hub
|
||||||
tags: pdc
|
tags: pdc
|
||||||
|
|
||||||
|
- name: copy client tool configuration
|
||||||
|
template: >
|
||||||
|
src={{ item }} dest=/etc/pdc.d/{{item}}
|
||||||
|
owner=fedmsg group=fedmsg mode=0600
|
||||||
|
with_items:
|
||||||
|
- fedora.json
|
||||||
|
tags: pdc
|
||||||
|
|
||||||
- name: setup cron for a daily audit script
|
- name: setup cron for a daily audit script
|
||||||
copy: src=pdc-audit.cron dest=/etc/cron.d/pdc-audit.cron mode=0755
|
copy: src=pdc-audit.cron dest=/etc/cron.d/pdc-audit.cron mode=0755
|
||||||
tags:
|
tags:
|
||||||
|
|
14
roles/pdc/backend/templates/fedora.json
Normal file
14
roles/pdc/backend/templates/fedora.json
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"fedora": {
|
||||||
|
"develop": false,
|
||||||
|
"insecure": false,
|
||||||
|
|
||||||
|
{% if env == 'staging' %}
|
||||||
|
"host": "https://pdc.stg.fedoraproject.org/rest_api/v1/",
|
||||||
|
"token": "{{pdc_updater_api_token_stg }}"
|
||||||
|
{% else %}
|
||||||
|
"host": "https://pdc.fedoraproject.org/rest_api/v1/",
|
||||||
|
'token': '{{pdc_updater_api_token_prod }}'
|
||||||
|
{% endif %}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue