[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 {
|
case $::osfamily {
|
||||||
'Debian': {
|
'Debian': {
|
||||||
class { 'git::package::debian':
|
case $::operatingsystem {
|
||||||
require => Anchor['git::package::begin'],
|
'ubuntu': {
|
||||||
before => Anchor['git::package::end'],
|
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': {
|
'RedHat': {
|
||||||
package { 'git':
|
package { 'git':
|
||||||
|
|
|
@ -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': }
|
||||||
|
|
Loading…
Reference in a new issue