Project

General

Profile

« Previous | Next » 

Revision 558a2411

Added by Jan Vansteenkiste over 12 years ago

Create proper parameters that can be set without changing code

View differences:

manifests/params.pp
class git::params {
$bin = '/usr/bin/git'
$pkg = $::operatingsystem ? {
/(Debian|Ubuntu)/ => ['git-core'],
default => ['git'],
class git::params (
$bin = '/usr/bin/git',
$package = undef
) {
$pkg = $package ? {
undef => $::operatingystem ? {
/(?i:Debian|Ubuntu)/ => ['git-core'],
default => ['git'],
},
default => $package,
}
}

Also available in: Unified diff