Create public .pem key to encrypt backups
This commit is contained in:
parent
6733f1a951
commit
36d3361397
|
@ -69,8 +69,12 @@ define wmdeit_backup::scpbackup (
|
||||||
|
|
||||||
$tdir = "$backup_dir/$dir/daily.0"
|
$tdir = "$backup_dir/$dir/daily.0"
|
||||||
|
|
||||||
|
exec {"pubkey":
|
||||||
|
command => "/usr/bin/openssl rsa -in $backup_key_file -pubout -out $backup_pub_key_file",
|
||||||
|
}
|
||||||
|
|
||||||
file {"$shellscript":
|
file {"$shellscript":
|
||||||
|
require => Exec["pubkey"],
|
||||||
mode => "700",
|
mode => "700",
|
||||||
ensure => file,
|
ensure => file,
|
||||||
content => "#!/bin/sh
|
content => "#!/bin/sh
|
||||||
|
|
Loading…
Reference in New Issue