Commit 6ce2f81a authored by Romain Courteaud's avatar Romain Courteaud

Timezone is migrated to the JSON parameter

parent 2770b125
...@@ -31,11 +31,6 @@ import zc.buildout ...@@ -31,11 +31,6 @@ import zc.buildout
import sys import sys
import netaddr import netaddr
# BST and Europe/Dublin timezones suffer from bug when conversion to self
# zone adds one hour
#BEF_TIMEZONE = 'BST'
BEF_TIMEZONE = 'Europe/London'
def validLoopBackAddress(ip): def validLoopBackAddress(ip):
if netaddr.IPAddress(ip).is_loopback(): if netaddr.IPAddress(ip).is_loopback():
return True return True
...@@ -158,7 +153,7 @@ class Recipe(slapos.recipe.erp5.Recipe): ...@@ -158,7 +153,7 @@ class Recipe(slapos.recipe.erp5.Recipe):
with_timerservice=True, with_timerservice=True,
zodb_configuration_string=zodb_configuration_string, zodb_configuration_string=zodb_configuration_string,
tidstorage_config=tidstorage_config, tidstorage_config=tidstorage_config,
zope_environment=dict(TZ=BEF_TIMEZONE)) )
# Two Activity Nodes # Two Activity Nodes
for i in (1, 2): for i in (1, 2):
zope_port += 1 zope_port += 1
...@@ -166,7 +161,7 @@ class Recipe(slapos.recipe.erp5.Recipe): ...@@ -166,7 +161,7 @@ class Recipe(slapos.recipe.erp5.Recipe):
with_timerservice=True, with_timerservice=True,
zodb_configuration_string=zodb_configuration_string, zodb_configuration_string=zodb_configuration_string,
tidstorage_config=tidstorage_config, tidstorage_config=tidstorage_config,
zope_environment=dict(TZ=BEF_TIMEZONE)) )
# Eight Working Nodes (Human access) # Eight Working Nodes (Human access)
login_url_list = [] login_url_list = []
for i in (1, 2, 3, 4, 5, 6, 7, 8): for i in (1, 2, 3, 4, 5, 6, 7, 8):
...@@ -175,7 +170,7 @@ class Recipe(slapos.recipe.erp5.Recipe): ...@@ -175,7 +170,7 @@ class Recipe(slapos.recipe.erp5.Recipe):
'zope_login_%s' % i, with_timerservice=False, 'zope_login_%s' % i, with_timerservice=False,
zodb_configuration_string=zodb_configuration_string, zodb_configuration_string=zodb_configuration_string,
tidstorage_config=tidstorage_config, tidstorage_config=tidstorage_config,
zope_environment=dict(TZ=BEF_TIMEZONE))) )
login_haproxy = self.installHaproxy(ip, 15001, 'login', site_check_path, login_haproxy = self.installHaproxy(ip, 15001, 'login', site_check_path,
login_url_list) login_url_list)
# One Web Node # One Web Node
...@@ -184,7 +179,7 @@ class Recipe(slapos.recipe.erp5.Recipe): ...@@ -184,7 +179,7 @@ class Recipe(slapos.recipe.erp5.Recipe):
with_timerservice=True, with_timerservice=True,
zodb_configuration_string=zodb_configuration_string, zodb_configuration_string=zodb_configuration_string,
tidstorage_config=tidstorage_config, tidstorage_config=tidstorage_config,
thread_amount=10, zope_environment=dict(TZ=BEF_TIMEZONE))] thread_amount=10, )]
web_haproxy = self.installHaproxy(ip, 15002, 'web', site_check_path, web_haproxy = self.installHaproxy(ip, 15002, 'web', site_check_path,
web_url_list) web_url_list)
apache_web = self.installBackendApache(self.getGlobalIPv6Address(), 15001, apache_web = self.installBackendApache(self.getGlobalIPv6Address(), 15001,
...@@ -201,7 +196,7 @@ class Recipe(slapos.recipe.erp5.Recipe): ...@@ -201,7 +196,7 @@ class Recipe(slapos.recipe.erp5.Recipe):
with_timerservice=True, with_timerservice=True,
zodb_configuration_string=zodb_configuration_string, zodb_configuration_string=zodb_configuration_string,
tidstorage_config=tidstorage_config, tidstorage_config=tidstorage_config,
zope_environment=dict(TZ=BEF_TIMEZONE))] )]
admin_haproxy = self.installHaproxy(ip, 15003, 'admin', site_check_path, admin_haproxy = self.installHaproxy(ip, 15003, 'admin', site_check_path,
admin_url_list) admin_url_list)
apache_admin = self.installBackendApache(self.getGlobalIPv6Address(), 15002, apache_admin = self.installBackendApache(self.getGlobalIPv6Address(), 15002,
...@@ -308,7 +303,7 @@ class Recipe(slapos.recipe.erp5.Recipe): ...@@ -308,7 +303,7 @@ class Recipe(slapos.recipe.erp5.Recipe):
self.getTemplateFilename('zope-zodb-snippet.conf.in'), self.getTemplateFilename('zope-zodb-snippet.conf.in'),
dict(zodb_root_path=zodb_root_path)), dict(zodb_root_path=zodb_root_path)),
thread_amount=8, with_timerservice=True, thread_amount=8, with_timerservice=True,
zope_environment=dict(TZ=BEF_TIMEZONE)) )
self.setConnectionDict(dict( self.setConnectionDict(dict(
site_user=user, site_user=user,
site_password=password, site_password=password,
......
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