sbauza a419984dac Add possibility to change UCA repository
Instead of forcing 'updates' UCA repo, leaves possibility to the
operator to choose which UCA he wants for pulling packages

Change-Id: I3e47f8a8b280d1dfe29229e1f9905ad7c71c204d
2013-09-17 23:09:14 -07:00

20 lines
583 B
Puppet

# Ubuntu Cloud Archive repo (supports either Folsom or Grizzly)
class openstack::repo::uca(
$release = 'grizzly',
$repo = 'updates'
) {
if ($::operatingsystem == 'Ubuntu' and
$::lsbdistdescription =~ /^.*LTS.*$/) {
include apt::update
apt::source { 'ubuntu-cloud-archive':
location => 'http://ubuntu-cloud.archive.canonical.com/ubuntu',
release => "${::lsbdistcodename}-${repo}/${release}",
repos => 'main',
required_packages => 'ubuntu-cloud-keyring',
}
Exec['apt_update'] -> Package<||>
}
}