erlang: Add parameter for Erlang Solutions repositories
This commit is contained in:
parent
511aca42e1
commit
9635cf3256
1 changed files with 19 additions and 1 deletions
|
@ -1,6 +1,24 @@
|
||||||
# Install erlang.
|
# 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 {
|
case $::operatingsystem {
|
||||||
'centos','redhat','fedora': {
|
'centos','redhat','fedora': {
|
||||||
|
|
Loading…
Add table
Reference in a new issue