Revision 5f2f0557
Added by Ivan Necas about 10 years ago
manifests/tar_create.pp | ||
---|---|---|
#
|
||
# Parameters:
|
||
# - The $path of files to tar up
|
||
# - The $child node FQDN
|
||
# - The $capsule_fqdn
|
||
#
|
||
# Actions:
|
||
# - Create a tarball of SSL certs
|
||
... | ... | |
# Requires:
|
||
# - The certs class
|
||
#
|
||
define certs::tar_create($path = $title, $child = $::certs::node_fqdn) {
|
||
define certs::tar_create($path = $title, $capsule_fqdn = $::certs::capsule::capsule_fqdn) {
|
||
exec { "generate ${path}":
|
||
cwd => '/root',
|
||
path => ['/usr/bin', '/bin'],
|
||
command => "tar -czf ${path} ssl-build/*.noarch.rpm ssl-build/${child}/*.noarch.rpm",
|
||
command => "tar -czf ${path} ssl-build/*.noarch.rpm ssl-build/${capsule_fqdn}/*.noarch.rpm",
|
||
}
|
||
}
|
Also available in: Unified diff
Refs #5423 - fix certs generation for capsule usage
Also, disable setting of katello repo for the certs till we support
package uploads again.