ejabberd: Use Erlang Solutions repositories when needed

This commit is contained in:
Ossi Salmi 2015-06-23 17:05:37 +03:00
parent 9635cf3256
commit 4a4c5fe9b2

View file

@ -82,8 +82,6 @@ class ejabberd(
$ldap_password=undef
) {
require erlang
include user::system
realize(User["ejabberd"], Group["ejabberd"])
@ -104,9 +102,19 @@ class ejabberd(
}
if $package and versioncmp($package, "ejabberd-13.10") >= 0 {
if $::operatingsystem != 'CentOS' {
fail("ejabberd ${package} not supported on ${::operatingsystem}")
}
$config = "ejabberd.yml"
$erlang_solutions = true
} else {
$config = "ejabberd.cfg"
$erlang_solutions = false
}
class { "erlang":
erlang_solutions => $erlang_solutions,
before => Package["ejabberd"],
}
if $collab == true {