]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
common: Change path to nrpe pid_file on RedHat/CentOS 325/head
authorDavid Galloway <dgallowa@redhat.com>
Mon, 24 Jul 2017 20:40:38 +0000 (16:40 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Mon, 24 Jul 2017 20:40:38 +0000 (16:40 -0400)
I can't find the exact commit in nrpe that caused this to change but the
path has changed and the nrpe service fails to start on CentOS/RHEL now.

Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/common/templates/nagios/nrpe.cfg

index b59c3a82a0df7f4a08d0e0f213e684f04973617d..d866f6d4bc0361f4fcd163e5ac95561c5bda03f6 100644 (file)
@@ -1,6 +1,10 @@
 # {{ ansible_managed }}
 log_facility=daemon
+{% if ansible_os_family == "Debian" %}
 pid_file=/var/run/nagios/nrpe.pid
+{% else %}
+pid_file=/var/run/nrpe/nrpe.pid
+{% endif %}
 server_port=5666
 nrpe_user={{ nrpe_user }}
 nrpe_group={{ nrpe_group }}