Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
slapos
Commits
6ce2f81a
Commit
6ce2f81a
authored
Dec 28, 2011
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Timezone is migrated to the JSON parameter
parent
2770b125
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
slapos/recipe/bef_erp5/__init__.py
slapos/recipe/bef_erp5/__init__.py
+6
-11
No files found.
slapos/recipe/bef_erp5/__init__.py
View file @
6ce2f81a
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment