Project

General

Profile

« Previous | Next » 

Revision 97bac87e

Added by Eric Helms over 10 years ago

Parameterizing the module and removing coupling to the Katello module.

View differences:

manifests/tar_extract.pp
# Definition: certs::tar_extract
#
# This class extracts a tarball
#
# Parameters:
# - The $path of the tarball to extract
#
# Actions:
# - Extracts a tarball
#
# Requires:
# - The certs class
#
define certs::tar_extract($path = $title) {
exec { "extract $path":
cwd => '/root',
path => ['/usr/bin', '/bin'],
command => "tar -xzf $path"
exec { "extract ${path}":
cwd => '/root',
path => ['/usr/bin', '/bin'],
command => "tar -xzf ${path}"
}
}

Also available in: Unified diff