Commit a086ea68 authored by Assaf Flatto's avatar Assaf Flatto

Add nrpe plugin default installation

Timezone detection for RedHat based distribution
nrpe selinux policy
parent 23bba788
...@@ -13,6 +13,7 @@ icinga2_pkg: ...@@ -13,6 +13,7 @@ icinga2_pkg:
- icinga2 - icinga2
- nagios-plugins - nagios-plugins
- bsd-mailx - bsd-mailx
- nagios-nrpe-plugin
icinga2_use_public_yum_repo: True icinga2_use_public_yum_repo: True
icinga2_url_yum: "https://packages.icinga.org/epel/ICINGA-release.repo" icinga2_url_yum: "https://packages.icinga.org/epel/ICINGA-release.repo"
...@@ -24,6 +25,7 @@ icinga2_yum: ...@@ -24,6 +25,7 @@ icinga2_yum:
- icinga2-selinux - icinga2-selinux
- nagios-plugins-all - nagios-plugins-all
- mailx - mailx
- nagios-plugins-nrpe
icinga2_main_conf: "/etc/icinga2/icinga2.conf" icinga2_main_conf: "/etc/icinga2/icinga2.conf"
icinga2_conf_d: "/etc/icinga2/conf.d" icinga2_conf_d: "/etc/icinga2/conf.d"
...@@ -21,7 +21,8 @@ icinga2_web2_ui_rpm: ...@@ -21,7 +21,8 @@ icinga2_web2_ui_rpm:
- icingaweb2 - icingaweb2
- icingacli - icingacli
- git - git
- php-yaml
icinga2_web2_ui_deb: icinga2_web2_ui_deb:
- icingaweb2 - icingaweb2
- git - git
...@@ -91,6 +91,16 @@ ...@@ -91,6 +91,16 @@
- icinga2_ido_postgres_configuration is defined - icinga2_ido_postgres_configuration is defined
- ansible_distribution_major_version == "6" - ansible_distribution_major_version == "6"
- name: Find out timezone
slurp:
src: /etc/localtime
register: etc_localtime
- name: Timezone in php.ini
lineinfile:
path: /etc/opt/rh/rh-php71/php.ini
regexp: '^;?date.timezone ='
line: 'date.timezone = "{{ etc_localtime["content"] | b64decode | regex_replace("\n") }}"'
- name: Install Icinga Web2 on RedHat OS family - name: Install Icinga Web2 on RedHat OS family
yum: yum:
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
nrpe_agent_RedHat: nrpe_agent_RedHat:
- nrpe - nrpe
- nagios-plugins-all - nagios-plugins-all
- nrpe-selinux
nrpe_agent_Debian: nrpe_agent_Debian:
- nagios-nrpe-server - nagios-nrpe-server
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment