From 6b01539dfee074b798f7e96cb228a42ae6a42c8b Mon Sep 17 00:00:00 2001 From: Matthias Pigulla Date: Sat, 15 Aug 2015 15:45:39 +0200 Subject: Autorequire Package['mercurial'] Along the lines of 2b190756260346931b8f9a0dda8afc0c815710d6, if the Mercurial package is being managed, it stands to reason that the Mercurial package should be installed before trying to potentially manage Mercurial repositories using vcsrepo resources. This commit adds an autorequire to the vcsrepo type that reflects the above premise. --- lib/puppet/type/vcsrepo.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/puppet/type/vcsrepo.rb') diff --git a/lib/puppet/type/vcsrepo.rb b/lib/puppet/type/vcsrepo.rb index e5dfbb5..ed5d55a 100644 --- a/lib/puppet/type/vcsrepo.rb +++ b/lib/puppet/type/vcsrepo.rb @@ -229,6 +229,6 @@ Puppet::Type.newtype(:vcsrepo) do end autorequire(:package) do - ['git', 'git-core'] + ['git', 'git-core', 'mercurial'] end end -- cgit v1.2.3