Commit a893a0c2 authored by Vincent Pelletier's avatar Vincent Pelletier

Jinja2-ify instance-memcached.cfg .

parent 1a405f22
...@@ -10,27 +10,27 @@ parts = ...@@ -10,27 +10,27 @@ parts =
memcached-instance memcached-instance
publish-memcached-connection-information publish-memcached-connection-information
eggs-directory = ${buildout:eggs-directory} eggs-directory = {{ eggs_directory }}
develop-eggs-directory = ${buildout:develop-eggs-directory} develop-eggs-directory = {{ develop_eggs_directory }}
offline = true offline = true
[rootdirectory] [rootdirectory]
recipe = slapos.cookbook:mkdirectory recipe = slapos.cookbook:mkdirectory
etc = $${buildout:directory}/etc etc = ${buildout:directory}/etc
bin = $${buildout:directory}/bin bin = ${buildout:directory}/bin
[basedirectory] [basedirectory]
recipe = slapos.cookbook:mkdirectory recipe = slapos.cookbook:mkdirectory
services = $${rootdirectory:etc}/run 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 = ${basedirectory:services}/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}
port = 11000 port = 11000
[publish-memcached-connection-information] [publish-memcached-connection-information]
recipe = slapos.cookbook:publishurl recipe = slapos.cookbook:publishurl
url = memcached://$${memcached-instance:ip}:$${memcached-instance:port}/ url = memcached://${memcached-instance:ip}:${memcached-instance:port}/
...@@ -27,7 +27,7 @@ recipe = slapos.cookbook:softwaretype ...@@ -27,7 +27,7 @@ recipe = slapos.cookbook:softwaretype
default = ${template-erp5-development:rendered} default = ${template-erp5-development:rendered}
production = ${template-erp5-production:output} production = ${template-erp5-production:output}
kumofs = ${template-kumofs:output} kumofs = ${template-kumofs:output}
memcached = ${template-memcached:output} memcached = ${template-memcached:rendered}
cloudooo = $${dynamic-template-cloudooo:output} cloudooo = $${dynamic-template-cloudooo:output}
zope = ${template-zope:output} zope = ${template-zope:output}
mariadb = ${template-mariadb:output} mariadb = ${template-mariadb:output}
......
...@@ -105,11 +105,12 @@ output = ${buildout:directory}/template.cfg ...@@ -105,11 +105,12 @@ output = ${buildout:directory}/template.cfg
mode = 0644 mode = 0644
[template-memcached] [template-memcached]
recipe = slapos.recipe.template < = template-jinja2-base
url = ${:_profile_base_location_}/instance-memcached.cfg filename = instance-memcached.cfg
md5sum = 7ed1d93dafa76adc025acb2f0e08c05f md5sum = 395779dc578e2527cb0d89c5aee39f65
output = ${buildout:directory}/template-memcached.cfg extra-context =
mode = 0644 key dash_location dash:location
key memcached_location memcached:location
[template-erp5-development] [template-erp5-development]
< = template-jinja2-base < = template-jinja2-base
......
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