Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
M
  • Loading branch information
msimonin committed Oct 13, 2016
1 parent 7d8c1a3 commit b0cd006
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion boilerplate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
- name: Extracting everything
shell: "for i in $(ls /results/{{ item }}/*.tar.gz); do tar -C /results/{{ item }} -xzf $i; done"
with_items: "{{ xps }}"

# workaround the https://github.com/BeyondTheClouds/kolla-g5k/issues/44 for older results
# It will overwrite the logs from those in _data if this directory exists
- name: Unnesting directory structure (workaround https://github.com/BeyondTheClouds/kolla-g5k/issues/44)
shell: "cd /results/{{ item }}/tmp/kolla-logs; [ -d _data ] && cp -r _data/* . || echo 0"
with_items: "{{ xps }}"

- name: Extract haproxy logs from to one who holds it
shell: "cd /results/{{ item }}; for i in $(ls *.tar.gz); do tar -tvzf $i | grep haproxy.log | awk -v x=$i '$3 > 0 {print x}'; done | xargs -n 1 tar -xvzf"
Expand Down Expand Up @@ -227,7 +233,7 @@
volumes:
- "/etc/heka/{{ item }}:/var/lib/kolla/config_files"
- "/etc/localtime:/etc/localtime:ro"
- "/results/{{ item }}/tmp/kolla-logs/_data:/var/log/kolla"
- "/results/{{ item }}/tmp/kolla-logs:/var/log/kolla"
- "heka-{{ item }}:/var/cache/hekad"
- "heka_socket-{{ item }}:/var/lib/kolla/heka"
# patch to support custom types
Expand Down

0 comments on commit b0cd006

Please sign in to comment.