diff options
Diffstat (limited to 'manifests/nodo.pp')
-rw-r--r-- | manifests/nodo.pp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/manifests/nodo.pp b/manifests/nodo.pp index 6259cd3..64f2592 100644 --- a/manifests/nodo.pp +++ b/manifests/nodo.pp @@ -16,8 +16,31 @@ class nodo { class { 'puppetd': } } + # + # Backup + # class { 'backup': } + $local_backup = hiera('nodo::backup::localhost', false) + + # Local encrypted backup + case $local_backup { + true,enabled,present: { + backup::duplicity { "localhost": + encryptkey => hiera('nodo::backup::encryptkey'), + password => hiera('nodo::backup::password'), + } + } + absent { + backup::duplicity { "localhost": + encryptkey => hiera('nodo::backup::encryptkey'), + password => hiera('nodo::backup::password'), + ensure => absent, + } + } + default { } + } + # Does not work well inside vservers class { 'runit': ensure => absent } |