]> gitweb.fluxo.info Git - puppet-git.git/commitdiff
Checking if git-core is defined
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 18 Nov 2010 14:11:06 +0000 (12:11 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 18 Nov 2010 14:11:06 +0000 (12:11 -0200)
manifests/git.pp

index 3d564c4a5fe8259ff221ba3cd3c43442b6389488..e86de5e573181bfcf120f40c020ab21b4c3976b0 100644 (file)
@@ -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,
+    }
+  }
 }