2020-11-09 15:40:15 +00:00
|
|
|
nodes['ovh.icinga2'] = {
|
|
|
|
'bundles': {
|
2021-09-29 17:47:14 +00:00
|
|
|
'bird',
|
2020-11-10 11:40:12 +00:00
|
|
|
'icinga2',
|
2020-11-13 12:19:26 +00:00
|
|
|
'php',
|
2020-11-09 15:40:15 +00:00
|
|
|
'postgresql',
|
2021-01-02 13:47:11 +00:00
|
|
|
'simple-icinga-dashboard',
|
2021-05-03 17:36:47 +00:00
|
|
|
'unbound',
|
2020-11-21 14:38:38 +00:00
|
|
|
'wireguard',
|
2020-11-09 15:40:15 +00:00
|
|
|
'zfs',
|
|
|
|
},
|
2020-11-13 12:19:26 +00:00
|
|
|
'groups': {
|
2022-03-13 13:07:55 +00:00
|
|
|
'debian-bullseye',
|
2020-11-13 12:19:26 +00:00
|
|
|
'webserver',
|
|
|
|
},
|
2020-11-09 15:40:15 +00:00
|
|
|
'metadata': {
|
|
|
|
'interfaces': {
|
|
|
|
'eth0': {
|
|
|
|
'ips': {
|
|
|
|
'51.195.44.8',
|
2020-11-21 14:38:38 +00:00
|
|
|
'2001:41d0:701:1100::2618/128'
|
2020-11-09 15:40:15 +00:00
|
|
|
},
|
|
|
|
'gateway4': '51.195.44.1',
|
|
|
|
'gateway6': '2001:41d0:701:1100::1'
|
|
|
|
},
|
2021-09-29 17:47:14 +00:00
|
|
|
'dummy-snat': {
|
|
|
|
'ips': {
|
|
|
|
'172.19.136.3',
|
|
|
|
},
|
|
|
|
},
|
2020-11-09 15:40:15 +00:00
|
|
|
},
|
2021-09-29 17:47:14 +00:00
|
|
|
'bird': {
|
|
|
|
'static_routes': {
|
|
|
|
'172.19.136.3/32',
|
|
|
|
},
|
|
|
|
},
|
2020-11-22 09:34:49 +00:00
|
|
|
'icinga2': {
|
2020-12-20 08:34:05 +00:00
|
|
|
'api_users': {
|
2021-01-02 13:47:11 +00:00
|
|
|
'dashboard': {
|
|
|
|
'password': vault.password_for('ovh.icinga2 icinga2 api_user dashboard'),
|
|
|
|
'permissions': {
|
2023-05-20 18:12:24 +00:00
|
|
|
'objects/query/Service',
|
|
|
|
'objects/query/Host',
|
2021-01-02 13:47:11 +00:00
|
|
|
},
|
|
|
|
},
|
2022-03-13 13:07:55 +00:00
|
|
|
# Used with <https://git.franzi.business/kunsi/icinga2eamer>
|
2020-12-20 08:34:05 +00:00
|
|
|
'icinga2beamer': {
|
|
|
|
'password': vault.decrypt('encrypt$gAAAAABf3wM9YS5ZpRdhp3xyIFX21_MK0omzqHqykWbWdkZWp2xyJ6awaUSXODnZQ5j-rws6n0yrpaeMdXoj1irb2FrgxMDTdfCh88hIsqcKGOObzwGaRg6Ze0tuiMrzIfOO3tRnc9Kd'),
|
|
|
|
'permissions': {
|
|
|
|
'objects/query/Host',
|
|
|
|
'objects/query/Service'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2021-02-15 13:16:35 +00:00
|
|
|
'restrict-to': {
|
|
|
|
'172.19.138.0/24',
|
|
|
|
},
|
2023-04-09 15:32:36 +00:00
|
|
|
'sipgate': {
|
|
|
|
'user': bwpass.attr('sipgate.de/hi@kunsmann.eu', 'icinga_tokenid'),
|
|
|
|
'pass': bwpass.attr('sipgate.de/hi@kunsmann.eu', 'icinga_token'),
|
|
|
|
},
|
|
|
|
'ntfy': {
|
|
|
|
'url': 'https://ntfy.franzi.business/icinga2',
|
|
|
|
'user': vault.decrypt('encrypt$gAAAAABkMtfW_tyGDUh7TkVX6AN8wSkKixWcQiOrPUWHtDZqnzjqrAkfD40fD8M_PiPDvW5pAa6xHNcUSU34jHolxnC44rDiLw=='),
|
|
|
|
'pass': vault.decrypt('encrypt$gAAAAABkMtfD8lenogwJc8uKeGZUQ8QVWHMpAqY_GLW3VhF3Jt0TOC4JiJn49qfaC9Ij5rw6GGsowNIsNBe1Ac83HXOLveANEU2o-O4fp5TxNF0xFWebCCtcaTkj_L2DjUbSUe8QVDn3'),
|
|
|
|
},
|
2020-11-22 09:34:49 +00:00
|
|
|
},
|
2020-12-31 11:40:26 +00:00
|
|
|
'icinga2_api': {
|
|
|
|
'custom': {
|
|
|
|
# redundant monitoring of services/hosts
|
|
|
|
'services': {
|
|
|
|
'flauschekatze.space CERTIFICATE': {
|
|
|
|
'check_command': 'check_https_cert_at_url',
|
|
|
|
'vars.domain': 'flauschekatze.space',
|
|
|
|
},
|
|
|
|
'matrix.flauschekatze.space CERTIFICATE': {
|
|
|
|
'check_command': 'check_https_cert_at_url',
|
|
|
|
'vars.domain': 'matrix.flauschekatze.space',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2020-11-13 12:19:26 +00:00
|
|
|
'nginx': {
|
|
|
|
'vhosts': {
|
|
|
|
'icingaweb': {
|
|
|
|
'domain': 'icinga.kunsmann.eu',
|
|
|
|
'webroot': '/usr/share/icingaweb2/public',
|
|
|
|
'extras': True,
|
|
|
|
},
|
2020-11-22 17:53:57 +00:00
|
|
|
'icinga_statusmonitor': {
|
|
|
|
'domain': 'statusmonitor.icinga.kunsmann.eu',
|
2021-07-04 17:27:12 +00:00
|
|
|
'locations': {
|
2020-11-22 17:53:57 +00:00
|
|
|
'/': {
|
|
|
|
'target': 'http://127.0.0.1:5000/',
|
|
|
|
}
|
|
|
|
},
|
2021-01-02 13:47:11 +00:00
|
|
|
},
|
|
|
|
'statuspage': {
|
|
|
|
'domain': 'status.franzi.business',
|
2021-07-17 10:01:29 +00:00
|
|
|
'ssl': '_.franzi.business',
|
2021-01-02 13:47:11 +00:00
|
|
|
'webroot': '/opt/simple-icinga-dashboard/out',
|
|
|
|
},
|
2020-11-13 12:19:26 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
'php': {
|
2022-03-13 13:07:55 +00:00
|
|
|
'version': '8.0',
|
2020-11-13 12:19:26 +00:00
|
|
|
'packages': {
|
2020-11-21 07:57:46 +00:00
|
|
|
'curl',
|
|
|
|
'gd',
|
|
|
|
'intl',
|
2022-03-13 13:07:55 +00:00
|
|
|
'imagick',
|
2020-11-21 07:57:46 +00:00
|
|
|
'ldap',
|
2021-07-17 07:04:04 +00:00
|
|
|
'mysql',
|
2020-11-13 12:19:26 +00:00
|
|
|
'opcache',
|
|
|
|
'pgsql',
|
|
|
|
'readline',
|
|
|
|
'xml',
|
|
|
|
},
|
|
|
|
},
|
2022-03-02 06:06:01 +00:00
|
|
|
'postgresql': {
|
2022-02-27 11:51:53 +00:00
|
|
|
'version': '11',
|
|
|
|
},
|
2021-01-02 13:47:11 +00:00
|
|
|
'simple-icinga-dashboard': {
|
2021-04-10 14:08:52 +00:00
|
|
|
'icinga2_api': {
|
|
|
|
'baseurl': 'https://127.0.0.1:5665',
|
|
|
|
'username': 'dashboard',
|
|
|
|
'password': vault.password_for('ovh.icinga2 icinga2 api_user dashboard'),
|
|
|
|
},
|
|
|
|
'filters': {
|
|
|
|
'services': '"checks_with_sms" in service.groups',
|
|
|
|
},
|
2021-04-11 09:27:49 +00:00
|
|
|
'output': {
|
|
|
|
'page_title': 'franzi.business Service Status',
|
|
|
|
},
|
2021-04-10 14:08:52 +00:00
|
|
|
'prettify': {
|
2021-04-10 13:43:37 +00:00
|
|
|
'CONTENT': '',
|
|
|
|
'NGINX': 'WEBSERVER',
|
|
|
|
'PROCESS': 'SERVICE',
|
|
|
|
},
|
2021-01-02 13:47:11 +00:00
|
|
|
},
|
2020-11-21 14:38:38 +00:00
|
|
|
'wireguard': {
|
|
|
|
'peers': {
|
2021-09-29 17:47:14 +00:00
|
|
|
'ovh.wireguard': {
|
|
|
|
'snat_to': '172.19.136.3',
|
|
|
|
},
|
2020-11-21 14:38:38 +00:00
|
|
|
},
|
|
|
|
},
|
2020-11-09 15:40:15 +00:00
|
|
|
'zfs': {
|
|
|
|
'pools': {
|
2021-08-17 16:09:51 +00:00
|
|
|
'tank': {
|
|
|
|
'when_creating': {
|
|
|
|
'config': [{
|
|
|
|
'devices': {
|
|
|
|
'/dev/sdb'
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
},
|
|
|
|
},
|
2020-11-09 15:40:15 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
'vm': {
|
|
|
|
'cpu': 1,
|
|
|
|
'ram': 2,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|