[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,11 +5,24 @@ class git::package {
case $::osfamily { case $::osfamily {
'Debian': { 'Debian': {
class { 'git::package::debian': case $::operatingsystem {
'ubuntu': {
class { 'git::package::ubuntu':
require => Anchor['git::package::begin'], require => Anchor['git::package::begin'],
before => Anchor['git::package::end'], 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': { 'RedHat': {
package { 'git': package { 'git':
require => Anchor['git::package::begin'], require => Anchor['git::package::begin'],

View file

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