Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add 'fab announcer' in case I ever update it

  • Loading branch information...
commit ff766b6b1db65a086f461891c2c43c2c5809b847 1 parent 1f09a02
@derf derf authored
View
15 fabfile.py
@@ -57,7 +57,7 @@ def deploy(version):
etckeeper_done()
# Only for derf ;-)
-@hosts('aneurysm')
+@hosts('derf@derf.homelinux.org')
def icinga():
etckeeper_check(use_sudo=True)
put_icinga_check('http_authed')
@@ -69,6 +69,8 @@ def icinga():
'/etc/nagios/chaosdorf_websites.ini')
put_sudo('icinga/chaosdorf.cfg', '/etc/icinga/objects/chaosdorf.cfg')
put_sudo('icinga/checks.cfg', '/etc/nagios-plugins/config/chaosdorf.cfg')
+ put_sudo('nagios-goodies/irc-announce/notify',
+ '/usr/local/lib/nagios/notify/chaosdorf-admins')
sudo('if ! /etc/init.d/icinga check; then etckeeper vcs checkout '
+ 'icinga/objects/chaosdorf.cfg '
@@ -79,3 +81,14 @@ def icinga():
sudo('/etc/init.d/icinga reload')
etckeeper_commit('Icinga config updates from chaosdorf-admin-toolkit',
use_sudo=True)
+
+# Same here
+@hosts('steel.derf0.net')
+def announcer():
+ etckeeper_check(use_sudo=True)
+ put_sudo('nagios-goodies/irc-announce/run', '/etc/service/ircport/run')
+ put_sudo('nagios-goodies/irc-announce/ircport',
+ '/usr/local/bin/icinga-irc')
+ sudo('svc -t /etc/service/ircport')
+ etckeeper_commit('icinga-irc updates from chaosdorf-admin-toolkit',
+ use_sudo=True)
View
0  nagios-goodies/README → nagios-goodies/irc-announce/README
File renamed without changes
View
0  nagios-goodies/ircport → nagios-goodies/irc-announce/ircport
File renamed without changes
View
5 nagios-goodies/irc-announce/notify
@@ -0,0 +1,5 @@
+#!/bin/sh
+#
+# Handled by chaosdorf-admin-toolkit. Only edit in git repo.
+
+echo "$@" | nc -q 3 10.200.200.2 6666
View
3  nagios-goodies/irc-announce/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec /usr/local/bin/icinga-irc
View
3  nagios-goodies/notify-chaosdorf
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-echo "$1" | nc -q 1 10.200.200.2 6666
Please sign in to comment.
Something went wrong with that request. Please try again.