You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.1 KiB

  1. ---
  2. - hosts: kube-master[0]
  3. vars:
  4. sonobuoy_version: 0.19.0
  5. sonobuoy_arch: amd64
  6. sonobuoy_parallel: 30
  7. sonobuoy_path: /usr/local/bin/sonobuoy
  8. sonobuoy_skip: 'Alpha|Disruptive|Feature|Flaky|Slow|Serial'
  9. sonobuoy_mode: Quick
  10. tasks:
  11. - name: Run sonobuoy
  12. when:
  13. - sonobuoy_enabled is defined
  14. - sonobuoy_enabled
  15. block:
  16. - name: Download sonobuoy
  17. get_url:
  18. url: "https://github.com/heptio/sonobuoy/releases/download/v{{ sonobuoy_version }}/sonobuoy_{{ sonobuoy_version }}_linux_{{ sonobuoy_arch }}.tar.gz"
  19. dest: /tmp/sonobuoy.tar.gz
  20. - name: Extract sonobuoy
  21. unarchive:
  22. src: /tmp/sonobuoy.tar.gz
  23. dest: /usr/local/bin/
  24. copy: no
  25. - name: Run sonobuoy
  26. command: "{{ sonobuoy_path }} run --mode {{ sonobuoy_mode }} --e2e-parallel {{ sonobuoy_parallel }} --e2e-skip {{ sonobuoy_skip }} --wait"
  27. when: sonobuoy_enabled | default(false)
  28. - name: Run sonobuoy retrieve
  29. command: "{{ sonobuoy_path }} retrieve"
  30. register: sonobuoy_retrieve
  31. - name: Run inspect results
  32. command: "{{ sonobuoy_path }} e2e {{ sonobuoy_retrieve.stdout }}"