aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-11-18 12:11:06 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-11-18 12:11:06 -0200
commit3134368c41cc0279499e2112e9ee4334b0f63d3d (patch)
tree07978e29a444ce21cf1357bf41343c8f6444314b /manifests
parent60648d5bff25a9fcca722aa1aa697cb4228e71d0 (diff)
downloadpuppet-git-3134368c41cc0279499e2112e9ee4334b0f63d3d.tar.gz
puppet-git-3134368c41cc0279499e2112e9ee4334b0f63d3d.tar.bz2
Checking if git-core is defined
Diffstat (limited to 'manifests')
-rw-r--r--manifests/git.pp6
1 files changed, 5 insertions, 1 deletions
diff --git a/manifests/git.pp b/manifests/git.pp
index 3d564c4..e86de5e 100644
--- a/manifests/git.pp
+++ b/manifests/git.pp
@@ -1,5 +1,9 @@
# This class is the base for any other services handled by this module.
class git {
- package { "git-core": ensure => installed }
+ if !defined(Package['git-core']) {
+ package { 'git-core':
+ ensure => installed,
+ }
+ }
}