aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-08-23 14:14:45 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-08-23 14:14:45 -0300
commit449a87584f383e9489ebb45d0b47ec1778a2861f (patch)
treec8cfd49050f7674870d6953cd475c8c41aedc5c3
parent1f12e3432d8ffbf7a80f04783c24afdc8efd938c (diff)
downloadpuppet-nodo-449a87584f383e9489ebb45d0b47ec1778a2861f.tar.gz
puppet-nodo-449a87584f383e9489ebb45d0b47ec1778a2861f.tar.bz2
LUKS and LVM backup for physical hosts and virtual machines
-rw-r--r--manifests/base/host.pp4
-rw-r--r--manifests/base/kvm.pp5
2 files changed, 9 insertions, 0 deletions
diff --git a/manifests/base/host.pp b/manifests/base/host.pp
index f3c23de..07c2d5b 100644
--- a/manifests/base/host.pp
+++ b/manifests/base/host.pp
@@ -35,6 +35,10 @@ class nodo::base::host {
# Backup
backupninja::sys { "sys":
ensure => present,
+ doluks => $::is_virtual,
+ dolvm => $::is_virtual,
+ #dombr => $::is_virtual,
+ #dobios => $::is_virtual,
}
# Monitoring
diff --git a/manifests/base/kvm.pp b/manifests/base/kvm.pp
index 06a7d10..09ae344 100644
--- a/manifests/base/kvm.pp
+++ b/manifests/base/kvm.pp
@@ -2,4 +2,9 @@ class nodo::base::kvm inherits nodo::base::host {
class { [ 'nodo::subsystem::fstab', 'nodo::subsystem::crypttab' ]:
type => 'kvm',
}
+
+ Backupninja::Sys['sys'] {
+ doluks => true,
+ dolvm => true,
+ }
}