Initial comment

This commit is contained in:
Andrew Tomaka 2013-06-23 15:29:20 -04:00
commit 66b8222b86
4 changed files with 39 additions and 0 deletions

5
manifests/init.pp Normal file
View file

@ -0,0 +1,5 @@
class git {
include stdlib
class { 'git::package': }
}

22
manifests/package.pp Normal file
View file

@ -0,0 +1,22 @@
class git::package {
anchor { 'git::package::begin': }
anchor { 'git::package::end': }
case $::osfamily {
'Debian': {
class { 'git::package::debian':
require => Anchor['git::package::begin'],
before => Anchor['git::package::end'],
}
}
'RedHat': {
package { 'git':
require => Anchor['git::package::begin'],
before => Anchor['git::package::end'],
}
}
default: {
fail("Module ${module_name} does not yet support ${::operatingsystem}")
}
}
}

View file

@ -0,0 +1,9 @@
class git::package::debian {
include apt
apt::ppa { 'ppa:git-core/stable': }
package { 'git-core':
ensure => 'present',
require => Apt::Ppa['ppa:git-core/stable'],
}
}

3
manifests/params.pp Normal file
View file

@ -0,0 +1,3 @@
class git::params {
}