Project

General

Profile

Download (505 Bytes) Statistics
| Branch: | Tag: | Revision:
# 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",
}
}
(5-5/6)