aboutsummaryrefslogtreecommitdiffstats
path: root/config.py
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2014-08-11 21:41:42 +0200
committertv <tv@shackspace.de>2014-08-11 21:41:42 +0200
commitc9abcaaa9657aaa1699ef33533820f18413bba26 (patch)
tree58aed4f9cf40b979e71df7d2ce6901ac389d8d20 /config.py
parentc8b63b54322302615906aa4fe281e8fb42afa9b2 (diff)
Reaktor nag: add support for service inspection
Diffstat (limited to 'config.py')
-rw-r--r--config.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/config.py b/config.py
index 9feecba..8a83b28 100644
--- a/config.py
+++ b/config.py
@@ -21,6 +21,12 @@ irc_channels = [
admin_file=workdir+'/admin.lst'
auth_file=workdir+'/auth.lst'
+nag_env={
+ 'hosts_repo': 'https://github.com/krebscode/hosts',
+ 'services_repo': 'gitolite@localhost:services',
+ 'inspect_services': 'false'
+}
+
config_filename = abspath(__file__)
# me is used, so name cannot kill our patterns below
@@ -58,10 +64,7 @@ public_commands = [
default_command('tell', cmd='tell-on_privmsg', env={
'state_file': workdir + '/tell.txt'
}),
- default_command('nag',env={
- 'hosts_repo': 'https://github.com/krebscode/hosts',
- 'services_repo': 'gitolite@localhost:services'
- }),
+ default_command('nag', env=nag_env),
simple_command('identify', env={
'config_filename': config_filename
}),
@@ -89,10 +92,7 @@ on_ping = [
{
'capname': 'nag',
'argv': [ 'commands/nag' ],
- 'env': {
- 'hosts_repo': 'https://github.com/krebscode/hosts',
- 'services_repo': 'gitolite@localhost:services'
- },
+ 'env': nag_env,
'targets': irc_channels
}
]