icinga2: install packages and dependencies

This commit is contained in:
Franzi 2020-11-13 13:19:26 +01:00
parent 277808a9c5
commit d31910368c
Signed by: kunsi
GPG key ID: 12E3D2136B818350
4 changed files with 44 additions and 6 deletions

View file

@ -12,11 +12,11 @@ files = {
},
'/etc/sshmon.priv': {
'content': repo.vault.decrypt_file(join('sshmon', 'sshmon.key.vault')),
#'owner': 'nagios',
#'group': 'nagios',
'owner': 'nagios',
'group': 'nagios',
'mode': '0400',
#'needs': {
# 'pkg_apt:icinga2-ido-pgsql',
#},
'needs': {
'pkg_apt:icinga2-ido-pgsql',
},
}
}

View file

@ -9,6 +9,11 @@ defaults = {
},
},
'packages': {
'icinga2': {},
'icinga2-ido-pgsql': {},
'icingaweb2': {},
'icingaweb2-module-monitoring': {},
# needed for check_rbl
'libdata-validate-ip-perl': {},
'libdata-validate-ip-perl': {},

View file

@ -0,0 +1,11 @@
location ~ \.php$ {
include fastcgi.conf;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_param SCRIPT_FILENAME /usr/share/icingaweb2/public/index.php;
fastcgi_param ICINGAWEB_CONFIGDIR /etc/icingaweb2;
}
location / {
try_files $1 $uri $uri/ /index.php$is_args$args;
}

View file

@ -1,10 +1,13 @@
nodes['ovh.icinga2'] = {
'bundles': {
'icinga2',
'php',
'postgresql',
'zfs',
},
'groups': set(),
'groups': {
'webserver',
},
'metadata': {
'interfaces': {
'eth0': {
@ -16,6 +19,25 @@ nodes['ovh.icinga2'] = {
'gateway6': '2001:41d0:701:1100::1'
},
},
'nginx': {
'vhosts': {
'icingaweb': {
'domain': 'icinga.kunsmann.eu',
'webroot': '/usr/share/icingaweb2/public',
'extras': True,
},
},
},
'php': {
'version': '7.4',
'packages': {
'json',
'opcache',
'pgsql',
'readline',
'xml',
},
},
'zfs': {
'pools': {
'tank': {