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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stephane VAROQUI
slapos
Commits
e9b76a68
Commit
e9b76a68
authored
Sep 19, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable IPv6 support in KumoFS.
Based on work by Romain Courteaud <romain@nexedi.com>.
parent
a6d75a88
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
component/kumo/buildout.cfg
component/kumo/buildout.cfg
+1
-1
slapos/recipe/generic_kumofs/__init__.py
slapos/recipe/generic_kumofs/__init__.py
+5
-0
No files found.
component/kumo/buildout.cfg
View file @
e9b76a68
...
@@ -34,5 +34,5 @@ configure-options =
...
@@ -34,5 +34,5 @@ configure-options =
--with-msgpack=${messagepack:location}
--with-msgpack=${messagepack:location}
environment =
environment =
CPPFLAGS=-I${zlib:location}/include -I${openssl:location}/include
CPPFLAGS=-I${zlib:location}/include -I${openssl:location}/include
-DKUMO_IPV6
LDFLAGS=-L${zlib:location}/lib -L${openssl:location}/lib -Wl,-rpath=${tokyocabinet:location}/lib -Wl,-rpath=${messagepack:location}/lib -Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${openssl:location}/lib
LDFLAGS=-L${zlib:location}/lib -L${openssl:location}/lib -Wl,-rpath=${tokyocabinet:location}/lib -Wl,-rpath=${messagepack:location}/lib -Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${openssl:location}/lib
slapos/recipe/generic_kumofs/__init__.py
View file @
e9b76a68
...
@@ -30,6 +30,11 @@ from slapos.recipe.librecipe import GenericBaseRecipe
...
@@ -30,6 +30,11 @@ from slapos.recipe.librecipe import GenericBaseRecipe
class
Recipe
(
GenericBaseRecipe
):
class
Recipe
(
GenericBaseRecipe
):
def
install
(
self
):
def
install
(
self
):
ip
=
self
.
options
[
'ip'
]
ip
=
self
.
options
[
'ip'
]
address_family
=
self
.
options
.
get
(
'address-family'
,
'inet4'
)
if
address_family
==
'inet6'
:
ip
=
'['
+
ip
+
']'
elif
address_family
!=
'inet4'
:
raise
ValueError
(
'Unsupported address family: %r'
%
(
address_family
,
))
kumo_manager_port
=
int
(
self
.
options
[
'manager-port'
])
kumo_manager_port
=
int
(
self
.
options
[
'manager-port'
])
kumo_server_port
=
int
(
self
.
options
[
'server-port'
])
kumo_server_port
=
int
(
self
.
options
[
'server-port'
])
kumo_server_listen_port
=
int
(
self
.
options
[
'server-listen-port'
])
kumo_server_listen_port
=
int
(
self
.
options
[
'server-listen-port'
])
...
...
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