33 lines
549 B
Ruby
33 lines
549 B
Ruby
#
|
|
# Cookbook Name:: kosmos-hubot
|
|
# Recipe:: default
|
|
#
|
|
# Copyright 2017-2018, Kosmos
|
|
#
|
|
|
|
unless node.chef_environment == "development"
|
|
include_recipe 'firewall'
|
|
firewall_rule 'hubot_express_hal8000_freenode' do
|
|
port 8080
|
|
protocol :tcp
|
|
command :allow
|
|
end
|
|
end
|
|
|
|
include_recipe "kosmos-nodejs"
|
|
include_recipe "kosmos-redis"
|
|
|
|
group "hubot" do
|
|
gid 48268
|
|
end
|
|
|
|
user "hubot" do
|
|
comment "hubot user"
|
|
uid 48268
|
|
gid 48268
|
|
shell "/bin/bash"
|
|
end
|
|
|
|
include_recipe "kosmos-hubot::hal8000"
|
|
include_recipe "kosmos-hubot::botka_freenode"
|