Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit 9a4b5d4

Browse files
committed
Merge pull request #13 from antoineco/curl_provider
use curl provider instead of faraday
2 parents 4db18cd + 0e61e8c commit 9a4b5d4

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

manifests/download.pp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,16 @@
3333
# download archive
3434
if $oracle_java::format_real == 'rpm' {
3535
archive { "${oracle_java::install_path}/${oracle_java::filename}":
36-
cookie => 'oraclelicense=accept-securebackup-cookie',
37-
source => $oracle_java::downloadurl,
38-
cleanup => false,
39-
require => File[$oracle_java::install_path],
36+
provider => 'curl',
37+
cookie => 'oraclelicense=accept-securebackup-cookie',
38+
source => $oracle_java::downloadurl,
39+
cleanup => false,
40+
require => File[$oracle_java::install_path],
4041
}
4142
} else {
4243
# also extract and clean up if tar.gz
4344
archive { "${oracle_java::install_path}/${oracle_java::filename}":
45+
provider => 'curl',
4446
cookie => 'oraclelicense=accept-securebackup-cookie',
4547
source => $oracle_java::downloadurl,
4648
cleanup => true,

manifests/installation.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,7 @@
556556

557557
# download, extract and cleanup archive
558558
archive { "${install_path}/${filename}":
559+
provider => 'curl',
559560
cookie => 'oraclelicense=accept-securebackup-cookie',
560561
source => $downloadurl,
561562
cleanup => true,

metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"version_requirement": ">= 3.2.0 < 5.0.0"
1414
},
1515
{
16-
"name": "nanliu/archive",
17-
"version_requirement": ">= 0.1.7 < 1.0.0"
16+
"name": "puppet/archive",
17+
"version_requirement": ">= 0.4.4 < 0.5.0"
1818
}
1919
],
2020
"requirements": [

0 commit comments

Comments
 (0)