diff --git a/stack/erp5/buildout.cfg b/stack/erp5/buildout.cfg index 4a9bc1b81010a35f9e37c0a7cc3c98909545d0e8..7098ba75fb68f53c40638e23b1d6df297a6ffa09 100644 --- a/stack/erp5/buildout.cfg +++ b/stack/erp5/buildout.cfg @@ -252,12 +252,13 @@ mode = 640 # XXX: "template.cfg" is hardcoded in instanciation recipe filename = template.cfg template = ${:_profile_base_location_}/instance.cfg.in -md5sum = 88356e0017fc9e231c583a5f3544a5b9 +md5sum = 9704211fdbed6b23854dcc2222d387c4 extra-context = key apache_location apache:location key aspell_location aspell:location key buildout_bin_directory buildout:bin-directory key coreutils_location coreutils:location + key curl_location curl:location key dash_location dash:location key dcron_location dcron:location key dmtx_utils_location dmtx-utils:location @@ -318,7 +319,7 @@ extra-context = [template-erp5-development] recipe = slapos.recipe.build:download url = ${:_profile_base_location_}/instance-erp5-development.cfg.in -md5sum = e95429fa0e4e3bb87b042277ba52fd8f +md5sum = 2a4312202a3160f874c4fa3ee9155a1d mode = 640 [template-erp5-production] diff --git a/stack/erp5/instance-erp5-development.cfg.in b/stack/erp5/instance-erp5-development.cfg.in index 01759e21b1c7b55a4b15dbb2c0196e1b000f901a..15aa6ebd9541cda1f0e998b690a2dbe012b9a621 100644 --- a/stack/erp5/instance-erp5-development.cfg.in +++ b/stack/erp5/instance-erp5-development.cfg.in @@ -15,6 +15,7 @@ parts += test-runner erp5-bootstrap erp5-promise + promise-erp5-site eggs-directory = {{ eggs_directory }} develop-eggs-directory = {{ develop_eggs_directory }} @@ -127,3 +128,10 @@ site-id = ${slap-parameter:site-id} test-ca-dir = ${rootdirectory:srv}/test-ca test-instance-path = ${rootdirectory:srv}/test-instance unit-test-path = ${:test-instance-path}/unit_test + +[promise-erp5-site] +recipe = slapos.cookbook:check_url_available +path = ${basedirectory:promises}/erp5site +url = http://${zope-instance:ip}:${zope-instance:port}/${slap-parameter:site-id} +dash_path = {{ dash_location }}/bin/dash +curl_path = {{ curl_location }}/bin/curl diff --git a/stack/erp5/instance.cfg.in b/stack/erp5/instance.cfg.in index 5e89d07125537c82122a71cd99c1923d0f470aea..492b2a3c7dbaf71ef6b465ab6fdaf94794de84fd 100644 --- a/stack/erp5/instance.cfg.in +++ b/stack/erp5/instance.cfg.in @@ -169,6 +169,8 @@ extra-context = bin-directory = {{ bin_directory }} openssl = {{ openssl_location }} local_bt5_repository = {{ local_bt5_repository }} +dash = {{ dash_location }} +curl = {{ curl_location }} [template-erp5-development] < = jinja2-template-base @@ -180,6 +182,8 @@ filename = instance-erp5-development.cfg extra-context = key bin_directory template-erp5-development-parameters:bin-directory key openssl_location template-erp5-development-parameters:openssl + key curl_location template-erp5-development-parameters:curl + key dash_location template-erp5-development-parameters:dash key template_zope dynamic-template-zope:rendered key local_bt5_repository template-erp5-development-parameters:local_bt5_repository