Add logging only bot to Freenode: botka!
This commit is contained in:
parent
7dd298e906
commit
ee26a3f1fc
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"id": "botka_freenode",
|
||||
"rs_logger_token": {
|
||||
"encrypted_data": "iRv44+Er+WEGESgyUqboHt3GEnZhfiy4wX+fSKw3aQw7fvOsojADBwFCW6eu\nWoBB9MimJi6PnmMOJJ6A+FyTYw==\n",
|
||||
"iv": "VVLgCPz33YYqwNdjrF9WyQ==\n",
|
||||
"version": 1,
|
||||
"cipher": "aes-256-cbc"
|
||||
},
|
||||
"nickserv_password": {
|
||||
"encrypted_data": "OIjbuQTfjL0ksRM/3JLHw7aY/l61Z1NuQZr3sbG7kfMNJrdwaTsvDHXqf4Ja\nUmD3\n",
|
||||
"iv": "jV1/0L2mpONfNWFPmec+8w==\n",
|
||||
"version": 1,
|
||||
"cipher": "aes-256-cbc"
|
||||
}
|
||||
}
|
|
@ -31,6 +31,25 @@ application "hal8000" do
|
|||
|
||||
action :deploy
|
||||
|
||||
before_restart do
|
||||
file "#{new_resource.release_path}/external-scripts.json" do
|
||||
mode "0640"
|
||||
owner "hubot"
|
||||
group "hubot"
|
||||
content [
|
||||
"hubot-help",
|
||||
"hubot-read-tweet",
|
||||
"hubot-redis-brain",
|
||||
"hubot-rules",
|
||||
"hubot-shipit",
|
||||
"hubot-plusplus",
|
||||
"hubot-tell",
|
||||
"hubot-seen",
|
||||
"hubot-rss-reader"
|
||||
].to_json
|
||||
end
|
||||
end
|
||||
|
||||
repository "https://github.com/67P/hal8000.git"
|
||||
revision "master"
|
||||
|
||||
|
@ -49,11 +68,7 @@ application "hal8000" do
|
|||
# "HUBOT_LOG_LEVEL" => "error",
|
||||
"EXPRESS_PORT" => "8080",
|
||||
"HUBOT_RSS_HEADER" => "Update:",
|
||||
"HUBOT_AUTH_ADMIN" => "bkero,derbumi,galfert,gregkare,jaaan,slvrbckt,raucao",
|
||||
"RS_LOGGER_USER" => "kosmos@5apps.com",
|
||||
"RS_LOGGER_TOKEN" => hal8000_freenode_data_bag_item['rs_logger_token'],
|
||||
"RS_LOGGER_SERVER_NAME" => "freenode",
|
||||
"RS_LOGGER_PUBLIC" => "true"
|
||||
"HUBOT_AUTH_ADMIN" => "bkero,derbumi,galfert,gregkare,jaaan,slvrbckt,raucao"
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -94,3 +109,50 @@ application "schlupp" do
|
|||
end
|
||||
end
|
||||
|
||||
botka_freenode_data_bag_item = Chef::EncryptedDataBagItem.load('credentials', 'botka_freenode')
|
||||
|
||||
application "botka_freenode" do
|
||||
path "/srv/botka_freenode"
|
||||
owner "hubot"
|
||||
group "hubot"
|
||||
|
||||
action :deploy
|
||||
|
||||
before_restart do
|
||||
file "#{new_resource.release_path}/external-scripts.json" do
|
||||
mode "0640"
|
||||
owner "hubot"
|
||||
group "hubot"
|
||||
content [
|
||||
"hubot-help",
|
||||
"hubot-redis-brain",
|
||||
"hubot-remotestorage-logger"
|
||||
].to_json
|
||||
end
|
||||
end
|
||||
|
||||
repository "https://github.com/67P/hal8000.git"
|
||||
revision "master"
|
||||
|
||||
nodejs do
|
||||
entry_point "/srv/botka_freenode/current/bin/hubot -a irc"
|
||||
# Use our own systemd service that depends on redis-server
|
||||
template "nodejs.systemd.service.erb"
|
||||
environment "HUBOT_IRC_SERVER" => "irc.freenode.net",
|
||||
"HUBOT_IRC_ROOMS" => "#5apps,#67p,#kosmos,#kosmos-dev,#remotestorage,#hackerbeach,#unhosted,#sockethub",
|
||||
"HUBOT_IRC_NICK" => "botka",
|
||||
"HUBOT_IRC_NICKSERV_USERNAME" => "botka",
|
||||
"HUBOT_IRC_NICKSERV_PASSWORD" => botka_freenode_data_bag_item['nickserv_password'],
|
||||
"HUBOT_IRC_UNFLOOD" => "100",
|
||||
"HUBOT_RSS_PRINTSUMMARY" => "false",
|
||||
"HUBOT_RSS_IRCCOLORS" => "true",
|
||||
# "HUBOT_LOG_LEVEL" => "error",
|
||||
"EXPRESS_PORT" => "8082",
|
||||
"HUBOT_AUTH_ADMIN" => "bkero,derbumi,galfert,gregkare,jaaan,slvrbckt,raucao",
|
||||
"RS_LOGGER_USER" => "kosmos@5apps.com",
|
||||
"RS_LOGGER_TOKEN" => botka_freenode_data_bag_item['rs_logger_token'],
|
||||
"RS_LOGGER_SERVER_NAME" => "freenode",
|
||||
"RS_LOGGER_PUBLIC" => "true"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue