Copy PDC client tool configuration to pdc-backend.

This commit is contained in:
Ralph Bean 2017-01-11 20:37:40 +00:00
parent 7e5a69e1fd
commit 8cd42e1c54
2 changed files with 22 additions and 0 deletions

View file

@ -20,6 +20,14 @@
notify: restart fedmsg-hub
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
copy: src=pdc-audit.cron dest=/etc/cron.d/pdc-audit.cron mode=0755
tags:

View 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 %}
}
}