summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-02-07 00:36:10 +0100
committermh <mh@immerda.ch>2011-02-07 00:36:10 +0100
commit6e520987ac41ef144f236c05b8095f285251471b (patch)
treeb578ca9bb172cc372b2d194fcc407d6dae73103e /manifests
parentaf846ae596b65be991b1648fcb3b8da02e9aeb1d (diff)
fix pid/socket location for centos, open firewall if we want to connect to an irc server
Diffstat (limited to 'manifests')
-rw-r--r--manifests/irc_bot.pp14
1 files changed, 12 insertions, 2 deletions
diff --git a/manifests/irc_bot.pp b/manifests/irc_bot.pp
index 46cea0c..760abd0 100644
--- a/manifests/irc_bot.pp
+++ b/manifests/irc_bot.pp
@@ -4,11 +4,17 @@ class nagios::irc_bot {
}
$nagios_nsa_socket = $nagios_nsa_socket ? {
- '' => '/var/run/nagios3/nsa.socket',
+ '' => $operatingsystem ? {
+ centos => '/var/run/nagios-nsa/nsa.socket',
+ default => '/var/run/nagios3/nsa.socket'
+ },
default => $nagios_nsa_socket,
}
$nagios_nsa_pidfile = $nagios_nsa_pidfile ? {
- '' => '/var/run/nagios3/nsa.pid',
+ '' => $operatingsystem ? {
+ centos => '/var/run/nagios-nsa/nsa.socket',
+ default => '/var/run/nagios3/nsa.pid'
+ },
default => $nagios_nsa_pidfile,
}
$nagios_nsa_port = $nagios_nsa_port ? {
@@ -80,4 +86,8 @@ class nagios::irc_bot {
"host-notify-by-irc":
command_line => '/usr/local/bin/riseup-nagios-client.pl "$HOSTNAME$ ($HOSTALIAS$) $NOTIFICATIONTYPE$ n.$HOSTATTEMPT$ $HOSTSTATETYPE$ took $HOSTEXECUTIONTIME$s $HOSTOUTPUT$ $HOSTPERFDATA$ $HOSTLATENCY$s"';
}
+
+ if $use_shorewall {
+ include shorewall::rules::out::irc
+ }
}