instance-memcached.cfg.in 937 Bytes
Newer Older
Romain Courteaud's avatar
Romain Courteaud committed
1 2 3 4 5 6 7
#############################
#
# Instanciate memcached
#
# No slapos parameter needed
#
#############################
8 9 10 11 12
[buildout]
parts =
  memcached-instance
  publish-memcached-connection-information

13 14
eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }}
15 16 17 18
offline = true

[rootdirectory]
recipe = slapos.cookbook:mkdirectory
19 20
etc = ${buildout:directory}/etc
bin = ${buildout:directory}/bin
21 22 23

[basedirectory]
recipe = slapos.cookbook:mkdirectory
24
services = ${rootdirectory:etc}/run
25 26 27

[memcached-instance]
recipe = slapos.cookbook:generic.memcached
28 29 30 31
wrapper_path = ${basedirectory:services}/memcached
binary_path = {{ memcached_location }}/bin/memcached
shell-path = {{ dash_location }}/bin/dash
ip = ${slap-network-information:local-ipv4}
32 33 34 35
port = 11000

[publish-memcached-connection-information]
recipe = slapos.cookbook:publishurl
36
url = memcached://${memcached-instance:ip}:${memcached-instance:port}/