Revision 97bac87e
Added by Eric Helms over 10 years ago
manifests/tar_create.pp | ||
---|---|---|
# Definition: certs::tar_create
|
||
#
|
||
# This class creates a tar ball of generated SSL certs
|
||
#
|
||
# Parameters:
|
||
# - The $path of files to tar up
|
||
# - The $child node FQDN
|
||
#
|
||
# Actions:
|
||
# - Create a tarball of SSL certs
|
||
#
|
||
# Requires:
|
||
# - The certs class
|
||
#
|
||
define certs::tar_create($path = $title, $child = $::certs::node_fqdn) {
|
||
exec { "generate $path":
|
||
cwd => '/root',
|
||
path => ['/usr/bin', '/bin'],
|
||
command => "tar -czf $path ssl-build/*.noarch.rpm ssl-build/$child/*.noarch.rpm",
|
||
exec { "generate ${path}":
|
||
cwd => '/root',
|
||
path => ['/usr/bin', '/bin'],
|
||
command => "tar -czf ${path} ssl-build/*.noarch.rpm ssl-build/${child}/*.noarch.rpm",
|
||
}
|
||
}
|
Also available in: Unified diff
Parameterizing the module and removing coupling to the Katello module.