mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-12 19:06:39 +08:00
fas-client: make pkgs02 sync fas every 15min instead of once a day
This is to counteract that we no longer have a fedmsg we can trigger this from, so people complain that their ssh key isn't updating. Hopefully this will help that issue. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
committed by
Pierre-Yves Chibon
parent
86cda76858
commit
86b41ecd91
@@ -1 +0,0 @@
|
||||
00 20 * * * root /usr/local/bin/lock-wrapper fasClient "/bin/sleep $(($RANDOM \% 3600)); /usr/bin/fasClient -i |& grep -vi deprecation | /usr/local/bin/nag-once fassync 1d 2>&1"
|
||||
@@ -71,7 +71,7 @@
|
||||
# - config
|
||||
|
||||
- name: fas_client cron job
|
||||
copy: src=fas-client.cron dest=/etc/cron.d/fas-client owner=root mode=0644
|
||||
template: src=fas-client.cron.j2 dest=/etc/cron.d/fas-client owner=root mode=0644
|
||||
tags:
|
||||
- config
|
||||
- fas_client
|
||||
|
||||
5
roles/fas_client/templates/fas-client.cron.j2
Normal file
5
roles/fas_client/templates/fas-client.cron.j2
Normal file
@@ -0,0 +1,5 @@
|
||||
{% if ansible_hostname == 'pkgs02.phx2.fedoraproject.org' %}
|
||||
*/15 * * * * root /usr/local/bin/lock-wrapper fasClient "/usr/bin/fasClient -i |& grep -vi deprecation | /usr/local/bin/nag-once fassync 1d 2>&1"
|
||||
{% else %}
|
||||
00 20 * * * root /usr/local/bin/lock-wrapper fasClient "/bin/sleep $(($RANDOM \% 3600)); /usr/bin/fasClient -i |& grep -vi deprecation | /usr/local/bin/nag-once fassync 1d 2>&1"
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user