summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Pigulla <mp@webfactory.de>2015-08-15 15:45:39 +0200
committerMatthias Pigulla <mp@webfactory.de>2015-08-15 15:45:39 +0200
commit6b01539dfee074b798f7e96cb228a42ae6a42c8b (patch)
tree1d66b1ed0d4bcb48a5685b34b8e60a76af82a75c
parentd7534d7cfe98d62b8f0d9ae8adcc30bea483a1e2 (diff)
downloadpuppet-vcsrepo-6b01539dfee074b798f7e96cb228a42ae6a42c8b.tar.gz
puppet-vcsrepo-6b01539dfee074b798f7e96cb228a42ae6a42c8b.tar.bz2
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.
-rw-r--r--lib/puppet/type/vcsrepo.rb2
1 files changed, 1 insertions, 1 deletions
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