Commit 966c39b6 authored by Rafael Monnerat's avatar Rafael Monnerat

Improve memcached promise for erp5 software release

parent 69736823
...@@ -308,7 +308,7 @@ extra-context = ...@@ -308,7 +308,7 @@ extra-context =
[template-memcached] [template-memcached]
< = template-jinja2-base < = template-jinja2-base
filename = instance-memcached.cfg filename = instance-memcached.cfg
md5sum = 22f80288d1ada69515c5f462da37e121 md5sum = 44c507e9eec1003beb99f9063b5e09be
extra-context = extra-context =
key dash_location dash:location key dash_location dash:location
key memcached_location memcached:location key memcached_location memcached:location
......
...@@ -9,23 +9,22 @@ ...@@ -9,23 +9,22 @@
parts = parts =
memcached-instance memcached-instance
publish-memcached-connection-information publish-memcached-connection-information
promise
eggs-directory = {{ eggs_directory }} eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }} develop-eggs-directory = {{ develop_eggs_directory }}
offline = true offline = true
[rootdirectory] [directory]
recipe = slapos.cookbook:mkdirectory recipe = slapos.cookbook:mkdirectory
etc = ${buildout:directory}/etc etc = ${buildout:directory}/etc
bin = ${buildout:directory}/bin bin = ${buildout:directory}/bin
service = ${:etc}/run
[basedirectory] promise = ${:etc}/promise
recipe = slapos.cookbook:mkdirectory
services = ${rootdirectory:etc}/run
[memcached-instance] [memcached-instance]
recipe = slapos.cookbook:generic.memcached recipe = slapos.cookbook:generic.memcached
wrapper_path = ${basedirectory:services}/memcached wrapper_path = ${directory:service}/memcached
binary_path = {{ memcached_location }}/bin/memcached binary_path = {{ memcached_location }}/bin/memcached
shell-path = {{ dash_location }}/bin/dash shell-path = {{ dash_location }}/bin/dash
ip = ${slap-network-information:local-ipv4} ip = ${slap-network-information:local-ipv4}
...@@ -38,6 +37,6 @@ url = memcached://${memcached-instance:ip}:${memcached-instance:port}/ ...@@ -38,6 +37,6 @@ url = memcached://${memcached-instance:ip}:${memcached-instance:port}/
# Deploy zope promises scripts # Deploy zope promises scripts
[promise] [promise]
recipe = slapos.cookbook:check_port_listening recipe = slapos.cookbook:check_port_listening
path = ${basedirectory:promises}/memcache path = ${directory:promise}/memcache
hostname = ${memcached-instance:ip} hostname = ${memcached-instance:ip}
port = ${memcached-instance:port} port = ${memcached-instance:port}
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