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:
Kevin Fenzi 2020-03-31 21:14:28 +00:00 committed by Pierre-Yves Chibon
parent 86cda76858
commit 86b41ecd91
3 changed files with 6 additions and 2 deletions

View file

@ -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"

View file

@ -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

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