73 lines
1.7 KiB
Text
73 lines
1.7 KiB
Text
|
|
icinga2:
|
|
pkg.installed
|
|
icingaweb2:
|
|
pkg.installed
|
|
icingaweb2-module-director:
|
|
pkg.installed
|
|
icinga-php:
|
|
pkg.installed:
|
|
- name: php
|
|
icinga-php-fpm:
|
|
pkg.installed:
|
|
- name: php-fpm
|
|
service.running:
|
|
- name: php-fpm
|
|
- enable: true
|
|
- watch:
|
|
- file: /etc/php/php.ini
|
|
icinga-php-xsl:
|
|
pkg.installed:
|
|
- name: php-xsl
|
|
icinga-mysql-client:
|
|
pkg.installed:
|
|
- name: mariadb-clients
|
|
|
|
/etc/nginx/conf.d/icinga-local.conf:
|
|
file.managed:
|
|
- source: salt://roles/maintain/icinga/nginx.conf
|
|
- user: root
|
|
- group: root
|
|
- mode: 644
|
|
- makedirs: true
|
|
/etc/php/php.ini:
|
|
file.managed:
|
|
- source: salt://roles/maintain/icinga/php.ini
|
|
- user: root
|
|
- group: root
|
|
- mode: 644
|
|
/etc/icinga2/features-available/ido-mysql.conf:
|
|
file.managed:
|
|
- source: salt://roles/maintain/icinga/ido-mysql.conf
|
|
- user: icinga
|
|
- group: icinga
|
|
- mode: 644
|
|
- template: jinja
|
|
/etc/icinga2/conf.d/api-users.conf:
|
|
file.managed:
|
|
- source: salt://roles/maintain/icinga/api-users.conf
|
|
- user: icinga
|
|
- group: icinga
|
|
- mode: 644
|
|
- template: jinja
|
|
|
|
/etc/icinga2/features-enabled/ido-mysql.conf:
|
|
file.symlink:
|
|
- target: /etc/icinga2/features-available/ido-mysql.conf
|
|
|
|
|
|
icinga2-service:
|
|
service.running:
|
|
- name: icinga2
|
|
- enable: true
|
|
|
|
#databases:
|
|
#icinga2_ido
|
|
#icinga2_director
|
|
#icinga2_web
|
|
|
|
#need to create icinga ido db and generate schema from /usr/share/icinga2-ido-mysql/schema/mysql.sql
|
|
#backup /etc/icingaweb2 - this is generated during setup in the GUI if it doesn't exist
|
|
|
|
#limit php open_basedir to icinga stuff - should be done for *all* php based web uis
|
|
#will want ldap php module eventually
|