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
Thomas Leymonerie
slapos
Commits
b019f3c0
Commit
b019f3c0
authored
Jul 23, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provides memcached over IPv6.
parent
0ab278c0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
5 deletions
+23
-5
stack/erp5/buildout.cfg
stack/erp5/buildout.cfg
+2
-1
stack/erp5/instance-memcached.cfg.in
stack/erp5/instance-memcached.cfg.in
+21
-4
No files found.
stack/erp5/buildout.cfg
View file @
b019f3c0
...
@@ -307,9 +307,10 @@ extra-context =
...
@@ -307,9 +307,10 @@ extra-context =
[template-memcached]
[template-memcached]
< = template-jinja2-base
< = template-jinja2-base
filename = instance-memcached.cfg
filename = instance-memcached.cfg
md5sum =
44c507e9eec1003beb99f9063b5e09be
md5sum =
2357f68ab98f73cd7911581d68d7d050
extra-context =
extra-context =
key dash_location dash:location
key dash_location dash:location
key haproxy_location haproxy:location
key memcached_location memcached:location
key memcached_location memcached:location
[template-erp5-development]
[template-erp5-development]
...
...
stack/erp5/instance-memcached.cfg.in
View file @
b019f3c0
...
@@ -7,7 +7,6 @@
...
@@ -7,7 +7,6 @@
#############################
#############################
[buildout]
[buildout]
parts =
parts =
memcached-instance
publish-memcached-connection-information
publish-memcached-connection-information
promise
promise
...
@@ -30,13 +29,31 @@ shell-path = {{ dash_location }}/bin/dash
...
@@ -30,13 +29,31 @@ shell-path = {{ dash_location }}/bin/dash
ip = ${slap-network-information:local-ipv4}
ip = ${slap-network-information:local-ipv4}
port = 11000
port = 11000
[ipv6toipv4]
recipe = slapos.cookbook:ipv6toipv4
conf-path = ${rootdirectory:etc}/${:base-name}.conf
runner-path = ${basedirectory:services}/${:base-name}
haproxy-path = {{ haproxy_location }}/sbin/haproxy
shell-path = {{ dash_location }}/bin/dash
ipv4 = ${memcached-instance:ip}
ipv6 = ${slap-network-information:global-ipv6}
ipv6-port = ${memcached-instance:port}
ipv4-port = ${memcached-instance:port}
base-name = memcached-tunnel
[publish-memcached-connection-information]
[publish-memcached-connection-information]
recipe = slapos.cookbook:publishurl
recipe = slapos.cookbook:publishurl
url = memcached://
${memcached-instance:ip}:${memcached-instance:
port}/
url = memcached://
[${ipv6toipv4:ipv6}]:${ipv6toipv4:ipv6-
port}/
# Deploy
zope
promises scripts
# Deploy promises scripts
[promise]
[
haproxy-
promise]
recipe = slapos.cookbook:check_port_listening
recipe = slapos.cookbook:check_port_listening
path = ${directory:promise}/memcache
path = ${directory:promise}/memcache
hostname = ${memcached-instance:ip}
hostname = ${memcached-instance:ip}
port = ${memcached-instance:port}
port = ${memcached-instance:port}
[tunnel-promise]
recipe = slapos.cookbook:check_port_listening
path = ${directory:promise}/tunnel
hostname = ${ipv6toipv4:ipv6}
port = ${ipv6toipv4:ipv6-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