rtyler/puppet-jenkins — pull request #22 by knuton (2012-06-15 15:04:20+00:00)
Title: Fix puppet-jenkins for Debian/Ubuntu

With the current version 0.2.3 running `sudo puppet apply -v -e 'include jenkins'` aborts with

lsbdistcodename fact not available: release parameter required at /etc/puppet/modules/apt/manifests/source.pp:25

on Ubuntu 12.04.

The problem seems to be that an empty string is passed to `apt::source`, which for some reason can not access `$lsbdistcodename`. This patch fixes the issue for me by falling back to `$lsbdistcodename` immediately instead of passing an empty string.