the https issue with yum seams to be that the proxy certificate (MITM)
was not taken into account. It should be now.
Also, using baseurl instead of mirrorlist does not work with fedora.
The squid is caching a new url every time, probably because of the use
of https.
if (host_is_redhat_derived($ho)) {
$dest = '/etc/pki/ca-trust/source/anchors';
$update_ca_cmd = 'update-ca-trust extract';
+ if ($ho->{CentosRelease} == 6) {
+ $update_ca_cmd .= ' && update-ca-trust enable';
+ }
} else {
$dest = '/usr/local/share/ca-certificates';
$update_ca_cmd = 'update-ca-certificates';
# This packages is necessary, in order to get the right kernel
# It pull /usr/bin/grub-bootxen.sh (helper to boot Xen by default).
target_install_packages($ho, qw(centos-release-xen-common));
- if ($c{HttpProxy}) {
- # This will always use download.fedoraproject.org, so packages can be
- # cached by a HTTP proxy. It will also avoid to connect to
- # mirrors.fedoraproject.org to get a list of mirrors via https which
- # doesnot work with yum.
- target_editfile_root($ho, "/etc/yum.repos.d/CentOS-Xen-dependencies.repo", sub {
- while (<::EI>) {
- s/^mirrorlist=/#$&/;
- s/^#(baseurl=)/$1/;
- print ::EO or die $!;
- }
- });
- }
# Xen
my @xen_packages = qw(xen);