Beaker: install APT repo with openstack_extras
Use openstack_extras module to manage Ubuntu Cloud Archive repository. Change-Id: Idb70fc8a953f05d37e214ec229652eece6d6978c
This commit is contained in:
parent
6347981382
commit
3ea04aca8c
@ -10,20 +10,10 @@ describe 'basic designate' do
|
|||||||
|
|
||||||
# Common resources
|
# Common resources
|
||||||
include ::apt
|
include ::apt
|
||||||
# some packages are not autoupgraded in trusty.
|
class { '::openstack_extras::repo::debian::ubuntu':
|
||||||
# it will be fixed in liberty, but broken in kilo.
|
release => 'kilo',
|
||||||
$need_to_be_upgraded = ['python-tz', 'python-pbr']
|
package_require => true,
|
||||||
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,
|
|
||||||
}
|
}
|
||||||
Apt::Source['trusty-updates-kilo'] -> Package<| |>
|
|
||||||
|
|
||||||
class { '::mysql::server': }
|
class { '::mysql::server': }
|
||||||
|
|
||||||
|
@ -36,6 +36,7 @@ RSpec.configure do |c|
|
|||||||
# install puppet modules from git, use master
|
# install puppet modules from git, use master
|
||||||
shell('git clone https://git.openstack.org/stackforge/puppet-openstacklib /etc/puppet/modules/openstacklib')
|
shell('git clone https://git.openstack.org/stackforge/puppet-openstacklib /etc/puppet/modules/openstacklib')
|
||||||
shell('git clone https://git.openstack.org/stackforge/puppet-keystone /etc/puppet/modules/keystone')
|
shell('git clone https://git.openstack.org/stackforge/puppet-keystone /etc/puppet/modules/keystone')
|
||||||
|
shell('git clone https://git.openstack.org/stackforge/puppet-openstack_extras /etc/puppet/modules/openstack_extras')
|
||||||
|
|
||||||
# Install the module being tested
|
# Install the module being tested
|
||||||
puppet_module_install(:source => proj_root, :module_name => 'designate')
|
puppet_module_install(:source => proj_root, :module_name => 'designate')
|
||||||
|
Loading…
Reference in New Issue
Block a user