Initial version of the cookbook to install prosody

This commit is contained in:
Greg Karékinian 2016-10-13 15:51:03 +02:00
parent cb2922b1c9
commit 2c2cdeb15a
4 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,6 @@
# 5apps-xmpp_server CHANGELOG
This file is used to list changes made in each version of the 5apps-xmpp_server cookbook.
## 0.1.0
- [Greg Karékinian] - Initial release of 5apps-xmpp_server

View File

@ -0,0 +1,3 @@
# 5apps-xmpp_server Cookbook
This cookbook installs prosody as 5apps' private XMPP server

View File

@ -0,0 +1,10 @@
name '5apps-xmpp_server'
maintainer 'Kosmos'
maintainer_email 'mail@kosmos.org'
license 'All rights reserved'
description 'Installs/Configures 5apps-xmpp_server'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.1.0'
depends 'firewall'
depends 'apt'

View 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