-
Notifications
You must be signed in to change notification settings - Fork 8
/
development-config.yaml
76 lines (71 loc) · 2.61 KB
/
development-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
db:
dialect: mysql
dsn: "athena:athena@tcp(db:3306)/athena?charset=utf8&parseTime=true"
monitor:
poll-every: 10s
files-delta: 10m
directories:
- "/uploads"
processor-map:
- type: filename
regex: ".*sosreport.*.txt$"
processor: sosreports
processor:
batch-comments-every: 10s
reports-upload-dir: "/customers/athena-reports/"
base-tmpdir: "/tmp/athena"
subscribers:
sosreports:
sf-comment-enabled: true
sf-comment-public: false
sf-comment: |
Athena processor: {{ processor }} subscriber: {{ subscriber }} has run the following reports.
{% for report in reports -%}
{% for script in report.Scripts -%}
{% if script.Name == "hotsos-short" %}
{% if script.Output != "" %}
Summary for report: {{ report.Name }} - filepath: {{ report.FilePath }}
-------------------------------------------------------------------------
{{ script.Output }}
{% endif %}
{% endif %}
{%- endfor -%}
{%- endfor -%}
{%- for report in reports -%}
{%- for script in report.Scripts -%}
{% if script.Name == "hotsos-full" %}
Full output for report: {{ report.Name }} can be found: https://files.support.canonical.com/files/{{ script.UploadLocation }}
{% endif %}
{%- endfor -%}
{%- endfor -%}
reports:
hotsos:
scripts:
hotsos-full:
exit-codes: 0 2 127 126
run: |
#!/bin/bash
git clone --quiet https://github.com/dosaboy/hotsos.git {{basedir}}/hotsos &>/dev/null
tar -xf {{filepath}} -C {{basedir}} &>/dev/null
{{basedir}}/hotsos/hotsos.sh -s -a {{basedir}}/$(basename {{filepath}} .tar.xz)/ &>/dev/null
cat *.summary
rm -f *.summary
exit 0
hotsos-short:
exit-codes: 0 2 127 126
run: |
#!/bin/bash
git clone --quiet https://github.com/dosaboy/hotsos.git {{basedir}}/hotsos &>/dev/null
tar -xf {{filepath}} -C {{basedir}} &>/dev/null
{{basedir}}/hotsos/hotsos.sh -s --short {{basedir}}/$(basename {{filepath}} .tar.xz)/ &>/dev/null
[ -s *.summary ] || echo "No known bugs or issues found on sosreport"
rm -f *.summary
exit 0
filescom:
key: "xxx"
endpoint: "https://app.files.com"
salesforce:
endpoint: "https://xxx--xxx.my.salesforce.com/"
username: "[email protected]"
password: "xxx"
security-token: "xxx"