Skip to content

Commit 3cd623f

Browse files
committed
added web module tests in molecule default
1 parent b64b4b6 commit 3cd623f

File tree

2 files changed

+78
-0
lines changed

2 files changed

+78
-0
lines changed

molecule/default/converge.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,54 @@
33
- name: Converge
44
hosts: all
55
vars:
6+
icingaweb2_modules:
7+
graphite:
8+
enabled: true
9+
custom_template_files:
10+
- name: test.ini
11+
src_path: graphite_templates/test.ini
12+
config:
13+
graphite:
14+
url: 127.0.0.1:9000
15+
ui:
16+
default_time_range: 6
17+
director:
18+
enabled: true
19+
source: package
20+
import_schema: false
21+
run_kickstart: false
22+
kickstart:
23+
config:
24+
endpoint: icinga-default
25+
host: 127.0.0.1
26+
username: root
27+
password: root
28+
config:
29+
db:
30+
resource: director_db
31+
icingadb:
32+
enabled: true
33+
source: package
34+
commandtransports:
35+
instance01:
36+
transport: api
37+
host: 127.0.0.1
38+
username: root
39+
password: root
40+
config:
41+
icingadb:
42+
resource: icingadb
43+
redis:
44+
tls: '0'
45+
redis:
46+
redis1:
47+
host: "127.0.0.1"
48+
monitoring:
49+
enabled: false
50+
backends:
51+
icinga2_ido_mysql:
52+
type: ido
53+
resource: icinga_ido
654
icingaweb2_db:
755
type: mysql
856
name: icingaweb
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[hostalive-rta.graph]
2+
check_command = "hostalive"
3+
4+
[hostalive-rta.metrics_filters]
5+
rta.value = "$host_name_template$.perfdata.rta.value"
6+
7+
[hostalive-rta.urlparams]
8+
areaAlpha = "0.5"
9+
areaMode = "all"
10+
min = "0"
11+
yUnitSystem = "none"
12+
13+
[hostalive-rta.functions]
14+
rta.value = "alias(color(scale($metric$, 1000), '#1a7dd7'), 'Round trip time (ms)')"
15+
16+
17+
[hostalive-pl.graph]
18+
check_command = "hostalive"
19+
20+
[hostalive-pl.metrics_filters]
21+
pl.value = "$host_name_template$.perfdata.pl.value"
22+
23+
[hostalive-pl.urlparams]
24+
areaAlpha = "0.5"
25+
areaMode = "all"
26+
min = "0"
27+
yUnitSystem = "none"
28+
29+
[hostalive-pl.functions]
30+
pl.value = "alias(color($metric$, '#1a7dd7'), 'Packet loss (%)')"

0 commit comments

Comments
 (0)