instance-redis.cfg 1.47 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
[buildout]

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

parts =
  publish-connection-informations
  redis


[rootdirectory]
recipe = slapos.cookbook:mkdirectory
etc = $${buildout:directory}/etc/
srv = $${buildout:directory}/srv/
var = $${buildout:directory}/var/
bin = $${buildout:directory}/bin/


[basedirectory]
recipe = slapos.cookbook:mkdirectory
22
scripts = $${rootdirectory:etc}/run/
23
services = $${rootdirectory:etc}/service/
24
promises = $${rootdirectory:etc}/promise/
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
run = $${rootdirectory:var}/run/
log = $${rootdirectory:var}/log/

[master-passwd]
recipe = slapos.cookbook:generate.password
storage-path = $${rootdirectory:etc}/.passwd
bytes = 4

[redis]
recipe = slapos.cookbook:redis.server
server_bin = ${redis:location}/bin/redis-server
ipv6 = $${slap-network-information:global-ipv6}
port = 6379
use_passwd = $${slap-parameter:use_passwd}
pid_file = $${basedirectory:run}/redis.pid
server_dir = $${rootdirectory:srv}
passwd = $${master-passwd:passwd}
config_file = $${rootdirectory:etc}/redis.conf
log_file = $${basedirectory:log}/redis.log
wrapper = $${basedirectory:services}/redis_server
45
promise_wrapper = $${basedirectory:promises}/redis
46 47 48 49

# Send informations to SlapOS Master
[publish-connection-informations]
recipe = slapos.cookbook:publish
50 51 52 53
redis_ip = $${redis:ipv6}
redis_port = $${redis:port}
redis_passwd = $${redis:passwd}
redis_uses_password = $${redis:use_passwd}
54 55 56
  
[slap-parameter]
use_passwd = false