puppet-certs/manifests/tar_create.pp @ 5f2f0557
97bac87e | Eric D. Helms | # Definition: certs::tar_create
|
|
#
|
|||
# This class creates a tar ball of generated SSL certs
|
|||
#
|
|||
# Parameters:
|
|||
# - The $path of files to tar up
|
|||
5f2f0557 | Ivan Nečas | # - The $capsule_fqdn
|
|
97bac87e | Eric D. Helms | #
|
|
# Actions:
|
|||
# - Create a tarball of SSL certs
|
|||
#
|
|||
# Requires:
|
|||
# - The certs class
|
|||
#
|
|||
5f2f0557 | Ivan Nečas | define certs::tar_create($path = $title, $capsule_fqdn = $::certs::capsule::capsule_fqdn) {
|
|
97bac87e | Eric D. Helms | exec { "generate ${path}":
|
|
cwd => '/root',
|
|||
path => ['/usr/bin', '/bin'],
|
|||
5f2f0557 | Ivan Nečas | command => "tar -czf ${path} ssl-build/*.noarch.rpm ssl-build/${capsule_fqdn}/*.noarch.rpm",
|
|
60cc44b6 | Ivan Nečas | }
|
|
}
|