Commit d992d0b0 authored by Rafael Monnerat's avatar Rafael Monnerat

Only create the site if erp5_site_id is defined on configuration file and get...

Only create the site if erp5_site_id is defined on configuration file and get bt5_url_list only as reference for now.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44167 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 19b3e1d7
...@@ -67,10 +67,11 @@ class Recipe(BaseSlapRecipe): ...@@ -67,10 +67,11 @@ class Recipe(BaseSlapRecipe):
apache_login=self.installLoginApache(ip=self.getGlobalIPv6Address(), apache_login=self.installLoginApache(ip=self.getGlobalIPv6Address(),
port=13000, backend=zope_access, key=login_key, port=13000, backend=zope_access, key=login_key,
certificate=login_certificate)) certificate=login_certificate))
#self.installERP5Site(user, password, zope_access, if self.options.get('erp5_site_id') not in [None, ""]:
# mysql_conf['mysql_database'], mysql_conf['ip'], self.installERP5Site(user, password, zope_access,
# mysql_conf['tcp_port'], mysql_conf['mysql_user'], mysql_conf['mysql_database'], mysql_conf['ip'],
# mysql_conf['mysql_password']) mysql_conf['tcp_port'], mysql_conf['mysql_user'],
mysql_conf['mysql_password'], self.options.get('erp5_site_id'))
self.installTestRunner() self.installTestRunner()
self.linkBinary() self.linkBinary()
return self.path_list return self.path_list
...@@ -328,22 +329,23 @@ class Recipe(BaseSlapRecipe): ...@@ -328,22 +329,23 @@ class Recipe(BaseSlapRecipe):
return user, password return user, password
def installERP5Site(self, user, password, zope_access, database_name, def installERP5Site(self, user, password, zope_access, database_name,
database_ip, database_port, database_user, database_password, erp5_site_id='erp5'): database_ip, database_port, database_user, database_password,
erp5_site_id='erp5'):
""" Create a script controlled by supervisor, which creates a erp5 """ Create a script controlled by supervisor, which creates a erp5
site on current available zope and mysql environment""" site on current available zope and mysql environment"""
# XXX Conversion server and memcache server coordinates are not relevant for # XXX Conversion server and memcache server coordinates are not relevant
# pure site creation. # for pure site creation.
https_connection_url = "http://%s:%s@%s/" % (user, password, zope_access) https_connection_url = "http://%s:%s@%s/" % (user, password, zope_access)
mysql_connection_string = "%s@%s:%s %s %s" % (database_name, mysql_connection_string = "%s@%s:%s %s %s" % (database_name,
database_ip, database_port, database_user, database_password) database_ip, database_port, database_user, database_password)
# XXX URL list vs. repository + list of bt5 names?
bt5_url_list = self.options.get("bt5_url_list", '')
self.path_list.extend(zc.buildout.easy_install.scripts([('erp5_update', self.path_list.extend(zc.buildout.easy_install.scripts([('erp5_update',
__name__ + '.erp5', 'updateERP5')], self.ws, __name__ + '.erp5', 'updateERP5')], self.ws,
sys.executable, self.wrapper_directory, sys.executable, self.wrapper_directory,
arguments=[erp5_site_id, mysql_connection_string, arguments=[erp5_site_id, mysql_connection_string,
https_connection_url])) https_connection_url, bt5_url_list]))
return [] return []
def installZeo(self, ip, port, name, path): def installZeo(self, ip, port, name, path):
......
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