Beaker: install APT repo with openstack_extras
Use openstack_extras module to manage Ubuntu Cloud Archive repository. Change-Id: I233fa640e601f180c57c991e9e0a4f3bb8867709
This commit is contained in:
parent
b29ee6f706
commit
3f2ec9002a
@ -9,17 +9,10 @@ describe 'basic neutron' do
|
|||||||
Exec { logoutput => 'on_failure' }
|
Exec { logoutput => 'on_failure' }
|
||||||
|
|
||||||
include ::apt
|
include ::apt
|
||||||
apt::source { 'trusty-updates-kilo':
|
class { '::openstack_extras::repo::debian::ubuntu':
|
||||||
location => 'http://ubuntu-cloud.archive.canonical.com/ubuntu/',
|
release => 'kilo',
|
||||||
release => 'trusty-updates',
|
package_require => true,
|
||||||
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': }
|
||||||
|
|
||||||
|
@ -37,6 +37,7 @@ RSpec.configure do |c|
|
|||||||
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-vswitch /etc/puppet/modules/vswitch')
|
shell('git clone https://git.openstack.org/stackforge/puppet-vswitch /etc/puppet/modules/vswitch')
|
||||||
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 => 'neutron')
|
puppet_module_install(:source => proj_root, :module_name => 'neutron')
|
||||||
|
Loading…
Reference in New Issue
Block a user