[package] dont use ubuntu ppa for debian

This commit is contained in:
Sebastien Badia 2013-06-24 17:27:44 +02:00
parent d92cba10be
commit 87c7da13c7
2 changed files with 18 additions and 5 deletions

View file

@ -5,10 +5,23 @@ class git::package {
case $::osfamily {
'Debian': {
class { 'git::package::debian':
require => Anchor['git::package::begin'],
before => Anchor['git::package::end'],
}
case $::operatingsystem {
'ubuntu': {
class { 'git::package::ubuntu':
require => Anchor['git::package::begin'],
before => Anchor['git::package::end'],
}
}
'debian': {
package { 'git-core':
require => Anchor['git::package::begin'],
before => Anchor['git::package::end'],
}
}
default: {
err("Module ${module_name} does not yet support ${::operatingsystem}")
}
} # Case $::operatingsystem
}
'RedHat': {
package { 'git':

View file

@ -1,5 +1,5 @@
#
class git::package::debian {
class git::package::ubuntu {
include apt
apt::ppa { 'ppa:git-core/ppa': }