From 3134368c41cc0279499e2112e9ee4334b0f63d3d Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 18 Nov 2010 12:11:06 -0200 Subject: Checking if git-core is defined --- manifests/git.pp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'manifests') 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, + } + } } -- cgit v1.2.3