diff options
author | Reid Vandewiele <reid@puppetlabs.com> | 2013-10-20 22:19:34 -0700 |
---|---|---|
committer | Reid Vandewiele <reid@puppetlabs.com> | 2013-10-20 22:19:34 -0700 |
commit | 2b190756260346931b8f9a0dda8afc0c815710d6 (patch) | |
tree | ae85ff3b36b872d39e702ce0a8601b7e739efb8f | |
parent | f7c05f75468aae0373cb51f27451294497a15bb8 (diff) | |
download | puppet-vcsrepo-2b190756260346931b8f9a0dda8afc0c815710d6.tar.gz puppet-vcsrepo-2b190756260346931b8f9a0dda8afc0c815710d6.tar.bz2 |
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.
-rw-r--r-- | lib/puppet/type/vcsrepo.rb | 4 |
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 |