Commit fe356504 authored by Łukasz Nowak's avatar Łukasz Nowak

- remove conversion server parameters from global dict

 - remove Apache's port bases


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44136 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c28aba3c
...@@ -40,10 +40,6 @@ CONFIG = dict( ...@@ -40,10 +40,6 @@ CONFIG = dict(
test_ca_prefix='test_ca', test_ca_prefix='test_ca',
# Zope # Zope
zope_user='zope', zope_user='zope',
# Apache (login)
login_apache_port_base=13000,
# Apache (key login)
key_auth_apache_port_base=14000,
# MySQL # MySQL
mysql_database='erp5', mysql_database='erp5',
mysql_port=45678, mysql_port=45678,
...@@ -56,9 +52,6 @@ CONFIG = dict( ...@@ -56,9 +52,6 @@ CONFIG = dict(
kumo_server_port=13201, kumo_server_port=13201,
kumo_server_listen_port=13202, kumo_server_listen_port=13202,
kumo_gateway_port=13301, kumo_gateway_port=13301,
# Conversion Server
conversion_server_port=23000,
conversion_server_ooo_port=23060,
) )
...@@ -93,7 +86,7 @@ class Recipe(BaseSlapRecipe): ...@@ -93,7 +86,7 @@ class Recipe(BaseSlapRecipe):
self.installCertificateAuthority() self.installCertificateAuthority()
self.installMemcached(ip=self.getLocalIPv4Address(), port=11000) self.installMemcached(ip=self.getLocalIPv4Address(), port=11000)
self.installKumo() self.installKumo()
self.installConversionServer() self.installConversionServer(self.getLocalIPv4Address(), 23000, 23060)
self.installMysqlServer() self.installMysqlServer()
self.installERP5() self.installERP5()
zodb_dir = os.path.join(self.data_root_directory, 'zodb') zodb_dir = os.path.join(self.data_root_directory, 'zodb')
...@@ -295,16 +288,16 @@ class Recipe(BaseSlapRecipe): ...@@ -295,16 +288,16 @@ class Recipe(BaseSlapRecipe):
certificate_authority_path=CONFIG['ca_dir'] certificate_authority_path=CONFIG['ca_dir']
) )
def installConversionServer(self): def installConversionServer(self, ip, port, openoffice_port):
name = 'conversion_server' name = 'conversion_server'
working_directory = self.createDataDirectory(name) working_directory = self.createDataDirectory(name)
conversion_server_dict = dict( conversion_server_dict = dict(
working_path=working_directory, working_path=working_directory,
uno_path=self.options['ooo_uno_path'], uno_path=self.options['ooo_uno_path'],
office_binary_path=self.options['ooo_binary_path'], office_binary_path=self.options['ooo_binary_path'],
ip=self.getLocalIPv4Address(), ip=ip,
port=CONFIG[name + '_port'], port=port,
openoffice_port=CONFIG[name + '_ooo_port'], openoffice_port=openoffice_port,
) )
for env_line in self.options['environment'].splitlines(): for env_line in self.options['environment'].splitlines():
env_line = env_line.strip() env_line = env_line.strip()
......
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