diff options
Diffstat (limited to 'manifests/subsystem/backup.pp')
-rw-r--r-- | manifests/subsystem/backup.pp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/manifests/subsystem/backup.pp b/manifests/subsystem/backup.pp new file mode 100644 index 0000000..eb3dafc --- /dev/null +++ b/manifests/subsystem/backup.pp @@ -0,0 +1,26 @@ +class nodo::subsystem::backup { + # + # Backup + # + class { 'backup': } + + $local_backup = hiera('nodo::subsystem::backup::localhost', false) + + # Local encrypted backup + case $local_backup { + true,enabled,present: { + backup::duplicity { "localhost": + encryptkey => hiera('nodo::subsystem::backup::encryptkey'), + password => hiera('nodo::subsystem::backup::password'), + } + } + absent: { + backup::duplicity { "localhost": + encryptkey => hiera('nodo::subsystem::backup::encryptkey'), + password => hiera('nodo::subsystem::backup::password'), + ensure => absent, + } + } + default: { } + } +} |