[KGB] Conf du bot kgb dans bcfg2
This commit is contained in:
parent
e426f8f204
commit
6d94269807
4 changed files with 113 additions and 0 deletions
5
Bundler/kgb-bot.xml
Normal file
5
Bundler/kgb-bot.xml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<Bundle name="kgb-bot">
|
||||||
|
<Python name="/etc/kgb-bot/kgb.conf"/>
|
||||||
|
<Service name="kgb-bot"/>
|
||||||
|
<Package name="kgb-bot"/>
|
||||||
|
</Bundle>
|
|
@ -257,6 +257,7 @@
|
||||||
profile="true">
|
profile="true">
|
||||||
<Group name="crans-vm-wheezy"/>
|
<Group name="crans-vm-wheezy"/>
|
||||||
<Group name="nginx"/> <!-- Pour web-irc.crans.org -->
|
<Group name="nginx"/> <!-- Pour web-irc.crans.org -->
|
||||||
|
<Bundle name="kgb-bot"/>
|
||||||
</Group>
|
</Group>
|
||||||
|
|
||||||
<Group name="xmpp"
|
<Group name="xmpp"
|
||||||
|
|
104
Python/etc/kgb-bot/kgb.conf
Normal file
104
Python/etc/kgb-bot/kgb.conf
Normal file
|
@ -0,0 +1,104 @@
|
||||||
|
# -*- coding: utf-8; mode: python -*-
|
||||||
|
|
||||||
|
include("secrets")
|
||||||
|
|
||||||
|
info["owner"] = "Debian-kgb"
|
||||||
|
info["group"] = "adm"
|
||||||
|
info["perms"] = 0660
|
||||||
|
|
||||||
|
header("Configuration du bot KGB\nIl annonce les commits git sur les channels IRC.")
|
||||||
|
|
||||||
|
@# vim: filetype=yaml
|
||||||
|
@---
|
||||||
|
@soap:
|
||||||
|
@ server_addr: 0.0.0.0
|
||||||
|
@ server_port: 5391
|
||||||
|
@ service_name: KGB
|
||||||
|
@queue_limit: 150
|
||||||
|
@log_file: "/var/log/kgb-bot.log"
|
||||||
|
@include: "/etc/kgb-bot/kgb.conf.d"
|
||||||
|
@repositories:
|
||||||
|
@ # just a name to identify it
|
||||||
|
@ crans:
|
||||||
|
@ # needs to be the same on the client
|
||||||
|
|
||||||
|
print " password: %s" % secrets.kgb_passwords["crans"]
|
||||||
|
|
||||||
|
@ # private repositories aren't announced to broadcast channels
|
||||||
|
@ # private: yes
|
||||||
|
|
||||||
|
for depot in ["ca", "note", "bots", "bde", "fortunes"]:
|
||||||
|
print " %s:" % (depot,)
|
||||||
|
print " password: %s" % (secrets.kgb_passwords[depot],)
|
||||||
|
|
||||||
|
@# Some witty answer for people that talk to the bot
|
||||||
|
@smart_answers:
|
||||||
|
@ - "I wont speak with you!"
|
||||||
|
@ - "Do not disturb!"
|
||||||
|
@ - "Leave me alone, I am buzy!"
|
||||||
|
@ - "I'm in ur channel, watching ur commits!"
|
||||||
|
@# Admins are allowed some special !commands (currently only !version)
|
||||||
|
@admins:
|
||||||
|
@ - PEB!becue@zamok.crans.org
|
||||||
|
@networks:
|
||||||
|
@ crans:
|
||||||
|
@ nick: KGB
|
||||||
|
@ ircname: KGB bot
|
||||||
|
@ username: kgb
|
||||||
|
@ password: ~
|
||||||
|
@ nickserv_password: ~
|
||||||
|
@ server: irc.crans.org
|
||||||
|
@ port: 6667
|
||||||
|
@channels:
|
||||||
|
@# a broadcast channel
|
||||||
|
@# - name: '#flood'
|
||||||
|
@# network: crans
|
||||||
|
@# broadcast: yes
|
||||||
|
@# a channel, tied to one or several repositories
|
||||||
|
@ - name: '#roots'
|
||||||
|
@ network: crans
|
||||||
|
@ repos:
|
||||||
|
@ - crans
|
||||||
|
@ # Can also be set per-channel
|
||||||
|
@ #smart_answers:
|
||||||
|
@ # - "I'm in ur channel, watching ur commits!"
|
||||||
|
@ # - "I am not listening"
|
||||||
|
@ # - "Shut up! I am buzy watching you."
|
||||||
|
@ - name: '#ca'
|
||||||
|
@ network: crans
|
||||||
|
@ repos:
|
||||||
|
@ - ca
|
||||||
|
@ - name: '#note'
|
||||||
|
@ network: crans
|
||||||
|
@ repos:
|
||||||
|
@ - note
|
||||||
|
@ - bde
|
||||||
|
@ - name: '#bot'
|
||||||
|
@ network: crans
|
||||||
|
@ repos:
|
||||||
|
@ - bots
|
||||||
|
@ - name: '#crans'
|
||||||
|
@ network: crans
|
||||||
|
@ repos:
|
||||||
|
@ - fortunes
|
||||||
|
@pid_dir: /var/run/kgb-bot
|
||||||
|
@# anything less is rejected
|
||||||
|
@min_protocol_ver: 1
|
||||||
|
@# default colors:
|
||||||
|
@# colors:
|
||||||
|
@# repository: bold
|
||||||
|
@# revision: bold
|
||||||
|
@# author: green
|
||||||
|
@# branch: brown
|
||||||
|
@# module: purple
|
||||||
|
@# path: teal
|
||||||
|
@# addition: green
|
||||||
|
@# modification: teal
|
||||||
|
@# deletion: "bold red"
|
||||||
|
@# replacement: reverse
|
||||||
|
@# prop_change: underline
|
||||||
|
@# web: silver
|
||||||
|
@# you can combine them like "bold red" (ouch!)
|
||||||
|
@# available colors: black, navy, green, red, brown, purple, orange, yellow,
|
||||||
|
@# lime, teal, aqua, blue, fuchsia, gray, silver, white
|
||||||
|
@# available modifiers: bold underline reverse
|
3
Rules/kgb-bot.xml
Normal file
3
Rules/kgb-bot.xml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<Rules priority="1">
|
||||||
|
<Service type="deb" name="kgb-bot" status="on"/>
|
||||||
|
</Rules>
|
Loading…
Add table
Add a link
Reference in a new issue