Project

General

Profile

« Previous | Next » 

Revision c0904302

Added by Thomas Weißschuh about 10 years ago

always default to 'git' package

debian has deprecated the git-core package, which is now a synonym for the git
package.
Furthermore the conditional had a typo (missing 's' in `$::operatingystem` ), so
git-core has never been used anyways.

View differences:

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

Also available in: Unified diff