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:
- icinga2
- nagios-plugins
- bsd-mailx
- nagios-nrpe-plugin
icinga2_use_public_yum_repo: True
icinga2_url_yum: "https://packages.icinga.org/epel/ICINGA-release.repo"
......@@ -24,6 +25,7 @@ icinga2_yum:
- icinga2-selinux
- nagios-plugins-all
- mailx
- nagios-plugins-nrpe
icinga2_main_conf: "/etc/icinga2/icinga2.conf"
icinga2_conf_d: "/etc/icinga2/conf.d"
......@@ -21,7 +21,8 @@ icinga2_web2_ui_rpm:
- icingaweb2
- icingacli
- git
- php-yaml
icinga2_web2_ui_deb:
- icingaweb2
- git
......@@ -91,6 +91,16 @@
- icinga2_ido_postgres_configuration is defined
- 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
yum:
......
......@@ -4,6 +4,7 @@
nrpe_agent_RedHat:
- nrpe
- nagios-plugins-all
- nrpe-selinux
nrpe_agent_Debian:
- 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