Browse Source

Create public .pem key to encrypt backups

master
7u83 2 years ago
parent
commit
36d3361397
  1. 4
      manifests/init.pp

4
manifests/init.pp

@ -69,8 +69,12 @@ define wmdeit_backup::scpbackup (
$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":
require => Exec["pubkey"],
mode => "700",
ensure => file,
content => "#!/bin/sh

Loading…
Cancel
Save