Use a new Prosody Ubuntu repository to be able to update it

This commit is contained in:
Greg Karékinian 2017-10-17 15:32:03 +02:00
parent 49664dbc8d
commit acf86e4038

View File

@ -18,7 +18,8 @@ end
apt_repository "prosody" do
uri "https://packages.prosody.im/debian"
distribution node["lsb"]["codename"]
# 15.04 doesn't get new packages anymore, use the ones built for 16.04
distribution node["lsb"]["codename"] == "vivid" ? "xenial" : node["lsb"]["codename"]
components ["main"]
key "https://prosody.im/files/prosody-debian-packages.key"
end
@ -29,8 +30,10 @@ service "prosody" do
action [:enable]
end
include_recipe "5apps-xmpp_server::letsencrypt"
unless node.chef_environment == "development"
include_recipe "5apps-xmpp_server::letsencrypt"
# backup the data dir and the config files
node.override["backup"]["archives"]["prosody"] = ["/var/lib/prosody", "/etc/prosody"]
include_recipe "backup"
# backup the data dir and the config files
node.override["backup"]["archives"]["prosody"] = ["/var/lib/prosody", "/etc/prosody"]
include_recipe "backup"
end