Initial comment
This commit is contained in:
commit
66b8222b86
4 changed files with 39 additions and 0 deletions
5
manifests/init.pp
Normal file
5
manifests/init.pp
Normal file
|
@ -0,0 +1,5 @@
|
|||
class git {
|
||||
include stdlib
|
||||
|
||||
class { 'git::package': }
|
||||
}
|
22
manifests/package.pp
Normal file
22
manifests/package.pp
Normal 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}")
|
||||
}
|
||||
}
|
||||
}
|
9
manifests/package/debian.pp
Normal file
9
manifests/package/debian.pp
Normal 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
3
manifests/params.pp
Normal file
|
@ -0,0 +1,3 @@
|
|||
class git::params {
|
||||
|
||||
}
|
Loading…
Reference in a new issue