|
16 | 16 | # fetch the package from an alternative URL
|
17 | 17 | # [*custom_checksum*]
|
18 | 18 | # use a custom checksum to verify the archive integrity
|
| 19 | +# [*proxy_server*] |
| 20 | +# proxy server url |
| 21 | +# [*proxy_type*] |
| 22 | +# proxy server type (valid: 'none'|'http'|'https'|'ftp') |
19 | 23 | #
|
20 | 24 | # === Actions:
|
21 | 25 | #
|
|
38 | 42 | $check_checksum = true,
|
39 | 43 | $add_alternative = false,
|
40 | 44 | $custom_download_url = undef,
|
41 |
| - $custom_checksum = undef |
| 45 | + $custom_checksum = undef, |
| 46 | + $proxy_server = undef, |
| 47 | + $proxy_type = undef |
42 | 48 | ) {
|
43 | 49 |
|
44 | 50 | # The base class must be included first
|
|
460 | 466 | }
|
461 | 467 | }
|
462 | 468 |
|
| 469 | + Archive { |
| 470 | + cookie => 'oraclelicense=accept-securebackup-cookie', |
| 471 | + source => $downloadurl, |
| 472 | + proxy_server => $proxy_server, |
| 473 | + proxy_type => $proxy_type, |
| 474 | + require => File[$install_path] |
| 475 | + } |
| 476 | + |
463 | 477 | # download archive
|
464 | 478 | if $maj_version == '6' {
|
465 | 479 | archive { "${install_path}/${filename}":
|
466 |
| - #provider => 'curl', |
467 |
| - cookie => 'oraclelicense=accept-securebackup-cookie', |
468 |
| - source => $downloadurl, |
469 | 480 | cleanup => false,
|
470 |
| - require => File[$install_path] |
| 481 | + extract => false |
471 | 482 | }
|
472 | 483 | } else {
|
473 | 484 | # also extract and clean up if tar.gz
|
474 | 485 | archive { "${install_path}/${filename}":
|
475 |
| - #provider => 'curl', |
476 |
| - cookie => 'oraclelicense=accept-securebackup-cookie', |
477 |
| - source => $downloadurl, |
478 | 486 | cleanup => true,
|
479 |
| - require => File[$install_path], |
480 | 487 | extract => true,
|
481 | 488 | extract_path => $install_path,
|
482 | 489 | creates => "${install_path}/${longversion}"
|
|
0 commit comments