add simple-icinga-dashboard on status.franzi.business
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit

fixes #20
This commit is contained in:
Franzi 2021-01-02 14:47:11 +01:00
parent 2ebf7ec32b
commit e8d131b041
Signed by: kunsi
GPG key ID: 12E3D2136B818350
5 changed files with 84 additions and 1 deletions

View file

@ -0,0 +1,11 @@
[icinga2_api]
baseurl = ${api_url}
username = ${api_user}
password = ${api_password}
[filters]
hosts = ${host_filter}
services = ${service_filter}
[output]
filename = /opt/simple-icinga-dashboard/out/index.html

View file

@ -0,0 +1,38 @@
users = {
'icinga_dashboard': {
'home': '/opt/simple-icinga-dashboard',
},
}
directories = {
'/opt/simple-icinga-dashboard/out': {
'owner': 'icinga_dashboard',
},
'/opt/simple-icinga-dashboard/src': {},
}
git_deploy = {
'/opt/simple-icinga-dashboard/src': {
'repo': 'ssh://git@git.kunsmann.eu/sophie/simple-icinga-dashboard.git',
'rev': 'main',
},
}
files = {
'/opt/simple-icinga-dashboard/src/config.conf': {
'content_type': 'mako',
'context': node.metadata['simple-icinga-dashboard'],
'needs': {
'git_deploy:/opt/simple-icinga-dashboard/src',
},
},
}
symlinks = {
'/opt/simple-icinga-dashboard/out/bootstrap.min.css': {
'target': '/opt/simple-icinga-dashboard/src/bootstrap.min.css',
'needs': {
'git_deploy:/opt/simple-icinga-dashboard/src',
},
},
}

View file

@ -0,0 +1,12 @@
defaults = {
'cron': {
'simple-icinga-dashboard': '* * * * * icinga_dashboard cd /opt/simple-icinga-dashboard/src/ && ./service.py',
},
'postfix': {
'aliases': {
'icinga_dashboard': {
'root',
},
},
},
}

View file

@ -23,6 +23,9 @@ sewfile IN A 116.203.205.248
IN AAAA 2a01:4f8:c0c:c71b::1 IN AAAA 2a01:4f8:c0c:c71b::1
IN TXT "v=spf1 a mx ~all" IN TXT "v=spf1 a mx ~all"
status IN A 51.195.44.8
status IN AAAA 2001:41d0:701:1100::2618
travelynx IN A 94.130.52.224 travelynx IN A 94.130.52.224
travelynx IN AAAA 2a01:4f8:10b:2a5f::2 travelynx IN AAAA 2a01:4f8:10b:2a5f::2

View file

@ -4,6 +4,7 @@ nodes['ovh.icinga2'] = {
'iptables', 'iptables',
'php', 'php',
'postgresql', 'postgresql',
'simple-icinga-dashboard',
'wireguard', 'wireguard',
'zfs', 'zfs',
}, },
@ -30,6 +31,13 @@ nodes['ovh.icinga2'] = {
'icinga2': { 'icinga2': {
'api_users': { 'api_users': {
# Used with <https://git.kunsmann.eu/kunsi/icinga2beamer> # Used with <https://git.kunsmann.eu/kunsi/icinga2beamer>
'dashboard': {
'password': vault.password_for('ovh.icinga2 icinga2 api_user dashboard'),
'permissions': {
'objects/query/Host',
'objects/query/Service'
},
},
'icinga2beamer': { 'icinga2beamer': {
'password': vault.decrypt('encrypt$gAAAAABf3wM9YS5ZpRdhp3xyIFX21_MK0omzqHqykWbWdkZWp2xyJ6awaUSXODnZQ5j-rws6n0yrpaeMdXoj1irb2FrgxMDTdfCh88hIsqcKGOObzwGaRg6Ze0tuiMrzIfOO3tRnc9Kd'), 'password': vault.decrypt('encrypt$gAAAAABf3wM9YS5ZpRdhp3xyIFX21_MK0omzqHqykWbWdkZWp2xyJ6awaUSXODnZQ5j-rws6n0yrpaeMdXoj1irb2FrgxMDTdfCh88hIsqcKGOObzwGaRg6Ze0tuiMrzIfOO3tRnc9Kd'),
'permissions': { 'permissions': {
@ -80,7 +88,11 @@ nodes['ovh.icinga2'] = {
'target': 'http://127.0.0.1:5000/', 'target': 'http://127.0.0.1:5000/',
} }
}, },
} },
'statuspage': {
'domain': 'status.franzi.business',
'webroot': '/opt/simple-icinga-dashboard/out',
},
}, },
}, },
'php': { 'php': {
@ -97,6 +109,13 @@ nodes['ovh.icinga2'] = {
'xml', 'xml',
}, },
}, },
'simple-icinga-dashboard': {
'api_url': 'https://127.0.0.1:5665',
'api_user': 'dashboard',
'api_password': vault.password_for('ovh.icinga2 icinga2 api_user dashboard'),
'host_filter': '"checks_with_sms" in host.groups',
'service_filter': '"checks_with_sms" in service.groups'
},
'wireguard': { 'wireguard': {
'my_ip': '172.19.137.3/32', 'my_ip': '172.19.137.3/32',
'peers': { 'peers': {