From c958b9f82a5963ab241b4ab2a010e319c64c7d62 Mon Sep 17 00:00:00 2001
From: Jeremy Stanley <fungi@yuggoth.org>
Date: Sat, 22 Jun 2013 01:08:41 +0000
Subject: [PATCH] Add a source for Python 3.3 on Precise if needed.

* modules/jenkins/manifests/slave.pp: If $python3 is set add a
Python 3.3 PPA for Ubuntu 12.04 LTS, maintained by Chuck Short with
Canonical.

Change-Id: I6c6e2682e9c1d56698cfbce4f01c81b60eac674e
Reviewed-on: https://review.openstack.org/34078
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
---
 modules/jenkins/manifests/slave.pp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/jenkins/manifests/slave.pp b/modules/jenkins/manifests/slave.pp
index 8a5de634c0..c3c990e4e6 100644
--- a/modules/jenkins/manifests/slave.pp
+++ b/modules/jenkins/manifests/slave.pp
@@ -135,6 +135,11 @@ class jenkins::slave(
   ]
 
   if $python3 {
+    if ($::lsbdistcodename == 'precise') {
+      apt::ppa { 'ppa:zulcss/py3k':
+        before => Class[pip::python3],
+      }
+    }
     include pip::python3
     package { $pip_packages:
       ensure   => latest,  # we want the latest from these