Commit 7517c9a3 authored by Alexandre Derumier's avatar Alexandre Derumier Committed by Dietmar Maurer

pveceph install : use release repository

and increase git release key retrieval.
(ceph.com git seem to be quite slow currently)
Signed-off-by: 's avatarAlexandre Derumier <aderumier@odiso.com>
parent cd8f966e
...@@ -88,7 +88,7 @@ __PACKAGE__->register_method ({ ...@@ -88,7 +88,7 @@ __PACKAGE__->register_method ({
local $ENV{DEBIAN_FRONTEND} = 'noninteractive'; local $ENV{DEBIAN_FRONTEND} = 'noninteractive';
# use fixed devel repo for now, because there is no officila repo for jessie # use fixed devel repo for now, because there is no officila repo for jessie
my $devrepo = 'v0.94.3'; my $devrepo = undef;
my $keyurl = $devrepo ? my $keyurl = $devrepo ?
"https://git.ceph.com/?p=ceph.git;a=blob_plain;f=keys/autobuild.asc" : "https://git.ceph.com/?p=ceph.git;a=blob_plain;f=keys/autobuild.asc" :
...@@ -102,7 +102,7 @@ __PACKAGE__->register_method ({ ...@@ -102,7 +102,7 @@ __PACKAGE__->register_method ({
#die "unable to download ceph release key\n"; #die "unable to download ceph release key\n";
my $tmp_key_file = "/tmp/ceph-release-keys.asc"; my $tmp_key_file = "/tmp/ceph-release-keys.asc";
my $ua = LWP::UserAgent->new(protocols_allowed => ['http', 'https'], timeout => 30); my $ua = LWP::UserAgent->new(protocols_allowed => ['http', 'https'], timeout => 120);
$ua->env_proxy; $ua->env_proxy;
my $response = $ua->get($keyurl); my $response = $ua->get($keyurl);
if ($response->is_success) { if ($response->is_success) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment