summaryrefslogtreecommitdiff
path: root/lib/puppet/type/vcsrepo.rb
diff options
context:
space:
mode:
authorReid Vandewiele <reid@puppetlabs.com>2013-10-20 22:19:34 -0700
committerReid Vandewiele <reid@puppetlabs.com>2013-10-20 22:19:34 -0700
commit2b190756260346931b8f9a0dda8afc0c815710d6 (patch)
treeae85ff3b36b872d39e702ce0a8601b7e739efb8f /lib/puppet/type/vcsrepo.rb
parentf7c05f75468aae0373cb51f27451294497a15bb8 (diff)
Add autorequire for Package['git']
If the git package is being managed, it stands to reason that the git package should be installed before trying to potentially manage git repositories using vcsrepo resources. This commit adds an autorequire to the vcsrepo type that reflects the above premise.
Diffstat (limited to 'lib/puppet/type/vcsrepo.rb')
-rw-r--r--lib/puppet/type/vcsrepo.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/puppet/type/vcsrepo.rb b/lib/puppet/type/vcsrepo.rb
index 8225721..ad90ced 100644
--- a/lib/puppet/type/vcsrepo.rb
+++ b/lib/puppet/type/vcsrepo.rb
@@ -191,4 +191,8 @@ Puppet::Type.newtype(:vcsrepo) do
desc "The value to be used for the CVS_RSH environment variable."
end
+ autorequire(:package) do
+ ['git', 'git-core']
+ end
+
end