Chef recipes for Kosmos XMPP server #32

Merged
raucao merged 23 commits from feature/7-ejabberd_rebased_2 into master 2019-05-15 08:46:19 +00:00
Showing only changes of commit 80449ccbeb - Show all commits

View File

@ -0,0 +1,16 @@
#
# Cookbook:: kosmos-ejabberd
# Recipe:: backup
#
# Copyright:: 2019, Kosmos, All Rights Reserved.
#
unless node.chef_environment == "development"
# backup the data dir and the config files
node.override["backup"]["archives"]["ejabberd"] = ["/opt/ejabberd", "/var/www/xmpp.kosmos.org"]
unless node["backup"]["postgresql"]["databases"].include? "ejabberd"
node.override["backup"]["postgresql"]["databases"] =
node["backup"]["postgresql"]["databases"].to_a << "ejabberd"
end
include_recipe "backup"
end