icinga setup is working now

This commit is contained in:
cronekorkn 2023-02-18 14:04:35 +01:00
parent 8a54f64b18
commit 44ec984552
Signed by: cronekorkn
SSH key fingerprint: SHA256:v0410ZKfuO1QHdgKBsdQNF64xmTxOF8osF1LIqwTcVw
5 changed files with 26 additions and 4 deletions

View file

@ -0,0 +1,4 @@
/**
* This file is requires for inital apt install.
* The JournaldLogger type writes log information to the systemd journal.
*/

View file

@ -10,6 +10,24 @@ directories = {
'svc_systemd:icinga2.service:restart',
],
},
'/etc/icinga2/pki': { # required for apt install
'purge': True,
'owner': 'nagios',
'group': 'nagios',
'mode': '0750',
'triggers': [
'svc_systemd:icinga2.service:restart',
],
},
'/etc/icinga2/zones.d': { # required for apt install
'purge': True,
'owner': 'nagios',
'group': 'nagios',
'mode': '0750',
'triggers': [
'svc_systemd:icinga2.service:restart',
],
},
'/etc/icinga2/conf.d': {
'purge': True,
'owner': 'nagios',
@ -195,7 +213,8 @@ files = {
# FEATURES
for feature, context in {
'journald': {},
'mainlog': {},
# 'journald': {}, FIXME
'notification': {},
'checker': {},
'api': {},

View file

@ -49,7 +49,6 @@ defaults = {
'mountpoint': '/var/lib/icinga2',
'needed_by': {
'pkg_apt:icinga2',
'pkg_apt:icingaweb2',
'pkg_apt:icinga2-ido-pgsql',
},
},

View file

@ -2,3 +2,4 @@
- open /icingaweb2/setup in browser
- fill in values from metadata
- apply
- make sure tls cert exists and is owned by nagios

View file

@ -3,7 +3,6 @@ from hashlib import sha3_256
defaults = {
'apt': {
'packages': {
'icingaweb2': {},
'php-ldap': {},
'php-json': {},
'php-intl': {},
@ -11,11 +10,11 @@ defaults = {
'php-gd': {},
'php-imagick': {},
'php-pgsql': {},
'icingaweb2': {},
'icingaweb2-module-monitoring': {},
},
'sources': {
'deb https://packages.icinga.com/debian icinga-{release} main',
'deb https://packages.icinga.com/debian icinga-{release}-snapshots main',
},
},
'icingaweb2': {