From: Matthias Pigulla Date: Sat, 15 Aug 2015 13:45:39 +0000 (+0200) Subject: Autorequire Package['mercurial'] X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=6b01539dfee074b798f7e96cb228a42ae6a42c8b;p=puppet-vcsrepo.git 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. --- 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