Initial version of the cookbook to install prosody
This commit is contained in:
25
site-cookbooks/5apps-xmpp_server/recipes/default.rb
Normal file
25
site-cookbooks/5apps-xmpp_server/recipes/default.rb
Normal file
@@ -0,0 +1,25 @@
|
||||
#
|
||||
# Cookbook Name:: 5apps-xmpp_server
|
||||
# Recipe:: default
|
||||
#
|
||||
# Copyright 2016, 5apps
|
||||
#
|
||||
# All rights reserved - Do Not Redistribute
|
||||
#
|
||||
|
||||
firewall_rule "xmpp" do
|
||||
port [5222, 5269]
|
||||
protocol :tcp
|
||||
command :allow
|
||||
end
|
||||
|
||||
apt_repository "prosody" do
|
||||
uri "https://packages.prosody.im/debian"
|
||||
distribution node["lsb"]["codename"]
|
||||
components ["main"]
|
||||
key "https://prosody.im/files/prosody-debian-packages.key"
|
||||
end
|
||||
|
||||
package "prosody"
|
||||
|
||||
# TODO: Generate the config files
|
||||
Reference in New Issue
Block a user