puppet-git/manifests/package.pp

37 lines
932 B
ObjectPascal
Raw Normal View History

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': {
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: {
fail("Module ${module_name} does not yet support ${::osfamily}")
2013-06-23 15:29:20 -04:00
}
}
}