instance-memcached.cfg 950 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 13 14 15 16 17 18
[buildout]
parts =
  memcached-instance
  publish-memcached-connection-information

eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true

[rootdirectory]
recipe = slapos.cookbook:mkdirectory
Romain Courteaud's avatar
Romain Courteaud committed
19 20
etc = $${buildout:directory}/etc
bin = $${buildout:directory}/bin
21 22 23

[basedirectory]
recipe = slapos.cookbook:mkdirectory
Romain Courteaud's avatar
Romain Courteaud committed
24
services = $${rootdirectory:etc}/run
25 26 27 28 29

[memcached-instance]
recipe = slapos.cookbook:generic.memcached
wrapper_path = $${basedirectory:services}/memcached
binary_path = ${memcached:location}/bin/memcached
Romain Courteaud's avatar
Romain Courteaud committed
30
shell-path = ${dash:location}/bin/dash
31 32 33 34 35 36
ip = $${slap-network-information:local-ipv4}
port = 11000

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