diff --git a/tasks/tempest_verifiers.yml b/tasks/tempest_verifiers.yml index 04cbf2f..987e050 100644 --- a/tasks/tempest_verifiers.yml +++ b/tasks/tempest_verifiers.yml @@ -79,6 +79,15 @@ - name: Template in tempest run bash script template: src=tempest_run.sh.j2 dest=/home/rally//{{ item.key }}-tempest_run.sh owner=rally group=rally mode=0700 + - name: "Configure cronjob for deployment {{ item.key }}" + cron: + name: "Run tempest against {{ item.key }}" + user: rally + hour: "{{ item.value.tempest_cron_run_hour }}" + minute: 0 + job: /home/rally/{{ item.key }}-tempest_run.sh --tag cron_$(date +\%Y_\%m_\%d_\%H) + when: item.value.configure_tempest_cron | default('false') + become_user: rally environment: ftp_proxy: ""