Commit 93a93a35 authored by Romain Courteaud's avatar Romain Courteaud

Allow to configure tidstorage access for zope

parent 66496588
...@@ -143,6 +143,12 @@ class Recipe(GenericBaseRecipe): ...@@ -143,6 +143,12 @@ class Recipe(GenericBaseRecipe):
if self.isTrueValue(self.options['timeserver']): if self.isTrueValue(self.options['timeserver']):
zope_conf_content += self.substituteTemplate(self.getTemplateFilename( zope_conf_content += self.substituteTemplate(self.getTemplateFilename(
'zope.conf.timeserver.in'), {}) '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) zope_conf_path = self.createFile(self.options['configuration-file'], zope_conf_content)
path_list.append(zope_conf_path) path_list.append(zope_conf_path)
......
# TIDStorage connection
<product-config TIDStorage>
backend-ip %(tidstorage-ip)s
backend-port %(tidstorage-port)s
</product-config>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment