ejabberd: Use Erlang Solutions repositories when needed
This commit is contained in:
parent
9635cf3256
commit
4a4c5fe9b2
1 changed files with 10 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue