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
Labels
Merge Requests
109
Merge Requests
109
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
9747d291
Commit
9747d291
authored
Jun 09, 2011
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Vifib : add an Apache front end in production flavor
parent
f48f9dbb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
slapos/recipe/erp5/__init__.py
slapos/recipe/erp5/__init__.py
+2
-0
slapos/recipe/vifib.py
slapos/recipe/vifib.py
+4
-0
No files found.
slapos/recipe/erp5/__init__.py
View file @
9747d291
...
@@ -789,6 +789,8 @@ class Recipe(BaseSlapRecipe):
...
@@ -789,6 +789,8 @@ class Recipe(BaseSlapRecipe):
config
=
apache_config_file
config
=
apache_config_file
)
)
]))
]))
# Note: IPv6 is assumed always
return
'https://[%(ip)s]:%(port)s'
%
apache_conf
def
installBackendApache
(
self
,
ip
,
port
,
backend
,
key
,
certificate
,
def
installBackendApache
(
self
,
ip
,
port
,
backend
,
key
,
certificate
,
suffix
=
''
,
access_control_string
=
None
):
suffix
=
''
,
access_control_string
=
None
):
...
...
slapos/recipe/vifib.py
View file @
9747d291
...
@@ -147,6 +147,9 @@ SSLCARevocationPath %(ca_crl)s"""
...
@@ -147,6 +147,9 @@ SSLCARevocationPath %(ca_crl)s"""
login_url_list
)
login_url_list
)
apache_login
=
self
.
installBackendApache
(
self
.
getGlobalIPv6Address
(),
15000
,
apache_login
=
self
.
installBackendApache
(
self
.
getGlobalIPv6Address
(),
15000
,
login_haproxy
,
backend_key
,
backend_certificate
)
login_haproxy
,
backend_key
,
backend_certificate
)
apache_frontend_login
=
self
.
installFrontendZopeApache
(
self
.
getGlobalIPv6Address
(),
8080
,
'vifib'
,
'/'
,
apache_login
,
'/'
,
backend_key
,
backend_certificate
)
# Four Web Service Nodes (Machine access)
# Four Web Service Nodes (Machine access)
service_url_list
=
[]
service_url_list
=
[]
for
i
in
(
1
,
2
,
3
,
4
):
for
i
in
(
1
,
2
,
3
,
4
):
...
@@ -170,6 +173,7 @@ SSLCARevocationPath %(ca_crl)s"""
...
@@ -170,6 +173,7 @@ SSLCARevocationPath %(ca_crl)s"""
known_tid_storage_identifier_dict
,
'http://'
+
login_haproxy
)
known_tid_storage_identifier_dict
,
'http://'
+
login_haproxy
)
self
.
linkBinary
()
self
.
linkBinary
()
self
.
setConnectionDict
(
dict
(
self
.
setConnectionDict
(
dict
(
front_end_url
=
apache_frontend_login
,
site_url
=
apache_login
,
site_url
=
apache_login
,
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