Skip to content

Commit

Permalink
Merge pull request #23 from CSCfi/CCCP-2222
Browse files Browse the repository at this point in the history
Configure tempest cronjob per deployment
  • Loading branch information
Aegil authored Aug 17, 2018
2 parents c0c1738 + d901e92 commit 3fc32d2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tasks/tempest_verifiers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ""
Expand Down

0 comments on commit 3fc32d2

Please sign in to comment.