From 405b3e9026db391714d8153a038b3c2e45428998 Mon Sep 17 00:00:00 2001 From: Gary Larizza Date: Fri, 15 Jul 2011 15:28:46 -0700 Subject: [PATCH] Fix for a2mod This dummy provider will fix an issue where a2mod is to be installed in the current puppet run, yet it can't be found. --- lib/puppet/provider/a2mod/modfix.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lib/puppet/provider/a2mod/modfix.rb diff --git a/lib/puppet/provider/a2mod/modfix.rb b/lib/puppet/provider/a2mod/modfix.rb new file mode 100644 index 0000000..8f35b2e --- /dev/null +++ b/lib/puppet/provider/a2mod/modfix.rb @@ -0,0 +1,12 @@ +Puppet::Type.type(:a2mod).provide :modfix do + desc "Dummy provider for A2mod. + + Fake nil resources when there is no crontab binary available. Allows + puppetd to run on a bootstrapped machine before a Cron package has been + installed. Workaround for: http://projects.puppetlabs.com/issues/2384 + " + + def self.instances + [] + end +end \ No newline at end of file