rtyler/puppet-jenkins — pull request #2 by rafaelfelix (2011-12-28 20:02:22+00:00)
Title: preventing install-jenkins-plugin resource to fail due to

I had the following message after trying to provision jenkins on a sample machine:

err: /Stage[main]//Install-jenkins-plugin[git-plugin]/File[/var/lib/jenkins/plugins]/ensure: change from absent to directory failed: Cannot create /var/lib/jenkins/plugins; parent directory /var/lib/jenkins does not exist

This error made all my plugins not to be installed.

This fix solved this specific issue. This is a very small contribution, thanks a lot for developing this very useful puppet module, saved me a lot of work.