Sha256: 372b4e2b78dac58a66ca31116e29c44ffb9d8a82abb09d9fb4a4fb9332df0be8
Contents?: true
Size: 1.28 KB
Versions: 20
Compression:
Stored size: 1.28 KB
Contents
# Definition: tomcat::instance::source # # Private define to install Tomcat from source. # # Parameters: # - $catalina_home is the root of the Tomcat installation. # - $catalina_base is the base directory for the Tomcat installation. # - The $source_url to install from. # - $source_strip_first_dir is a boolean specifying whether or not to strip # the first directory when unpacking the source tarball. Defaults to true # when installing from source on non-Solaris systems. Requires nanliu/staging # > 0.4.0 define tomcat::instance::source ( $catalina_home, $catalina_base, $source_url, $source_strip_first_dir = undef, ) { include staging if $caller_module_name != $module_name { fail("Use of private class ${name} by ${caller_module_name}") } if $source_strip_first_dir { $_strip = 1 } $filename = regsubst($source_url, '.*/(.*)', '\1') if ! defined(Staging::File[$filename]) { staging::file { $filename: source => $source_url, } } staging::extract { "${name}-${filename}": source => "${::staging::path}/tomcat/${filename}", target => $catalina_base, require => Staging::File[$filename], unless => "test \"\$(ls -A ${catalina_base})\"", user => $::tomcat::user, group => $::tomcat::group, strip => $_strip, } }
Version data entries
20 entries across 20 versions & 1 rubygems