Use Ubuntu Cloud Archive on precise nodes

Change-Id: I214e473563d28ade2ac321941261eebf73536abd
This commit is contained in:
Julien Danjou 2013-09-10 17:52:37 +02:00
parent 3c05b1bad0
commit bdcc1151c9

View File

@ -69,6 +69,19 @@ class jenkins::slave(
$packages = $common_packages
}
if ($::lsbdistcodename == 'precise') {
package { 'ubuntu-cloud-keyring':
ensure => present,
}
apt::source { 'cloudarchive':
location => 'http://ubuntu-cloud.archive.canonical.com/ubuntu',
release => 'precise-updates/havana',
repos => ['main'],
require => Package['ubuntu-cloud-keyring'],
}
}
package { $packages:
ensure => present,
}