diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-11-18 12:11:06 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-11-18 12:11:06 -0200 |
commit | 3134368c41cc0279499e2112e9ee4334b0f63d3d (patch) | |
tree | 07978e29a444ce21cf1357bf41343c8f6444314b | |
parent | 60648d5bff25a9fcca722aa1aa697cb4228e71d0 (diff) | |
download | puppet-git-3134368c41cc0279499e2112e9ee4334b0f63d3d.tar.gz puppet-git-3134368c41cc0279499e2112e9ee4334b0f63d3d.tar.bz2 |
Checking if git-core is defined
-rw-r--r-- | manifests/git.pp | 6 |
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, + } + } } |