harvester tracker: make the frequency customizable.
This commit is contained in:
parent
aa027311e9
commit
5e8758171a
|
@ -25,6 +25,7 @@ ckan_plugins_state: present
|
|||
ckan_git_plugins_state: 'no'
|
||||
# Order is important
|
||||
ckan_geonetwork_harvester: False
|
||||
ckan_gn_harvester_track_cron_day: '*'
|
||||
ckan_geoview: False
|
||||
ckan_dcat: False
|
||||
# dcat implement harvesters too.
|
||||
|
|
|
@ -101,12 +101,18 @@
|
|||
- name: Install the script that updates the tracking data
|
||||
template: src=tracker_update.sh.j2 dest={{ ckan_virtenv }}/bin/tracker_update owner={{ ckan_shell_user }} group={{ ckan_shell_user }} mode=0555
|
||||
when: ckan_geonetwork_harvester | bool
|
||||
tags: [ 'ckan', 'ckan_geonetwork', 'ckan_plugins', 'tracker' ]
|
||||
tags: ['ckan', 'ckan_geonetwork', 'ckan_plugins', 'tracker', 'ckan_tracker']
|
||||
|
||||
- name: Install the cron job that runs the tracker update script
|
||||
cron: name="tracker update" minute="0" hour="3" job="{{ ckan_virtenv }}/bin/tracker_update > {{ ckan_logdir }}/tracker_update.log 2>&1" user={{ ckan_shell_user }}
|
||||
cron:
|
||||
name: "tracker update"
|
||||
minute: "0"
|
||||
hour: "3"
|
||||
day: '{{ ckan_gn_harvester_track_cron_day }}'
|
||||
job: "{{ ckan_virtenv }}/bin/tracker_update > {{ ckan_logdir }}/tracker_update.log 2>&1"
|
||||
user: '{{ ckan_shell_user }}'
|
||||
when: ckan_geonetwork_harvester | bool
|
||||
tags: [ 'ckan', 'ckan_geonetwork', 'ckan_plugins', 'tracker' ]
|
||||
tags: ['ckan', 'ckan_geonetwork', 'ckan_plugins', 'tracker', 'ckan_tracker']
|
||||
|
||||
- name: Download the CKAN PDF viewer plugin
|
||||
pip: name='{{ ckan_ckanext_pdfview_url }}' virtualenv={{ ckan_virtenv }} state=present
|
||||
|
|
Loading…
Reference in New Issue