From 370ab6e8a1762abdc4a29147b3052701860b2e2b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20de=20Saint=20Martin?= <cedric.dsm@tiolive.com>
Date: Mon, 12 Aug 2013 07:50:33 +0000
Subject: [PATCH] KVM SR: setup small backup periodicity for resiliency test.

---
 software/kvm/common.cfg                         | 2 +-
 software/kvm/instance-kvm-resilient-test.cfg.in | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/software/kvm/common.cfg b/software/kvm/common.cfg
index 46b9dc326..67f944e60 100644
--- a/software/kvm/common.cfg
+++ b/software/kvm/common.cfg
@@ -100,7 +100,7 @@ download-only = true
 [template-kvm-resilient-test]
 recipe = slapos.recipe.template
 url = ${:_profile_base_location_}/instance-kvm-resilient-test.cfg.in
-#md5sum = 7b36d6c61154b7ec3113a1bfaa25a904
+#md5sum = 9dead7572072307b6c38cdf47052225b
 output = ${buildout:directory}/template-kvm-resilient-test.cfg
 mode = 0644
 
diff --git a/software/kvm/instance-kvm-resilient-test.cfg.in b/software/kvm/instance-kvm-resilient-test.cfg.in
index c460e64fb..b9b1f2889 100644
--- a/software/kvm/instance-kvm-resilient-test.cfg.in
+++ b/software/kvm/instance-kvm-resilient-test.cfg.in
@@ -37,9 +37,10 @@ recipe = slapos.cookbook:request
 software-url = $${slap-connection:software-release-url}
 software-type = kvm-resilient
 name = Resilient KVM (Root Instance)
-config = virtual-hard-drive-url virtual-hard-drive-md5sum
+config = virtual-hard-drive-url virtual-hard-drive-md5sum resiliency-backup-periodicity
 config-virtual-hard-drive-url = $${slap-parameter:virtual-hard-drive-url}
 config-virtual-hard-drive-md5sum = $${slap-parameter:virtual-hard-drive-md5sum}
+config-resiliency-backup-periodicity = */5
 # We don't use url parameter, but we want it to be there to make sure root instance is ready.
 return = url
 # XXX What to do?
-- 
2.30.9