icinga setup is working now
This commit is contained in:
parent
8a54f64b18
commit
44ec984552
5 changed files with 26 additions and 4 deletions
4
bundles/icinga2/files/features/mainlog.conf
Normal file
4
bundles/icinga2/files/features/mainlog.conf
Normal file
|
@ -0,0 +1,4 @@
|
|||
/**
|
||||
* This file is requires for inital apt install.
|
||||
* The JournaldLogger type writes log information to the systemd journal.
|
||||
*/
|
|
@ -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': {},
|
||||
|
|
|
@ -49,7 +49,6 @@ defaults = {
|
|||
'mountpoint': '/var/lib/icinga2',
|
||||
'needed_by': {
|
||||
'pkg_apt:icinga2',
|
||||
'pkg_apt:icingaweb2',
|
||||
'pkg_apt:icinga2-ido-pgsql',
|
||||
},
|
||||
},
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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': {
|
||||
|
|
Loading…
Reference in a new issue