Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

Commit

Permalink
Merge pull request #72 from me-coder/master
Browse files Browse the repository at this point in the history
Added check for git package presence to define config::git.
  • Loading branch information
hunner committed Feb 17, 2016
2 parents 8e7f586 + 98acbc3 commit 5e86224
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,16 @@
$_key = $key
}

$git_package = $::git::package_manage ? {
true => Package[$::git::package_name],
default => undef,
}

git_config { $title:
key => $_key,
value => $value,
user => $user,
scope => $scope,
key => $_key,
value => $value,
user => $user,
scope => $scope,
require => $git_package,
}
}

0 comments on commit 5e86224

Please sign in to comment.