Commit c763596c authored by Marco Mariani's avatar Marco Mariani

abilian: added redis instance

parent 59b5f973
[buildout]
parts =
publish-redis-connection-parameters
redis
[redis-passwd]
recipe = slapos.cookbook:generate.password
storage-path = $${directories:etc}/.redis-passwd
bytes = 4
[redis]
recipe = slapos.cookbook:redis.server
server_bin = ${redis:location}/bin/redis-server
ipv6 = $${instance-parameters:ipv6-random}
port = 6379
use_passwd = $${slap-parameter:use_passwd}
pid_file = $${directories:run}/redis.pid
server_dir = $${directories:srv}
passwd = $${redis-passwd:passwd}
config_file = $${directories:etc}/redis.conf
log_file = $${directories:log}/redis.log
wrapper = $${directories:services}/redis_server
promise_wrapper = $${directories:promises}/redis
# Send informations to SlapOS Master
[publish-redis-connection-parameters]
recipe = slapos.cookbook:publish
redis_ip = $${redis:ipv6}
redis_port = $${redis:port}
redis_passwd = $${redis:passwd}
redis_uses_password = $${redis:use_passwd}
[slap-parameter]
use_passwd = false
[buildout] [buildout]
eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true
extends = extends =
${instance-postgres:output} ${instance-postgres:output}
${instance-extranet:output} ${instance-extranet:output}
${instance-redis:output}
${instance-environment:output} ${instance-environment:output}
parts = parts =
...@@ -16,7 +21,9 @@ parts = ...@@ -16,7 +21,9 @@ parts =
json-configuration json-configuration
json-extra-configuration json-extra-configuration
request-web-frontend request-web-frontend
publish-connection-parameter publish-connection-parameters
redis
publish-redis-connection-parameters
...@@ -59,6 +66,8 @@ mode = 0644 ...@@ -59,6 +66,8 @@ mode = 0644
recipe = slapos.cookbook:mkdirectory recipe = slapos.cookbook:mkdirectory
bin = $${buildout:directory}/bin bin = $${buildout:directory}/bin
etc = $${buildout:directory}/etc etc = $${buildout:directory}/etc
run = $${directories:var}/run
scripts = $${directories:etc}/run
srv = $${buildout:directory}/srv srv = $${buildout:directory}/srv
services = $${directories:etc}/service services = $${directories:etc}/service
promises = $${directories:etc}/promise promises = $${directories:etc}/promise
...@@ -66,8 +75,8 @@ var = $${buildout:directory}/var ...@@ -66,8 +75,8 @@ var = $${buildout:directory}/var
extranet_spr-instance = $${:var}/extranet_spr-instance extranet_spr-instance = $${:var}/extranet_spr-instance
cache = $${:extranet_spr-instance}/cache cache = $${:extranet_spr-instance}/cache
data = $${:extranet_spr-instance}/data data = $${:extranet_spr-instance}/data
log = $${:extranet_spr-instance}/log log = $${directories:var}/log
tmp = $${:extranet_spr-instance}/tmp tmp = $${directories:var}/tmp
whoosh = $${:data}/whoosh whoosh = $${:data}/whoosh
...@@ -83,7 +92,7 @@ config-url = https://[$${instance-parameters:ipv6}]:5000/ ...@@ -83,7 +92,7 @@ config-url = https://[$${instance-parameters:ipv6}]:5000/
return = site_url return = site_url
[publish-connection-parameter] [publish-connection-parameters]
recipe = slapos.cookbook:publish recipe = slapos.cookbook:publish
url = $${request-web-frontend:connection-site_url} url = $${request-web-frontend:connection-site_url}
name = test parameter name = test parameter
...@@ -51,6 +51,7 @@ parts = ...@@ -51,6 +51,7 @@ parts =
nginx nginx
instance instance
instance-postgres instance-postgres
instance-redis
config-staging-py-template config-staging-py-template
abilian-config abilian-config
...@@ -217,6 +218,13 @@ output = ${buildout:directory}/instance-postgres.cfg ...@@ -217,6 +218,13 @@ output = ${buildout:directory}/instance-postgres.cfg
#XXX md5sum = #XXX md5sum =
mode = 0644 mode = 0644
[instance-redis]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-redis.cfg.in
output = ${buildout:directory}/instance-redis.cfg
#md5sum =
mode = 0644
[instance-extranet] [instance-extranet]
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-extranet.cfg.in url = ${:_profile_base_location_}/instance-extranet.cfg.in
......
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