erlang: Add parameter for Erlang Solutions repositories

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

View file

@ -1,6 +1,24 @@
# Install erlang.
#
class erlang {
# === Parameters
#
# $erlang_solutions:
# Use Erlang Solutions repositories. Defaults to false.
#
class erlang(
$erlang_solutions=false,
) {
if $erlang_solutions == true {
case $::operatingsystem {
'centos': {
require yum::repo::erlang_solutions
}
default: {
fail("Erlang Solutions not supported on ${::operatingsystem}.")
}
}
}
case $::operatingsystem {
'centos','redhat','fedora': {