Commits

Jim Moore  committed 8133b4a

Adds the 'unlimited' Java Cryptography policy files.

  • Participants
  • Parent commits fe2fdaf

Comments (0)

Files changed (3)

File modules/sun_jdk/files/US_export_policy.jar

Binary file added.

File modules/sun_jdk/files/local_policy.jar

Binary file added.

File modules/sun_jdk/manifests/init.pp

     include 'sun_jdk::params'
   }
 
+  # where to find files; first try local filesystem, then the puppet master
+  $module = "sun_jdk"
+  $prefix = "/etc/puppet/modules"
+  $p1     = "${prefix}/${module}/files"
+  $p2     = "puppet://modules/${module}"
+
   $the_package_name = $jdk_package_name ? {
     'UNSET' => $sun_jdk::params::jdk_package_name, default => $jdk_package_name}
   $the_version = $jdk_version ? {
     ensure => "${the_version}-fcs",
   }
 
+  # Install the "unlimited" Java Cryptography policy files
+  File {
+    mode    => '644',
+    owner   => 'root',
+    group   => 'root',
+    require => Package[$the_package_name],
+  }
+  file { "unlimited_local_policy.jar":
+    path    => "${java_home}/jre/lib/security/local_policy.jar",
+    source  => ["${p1}/local_policy.jar", "${p2}/local_policy.jar"],
+  }
+  file { "unlimited_US_export_policy.jar":
+    path    => "${java_home}/jre/lib/security/US_export_policy.jar",
+    source  => ["${p1}/US_export_policy.jar", "${p2}/US_export_policy.jar"],
+  }
+
 }