[package] dont use ubuntu ppa for debian
This commit is contained in:
parent
d92cba10be
commit
87c7da13c7
2 changed files with 18 additions and 5 deletions
|
@ -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':
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
class git::package::debian {
|
||||
class git::package::ubuntu {
|
||||
include apt
|
||||
apt::ppa { 'ppa:git-core/ppa': }
|
||||
|
Loading…
Reference in a new issue