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 () {
|
class diskimage_builder () {
|
||||||
include ::pip
|
include ::pip
|
||||||
|
include ::apt
|
||||||
|
|
||||||
$packages = [
|
$packages = [
|
||||||
'debian-keyring',
|
'debian-keyring',
|
||||||
|
@ -29,12 +30,16 @@ class diskimage_builder () {
|
||||||
'yum-utils',
|
'yum-utils',
|
||||||
]
|
]
|
||||||
|
|
||||||
package { $packages:
|
apt::ppa { 'ppa:openstack-ci-core/vhd-util':
|
||||||
ensure => present,
|
|
||||||
require => 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
|
# required by the diskimage-builder element scripts
|
||||||
if ! defined(Package['python-yaml']) {
|
if ! defined(Package['python-yaml']) {
|
||||||
|
|
Loading…
Reference in New Issue