Fix apt issue.
During the testing, we noticed that apt::ppa was failing for two reasons: - it was being used without including the module - it was not updating the package list after including the ppa. We then included the apt module in the beginning and required an apt update before installing the packages. Change-Id: I13ed3711314154d2267e96add6f48dce3f3dfc84 Co-Authored-By: Bruno Tavares <btavare@thoughtworks.com>
This commit is contained in:
parent
82477215eb
commit
15d181f4b4
@ -16,6 +16,7 @@
|
||||
#
|
||||
class diskimage_builder () {
|
||||
include ::pip
|
||||
include ::apt
|
||||
|
||||
$packages = [
|
||||
'debian-keyring',
|
||||
@ -29,12 +30,16 @@ class diskimage_builder () {
|
||||
'yum-utils',
|
||||
]
|
||||
|
||||
package { $packages:
|
||||
ensure => present,
|
||||
require => Apt::Ppa['ppa:openstack-ci-core/vhd-util'],
|
||||
apt::ppa { 'ppa:openstack-ci-core/vhd-util':
|
||||
}
|
||||
|
||||
apt::ppa { 'ppa:openstack-ci-core/vhd-util': }
|
||||
package { $packages:
|
||||
ensure => present,
|
||||
require => [
|
||||
Apt::Ppa['ppa:openstack-ci-core/vhd-util'],
|
||||
Class['apt::update'],
|
||||
],
|
||||
}
|
||||
|
||||
# required by the diskimage-builder element scripts
|
||||
if ! defined(Package['python-yaml']) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user