Add fas_client aliases handling

This commit is contained in:
Kevin Fenzi 2014-10-08 22:48:35 +00:00
parent a50758d90e
commit 3088f6c4ef
2 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1 @@
00 19 * * * root /usr/local/bin/lock-wrapper fasClient "/bin/sleep $(($RANDOM \% 45)); /usr/bin/fasClient -ia | /usr/local/bin/nag-once fassync 1d 2>&1"

View file

@ -74,6 +74,13 @@
- config
- fas_client
- name: fas_client_aliases cron job
copy: src=fas-client-aliases.cron dest=/etc/cron.d/fas-client-aliases owner=root mode=644
tags:
- config
- fas_client
when: postfix_group is 'gateway'
- name: run fas_client only if we just installed
command: fasClient -if creates=/var/db/shadow.db
tags: