Commit 8e3dcb33 authored by Łukasz Nowak's avatar Łukasz Nowak

- expose node configuration in connection dic


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44110 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a9860b78
...@@ -117,14 +117,17 @@ class Recipe(BaseSlapRecipe): ...@@ -117,14 +117,17 @@ class Recipe(BaseSlapRecipe):
ip=self.getLocalIPv4Address()) ip=self.getLocalIPv4Address())
port = 12001 port = 12001
distribution_list = [self.installZope(port=port, name='zope_distribution', **common_kw)] distribution_list = [self.installZope(port=port, name='zope_distribution', **common_kw)]
self.connection_dict.update(zope_distribution_node=' '.join(distribution_list))
activity_list = [] activity_list = []
for i in xrange(1, int(self.parameter_dict.get('activity_node_amount', 0)) + 1): for i in xrange(1, int(self.parameter_dict.get('activity_node_amount', 0)) + 1):
port += 1 port += 1
activity_list.append(self.installZope(port=port, name='zope_activity_%s' % i, **common_kw)) activity_list.append(self.installZope(port=port, name='zope_activity_%s' % i, **common_kw))
self.connection_dict.update(zope_activity_node=' '.join(activity_list))
login_list = [] login_list = []
for i in xrange(1, int(self.parameter_dict.get('login_node_amount', 0)) + 1): for i in xrange(1, int(self.parameter_dict.get('login_node_amount', 0)) + 1):
port += 1 port += 1
login_list.append(self.installZope(port=port, name='zope_login_%s' % i, **common_kw)) login_list.append(self.installZope(port=port, name='zope_login_%s' % i, **common_kw))
self.connection_dict.update(zope_login_node=' '.join(login_list))
url_list = activity_list + login_list + distribution_list url_list = activity_list + login_list + distribution_list
else: else:
login_list = url_list login_list = url_list
......
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