From 2baf68e6f51b55f525a98cb29e9d083d7e3e5a20 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20Le=20Ninivin?= <cedric.leninivin@tiolive.com>
Date: Tue, 6 Aug 2013 17:25:51 +0200
Subject: [PATCH] slaprunner: fix md5sum and download problem

---
 software/slaprunner/common.cfg   | 9 ++++++++-
 software/slaprunner/instance.cfg | 3 +--
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/software/slaprunner/common.cfg b/software/slaprunner/common.cfg
index fc5ed6992..cdbee0ea2 100644
--- a/software/slaprunner/common.cfg
+++ b/software/slaprunner/common.cfg
@@ -73,7 +73,7 @@ command =
 recipe = slapos.recipe.template
 url = ${:_profile_base_location_}/instance.cfg
 output = ${buildout:directory}/template.cfg
-md5sum = 7ed9c468d2b0175f3a3391287e62d7d5
+md5sum = b6ed8c30cc2ec51244796ce57315089f
 mode = 0644
 
 [template-runner]
@@ -97,6 +97,13 @@ output = ${buildout:directory}/instance-runner-export.cfg
 md5sum = 7e71622c09271790b5cef21c8613b8ac
 mode = 0644
 
+[template-resilient]
+recipe = slapos.recipe.download
+url = ${:_profile_base_location_}/instance-resilient.cfg.jinja2
+md5sum = fc253453da66583e7d515a6e2eb1475e
+filename = instance-resilient.cfg.jinja2
+mode = 0644
+
 [template_nginx_conf]
 recipe = slapos.recipe.download
 url = ${:_profile_base_location_}/nginx_conf.in
diff --git a/software/slaprunner/instance.cfg b/software/slaprunner/instance.cfg
index 89f55f6a5..423239d32 100644
--- a/software/slaprunner/instance.cfg
+++ b/software/slaprunner/instance.cfg
@@ -18,10 +18,9 @@ pull-backup = ${template-pull-backup:output}
 
 [instance-resilient]
 recipe = slapos.recipe.template:jinja2
-template = ${:_profile_base_location_}/instance-resilient.cfg.jinja2
+template = ${template-resilient:target}
 rendered = $${buildout:directory}/instance-resilient.cfg
 extensions = jinja2.ext.do
-md5sum = fc253453da66583e7d515a6e2eb1475e
 context = key buildout buildout:bin-directory
           key develop_eggs_directory buildout:develop-eggs-directory
           key eggs_directory buildout:eggs-directory
-- 
2.30.9