Beaker: install APT repo with openstack_extras

Use openstack_extras module to manage Ubuntu Cloud Archive repository.

Change-Id: I43c3cadcbe4d2791cd58095ae16341119b272099
This commit is contained in:
Martin Mágr
2015-05-18 12:56:02 +02:00
committed by Sebastien Badia
parent 49fd248002
commit 7483eaf336

View File

@@ -9,20 +9,10 @@ describe 'basic swift' do
Exec { logoutput => 'on_failure' }
include ::apt
# some packages are not autoupgraded in trusty.
# it will be fixed in liberty, but broken in kilo.
$need_to_be_upgraded = ['python-tz', 'python-pbr']
apt::source { 'trusty-updates-kilo':
location => 'http://ubuntu-cloud.archive.canonical.com/ubuntu/',
release => 'trusty-updates',
required_packages => 'ubuntu-cloud-keyring',
repos => 'kilo/main',
trusted_source => true,
} ~>
exec { '/usr/bin/apt-get -y dist-upgrade':
refreshonly => true,
class { '::openstack_extras::repo::debian::ubuntu':
release => 'kilo',
package_require => true,
}
Apt::Source['trusty-updates-kilo'] -> Package<| |>
class { '::mysql::server': }