2013-06-24 01:04:50 -04:00
|
|
|
#
|
2013-06-23 15:29:20 -04:00
|
|
|
class git::package {
|
|
|
|
anchor { 'git::package::begin': }
|
|
|
|
anchor { 'git::package::end': }
|
|
|
|
|
|
|
|
case $::osfamily {
|
|
|
|
'Debian': {
|
2013-06-24 11:27:44 -04:00
|
|
|
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
|
2013-06-23 15:29:20 -04:00
|
|
|
}
|
|
|
|
'RedHat': {
|
2013-06-24 01:04:50 -04:00
|
|
|
package { 'git':
|
2013-06-23 15:29:20 -04:00
|
|
|
require => Anchor['git::package::begin'],
|
|
|
|
before => Anchor['git::package::end'],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
default: {
|
2013-06-24 11:22:44 -04:00
|
|
|
fail("Module ${module_name} does not yet support ${::osfamily}")
|
2013-06-23 15:29:20 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|