From 22fda53488e23bea770f729e477f9b25eaadc435 Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Tue, 17 Jan 2012 14:15:14 +0100 Subject: [PATCH] Allow to configure tidstorage access for zope --- slapos/recipe/generic_zope_zeo_client/__init__.py | 6 ++++++ .../template/zope.conf.tidstorage.in | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 slapos/recipe/generic_zope_zeo_client/template/zope.conf.tidstorage.in diff --git a/slapos/recipe/generic_zope_zeo_client/__init__.py b/slapos/recipe/generic_zope_zeo_client/__init__.py index 9ccb616c6..8a14b95ab 100644 --- a/slapos/recipe/generic_zope_zeo_client/__init__.py +++ b/slapos/recipe/generic_zope_zeo_client/__init__.py @@ -157,6 +157,12 @@ class Recipe(GenericBaseRecipe): if self.isTrueValue(self.options['timeserver']): zope_conf_content += self.substituteTemplate(self.getTemplateFilename( 'zope.conf.timeserver.in'), {}) + if 'tidstorage-ip' in self.options: + zope_conf_content += self.substituteTemplate(self.getTemplateFilename( + 'zope.conf.tidstorage.in'), { + 'tidstorage-ip': self.options['tidstorage-ip'], + 'tidstorage-port': self.options['tidstorage-port'], + }) zope_conf_path = self.createFile(self.options['configuration-file'], zope_conf_content) path_list.append(zope_conf_path) diff --git a/slapos/recipe/generic_zope_zeo_client/template/zope.conf.tidstorage.in b/slapos/recipe/generic_zope_zeo_client/template/zope.conf.tidstorage.in new file mode 100644 index 000000000..d3e0bb4ba --- /dev/null +++ b/slapos/recipe/generic_zope_zeo_client/template/zope.conf.tidstorage.in @@ -0,0 +1,6 @@ + +# TIDStorage connection +<product-config TIDStorage> + backend-ip %(tidstorage-ip)s + backend-port %(tidstorage-port)s +</product-config> -- 2.30.9