Commit 170bed22 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

specify slapos.core version in instance-erp5-*.cfg.in and instance-zope.cfg.in.

otherwise buggy slapos.core-1.0 will be used if exists.
parent c0f0cbeb
...@@ -161,6 +161,7 @@ context = ...@@ -161,6 +161,7 @@ context =
key bin_directory buildout:bin-directory key bin_directory buildout:bin-directory
key develop_eggs_directory buildout:develop-eggs-directory key develop_eggs_directory buildout:develop-eggs-directory
key eggs_directory buildout:eggs-directory key eggs_directory buildout:eggs-directory
key slapos_core_version versions:slapos.core
${:extra-context} ${:extra-context}
[template-mariadb] [template-mariadb]
...@@ -183,7 +184,7 @@ extra-context = ...@@ -183,7 +184,7 @@ extra-context =
[template-zope] [template-zope]
recipe = slapos.recipe.build:download recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/instance-zope.cfg.in url = ${:_profile_base_location_}/instance-zope.cfg.in
md5sum = 69556ddc9773fb95896b7762e998bb9b md5sum = 23baedc096a3ee046d2efe2195e19b96
mode = 640 mode = 640
[template-kumofs] [template-kumofs]
...@@ -220,7 +221,7 @@ mode = 640 ...@@ -220,7 +221,7 @@ mode = 640
# XXX: "template.cfg" is hardcoded in instanciation recipe # XXX: "template.cfg" is hardcoded in instanciation recipe
filename = template.cfg filename = template.cfg
template = ${:_profile_base_location_}/instance.cfg.in template = ${:_profile_base_location_}/instance.cfg.in
md5sum = a1a5a9983207e4a8128bab331cbd3cd5 md5sum = 4504529abf707c4a5cd6ccacc761ec71
extra-context = extra-context =
key apache_location apache:location key apache_location apache:location
key aspell_location aspell:location key aspell_location aspell:location
...@@ -290,13 +291,13 @@ extra-context = ...@@ -290,13 +291,13 @@ extra-context =
[template-erp5-single] [template-erp5-single]
recipe = slapos.recipe.build:download recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/instance-erp5-single.cfg.in url = ${:_profile_base_location_}/instance-erp5-single.cfg.in
md5sum = 2a4312202a3160f874c4fa3ee9155a1d md5sum = becf4faf3df849bb90ddf5f587f02d5e
mode = 640 mode = 640
[template-erp5-cluster] [template-erp5-cluster]
recipe = slapos.recipe.build:download recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/instance-erp5-cluster.cfg.in url = ${:_profile_base_location_}/instance-erp5-cluster.cfg.in
md5sum = eecde68b9a266d8883042540ac077839 md5sum = f4c9cdbbac82232b84db080461bd0007
mode = 640 mode = 640
[template-varnish] [template-varnish]
......
...@@ -13,6 +13,7 @@ parts = ...@@ -13,6 +13,7 @@ parts =
eggs-directory = {{ eggs_directory }} eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }} develop-eggs-directory = {{ develop_eggs_directory }}
offline = true offline = true
versions = versions
[request-common] [request-common]
recipe = slapos.cookbook:request recipe = slapos.cookbook:request
...@@ -106,3 +107,6 @@ smtp-url = smtp://localhost:25/ ...@@ -106,3 +107,6 @@ smtp-url = smtp://localhost:25/
recipe = slapos.cookbook:mkdirectory recipe = slapos.cookbook:mkdirectory
etc = ${buildout:directory}/etc/run etc = ${buildout:directory}/etc/run
{% endif %} {% endif %}
[versions]
slapos.core = {{ slapos_core_version }}
...@@ -20,6 +20,7 @@ parts += ...@@ -20,6 +20,7 @@ parts +=
eggs-directory = {{ eggs_directory }} eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }} develop-eggs-directory = {{ develop_eggs_directory }}
offline = true offline = true
versions = versions
[slap-parameter] [slap-parameter]
# default site id # default site id
...@@ -135,3 +136,6 @@ path = ${basedirectory:promises}/erp5site ...@@ -135,3 +136,6 @@ path = ${basedirectory:promises}/erp5site
url = http://${zope-instance:ip}:${zope-instance:port}/${slap-parameter:site-id} url = http://${zope-instance:ip}:${zope-instance:port}/${slap-parameter:site-id}
dash_path = {{ dash_location }}/bin/dash dash_path = {{ dash_location }}/bin/dash
curl_path = {{ curl_location }}/bin/curl curl_path = {{ curl_location }}/bin/curl
[versions]
slapos.core = {{ slapos_core_version }}
...@@ -18,6 +18,7 @@ parts = ...@@ -18,6 +18,7 @@ parts =
eggs-directory = {{ eggs_directory }} eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }} develop-eggs-directory = {{ develop_eggs_directory }}
offline = true offline = true
versions = versions
{% if 'frontend-software-url' in slapparameter_dict -%} {% if 'frontend-software-url' in slapparameter_dict -%}
[request-slave-frontend] [request-slave-frontend]
...@@ -307,3 +308,5 @@ path = ${basedirectory:promises}/apache-backend ...@@ -307,3 +308,5 @@ path = ${basedirectory:promises}/apache-backend
hostname = ${apache-zope-backend-instance:ip} hostname = ${apache-zope-backend-instance:ip}
port = ${apache-zope-backend-instance:port} port = ${apache-zope-backend-instance:port}
[versions]
slapos.core = {{ slapos_core_version }}
...@@ -23,6 +23,7 @@ context = ...@@ -23,6 +23,7 @@ context =
key develop_eggs_directory buildout:develop-eggs-directory key develop_eggs_directory buildout:develop-eggs-directory
key slap_software_type slap-parameters:slap-software-type key slap_software_type slap-parameters:slap-software-type
key slapparameter_dict slap-parameters:configuration key slapparameter_dict slap-parameters:configuration
raw slapos_core_version {{ slapos_core_version }}
${:extra-context} ${:extra-context}
[dynamic-template-tidstorage-parameters] [dynamic-template-tidstorage-parameters]
......
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