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',
|
'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': {
|
'/etc/icinga2/conf.d': {
|
||||||
'purge': True,
|
'purge': True,
|
||||||
'owner': 'nagios',
|
'owner': 'nagios',
|
||||||
|
@ -195,7 +213,8 @@ files = {
|
||||||
# FEATURES
|
# FEATURES
|
||||||
|
|
||||||
for feature, context in {
|
for feature, context in {
|
||||||
'journald': {},
|
'mainlog': {},
|
||||||
|
# 'journald': {}, FIXME
|
||||||
'notification': {},
|
'notification': {},
|
||||||
'checker': {},
|
'checker': {},
|
||||||
'api': {},
|
'api': {},
|
||||||
|
|
|
@ -49,7 +49,6 @@ defaults = {
|
||||||
'mountpoint': '/var/lib/icinga2',
|
'mountpoint': '/var/lib/icinga2',
|
||||||
'needed_by': {
|
'needed_by': {
|
||||||
'pkg_apt:icinga2',
|
'pkg_apt:icinga2',
|
||||||
'pkg_apt:icingaweb2',
|
|
||||||
'pkg_apt:icinga2-ido-pgsql',
|
'pkg_apt:icinga2-ido-pgsql',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -2,3 +2,4 @@
|
||||||
- open /icingaweb2/setup in browser
|
- open /icingaweb2/setup in browser
|
||||||
- fill in values from metadata
|
- fill in values from metadata
|
||||||
- apply
|
- apply
|
||||||
|
- make sure tls cert exists and is owned by nagios
|
||||||
|
|
|
@ -3,7 +3,6 @@ from hashlib import sha3_256
|
||||||
defaults = {
|
defaults = {
|
||||||
'apt': {
|
'apt': {
|
||||||
'packages': {
|
'packages': {
|
||||||
'icingaweb2': {},
|
|
||||||
'php-ldap': {},
|
'php-ldap': {},
|
||||||
'php-json': {},
|
'php-json': {},
|
||||||
'php-intl': {},
|
'php-intl': {},
|
||||||
|
@ -11,11 +10,11 @@ defaults = {
|
||||||
'php-gd': {},
|
'php-gd': {},
|
||||||
'php-imagick': {},
|
'php-imagick': {},
|
||||||
'php-pgsql': {},
|
'php-pgsql': {},
|
||||||
|
'icingaweb2': {},
|
||||||
'icingaweb2-module-monitoring': {},
|
'icingaweb2-module-monitoring': {},
|
||||||
},
|
},
|
||||||
'sources': {
|
'sources': {
|
||||||
'deb https://packages.icinga.com/debian icinga-{release} main',
|
'deb https://packages.icinga.com/debian icinga-{release} main',
|
||||||
'deb https://packages.icinga.com/debian icinga-{release}-snapshots main',
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'icingaweb2': {
|
'icingaweb2': {
|
||||||
|
|
Loading…
Reference in a new issue