Deploy schlupp from new private repo
This commit is contained in:
@@ -7,3 +7,5 @@ long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
|
||||
version '0.1.0'
|
||||
|
||||
depends 'kosmos-nodejs'
|
||||
depends 'application'
|
||||
depends 'application_nodejs'
|
||||
|
||||
@@ -13,12 +13,6 @@ firewall_rule 'hubot_express_hal8000' do
|
||||
command :allow
|
||||
end
|
||||
|
||||
firewall_rule 'hubot_express_schlupp' do
|
||||
port 8081
|
||||
protocol :tcp
|
||||
command :allow
|
||||
end
|
||||
|
||||
include_recipe "kosmos-nodejs"
|
||||
include_recipe "kosmos-redis"
|
||||
|
||||
@@ -97,44 +91,6 @@ application "hal8000" do
|
||||
end
|
||||
end
|
||||
|
||||
schlupp_5apps_data_bag_item = Chef::EncryptedDataBagItem.load('credentials', 'schlupp_5apps')
|
||||
|
||||
application "schlupp" do
|
||||
path "/srv/schlupp"
|
||||
owner "hubot"
|
||||
group "hubot"
|
||||
|
||||
action :deploy
|
||||
|
||||
repository "https://github.com/67P/hal8000.git"
|
||||
revision "master"
|
||||
|
||||
nodejs do
|
||||
entry_point "/srv/schlupp/current/bin/hubot -a irc"
|
||||
# Use our own systemd service that depends on redis-server
|
||||
template "nodejs.systemd.service.erb"
|
||||
environment "HUBOT_IRC_SERVER" => "5apps.irc.grove.io",
|
||||
"HUBOT_IRC_ROOMS" => "#5apps,#5info,#5ops,#core,#deploy,#gymapp,#liveident,#storage,#watercooler",
|
||||
"HUBOT_IRC_NICK" => "schlupp",
|
||||
"HUBOT_IRC_NICKSERV_PASSWORD" => schlupp_5apps_data_bag_item['nickserv_password'],
|
||||
"HUBOT_IRC_PASSWORD" => "5apps",
|
||||
"HUBOT_IRC_UNFLOOD" => "100",
|
||||
"HUBOT_RSS_PRINTSUMMARY" => "false",
|
||||
"HUBOT_RSS_IRCCOLORS" => "true",
|
||||
"EXPRESS_PORT" => "8081",
|
||||
"HUBOT_RSS_HEADER" => "Update:",
|
||||
"HUBOT_AUTH_ADMIN" => "galfert,gregkare,basti",
|
||||
"HUBOT_IRC_USESSL" => "true",
|
||||
"REDIS_URL" => "redis://localhost:6379/5apps",
|
||||
"HUBOT_IRC_PORT" => "6697",
|
||||
"RS_LOGGER_USER" => "5apps@5apps.com",
|
||||
"RS_LOGGER_TOKEN" => schlupp_5apps_data_bag_item['rs_logger_token'],
|
||||
"RS_LOGGER_SERVER_NAME" => "grove-5apps",
|
||||
"WEBHOOK_TOKEN" => schlupp_5apps_data_bag_item['webhook_token'],
|
||||
"HUBOT_IRC_SERVER_FAKE_SSL" => "true" # Accept expired grove cert...
|
||||
end
|
||||
end
|
||||
|
||||
botka_freenode_data_bag_item = Chef::EncryptedDataBagItem.load('credentials', 'botka_freenode')
|
||||
|
||||
application "botka_freenode" do
|
||||
|
||||
Reference in New Issue
Block a user