|
@@ -38,11 +38,12 @@ define hdp::java::jce::package(
|
|
#TODO:SUHAS how to avoid redownload and install if correct version already present.
|
|
#TODO:SUHAS how to avoid redownload and install if correct version already present.
|
|
# may be check the file sizes for local_policy and export_US policy jars?
|
|
# may be check the file sizes for local_policy and export_US policy jars?
|
|
# UNLESS => "test -e ${java_exec}"
|
|
# UNLESS => "test -e ${java_exec}"
|
|
- $curl_cmd = "curl -f --retry 10 ${jce_location}/${jce_policy_zip} -o ${jce_curl_target}"
|
|
|
|
|
|
+ $curl_cmd = "mkdir -p ${artifact_dir}; curl -f --retry 10 ${jce_location}/${jce_policy_zip} -o ${jce_curl_target}"
|
|
exec{ "jce-download ${name}":
|
|
exec{ "jce-download ${name}":
|
|
command => $curl_cmd,
|
|
command => $curl_cmd,
|
|
creates => $jce_curl_target,
|
|
creates => $jce_curl_target,
|
|
path => ["/bin","/usr/bin/"],
|
|
path => ["/bin","/usr/bin/"],
|
|
|
|
+ unless => $jce_curl_target
|
|
}
|
|
}
|
|
|
|
|
|
$security_dir = "${java_home_dir}/jre/lib/security"
|
|
$security_dir = "${java_home_dir}/jre/lib/security"
|