Commit 1a405f22 authored by Vincent Pelletier's avatar Vincent Pelletier

Jinja2-ify instance-erp5-development.cfg .

parent a591a4c7
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
############################# #############################
[buildout] [buildout]
extends = ${template-zope:output} extends = {{ template_zope }}
parts += parts +=
request-mariadb request-mariadb
request-cloudooo request-cloudooo
...@@ -15,8 +15,8 @@ parts += ...@@ -15,8 +15,8 @@ parts +=
erp5-update erp5-update
test-runner test-runner
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
[slap-parameter] [slap-parameter]
...@@ -26,71 +26,71 @@ cloudooo-json = ...@@ -26,71 +26,71 @@ cloudooo-json =
[test-runner] [test-runner]
recipe = slapos.cookbook:erp5.test recipe = slapos.cookbook:erp5.test
certificate-authority-path = $${test-certificate-authority:ca-dir} certificate-authority-path = ${test-certificate-authority:ca-dir}
mysql-url = $${request-mariadb:connection-url} mysql-url = ${request-mariadb:connection-url}
kumofs-url = $${request-kumofs:connection-url} kumofs-url = ${request-kumofs:connection-url}
memcached-url = $${request-memcached:connection-url} memcached-url = ${request-memcached:connection-url}
cloudooo-url = $${request-cloudooo:connection-url} cloudooo-url = ${request-cloudooo:connection-url}
test-instance-path = $${directory:unit-test-path} test-instance-path = ${directory:unit-test-path}
prepend-path = $${buildout:bin-directory} prepend-path = ${buildout:bin-directory}
run-unit-test = $${buildout:bin-directory}/runUnitTest run-unit-test = ${buildout:bin-directory}/runUnitTest
run-test-suite = $${buildout:bin-directory}/runTestSuite run-test-suite = ${buildout:bin-directory}/runTestSuite
openssl-binary = $${test-certificate-authority:openssl-binary} openssl-binary = ${test-certificate-authority:openssl-binary}
run-unit-test-binary = ${buildout:bin-directory}/runUnitTest run-unit-test-binary = {{ bin_directory }}/runUnitTest
run-test-suite-binary = ${buildout:bin-directory}/runTestSuite run-test-suite-binary = {{ bin_directory }}/runTestSuite
[test-certificate-authority] [test-certificate-authority]
recipe = slapos.cookbook:certificate_authority recipe = slapos.cookbook:certificate_authority
openssl-binary = ${openssl:location}/bin/openssl openssl-binary = {{ openssl_location }}/bin/openssl
ca-dir = $${directory:test-ca-dir} ca-dir = ${directory:test-ca-dir}
requests-directory = $${test-cadirectory:requests} requests-directory = ${test-cadirectory:requests}
wrapper = $${basedirectory:services}/test-ca wrapper = ${basedirectory:services}/test-ca
ca-private = $${test-cadirectory:private} ca-private = ${test-cadirectory:private}
ca-certs = $${test-cadirectory:certs} ca-certs = ${test-cadirectory:certs}
ca-newcerts = $${test-cadirectory:newcerts} ca-newcerts = ${test-cadirectory:newcerts}
ca-crl = $${test-cadirectory:crl} ca-crl = ${test-cadirectory:crl}
[test-cadirectory] [test-cadirectory]
recipe = slapos.cookbook:mkdirectory recipe = slapos.cookbook:mkdirectory
requests = $${directory:test-ca-dir}/requests requests = ${directory:test-ca-dir}/requests
private = $${directory:test-ca-dir}/private private = ${directory:test-ca-dir}/private
certs = $${directory:test-ca-dir}/certs certs = ${directory:test-ca-dir}/certs
newcerts = $${directory:test-ca-dir}/newcerts newcerts = ${directory:test-ca-dir}/newcerts
crl = $${directory:test-ca-dir}/crl crl = ${directory:test-ca-dir}/crl
[erp5-update] [erp5-update]
recipe = slapos.cookbook:erp5.update recipe = slapos.cookbook:erp5.update
# Configuration # Configuration
url = http://$${zope-instance:user}:$${zope-instance:password}@$${zope-instance:ip}:$${zope-instance:port}/ url = http://${zope-instance:user}:${zope-instance:password}@${zope-instance:ip}:${zope-instance:port}/
mysql-url = $${request-mariadb:connection-url} mysql-url = ${request-mariadb:connection-url}
kumofs-url = $${request-kumofs:connection-url} kumofs-url = ${request-kumofs:connection-url}
memcached-url = $${request-memcached:connection-url} memcached-url = ${request-memcached:connection-url}
cloudooo-url = $${request-cloudooo:connection-url} cloudooo-url = ${request-cloudooo:connection-url}
site-id = $${slap-parameter:site-id} site-id = ${slap-parameter:site-id}
openssl-binary = ${openssl:location}/bin/openssl openssl-binary = {{ openssl_location }}/bin/openssl
cadir-path = $${erp5-certificate-authority:ca-dir} cadir-path = ${erp5-certificate-authority:ca-dir}
# Paths # Paths
update-wrapper = $${basedirectory:services}/erp5-update update-wrapper = ${basedirectory:services}/erp5-update
# Defaults # Defaults
configurator-bt5-list = erp5_full_text_myisam_catalog erp5_configurator_standard erp5_configurator_maxma_demo erp5_configurator_ung erp5_configurator_ung erp5_configurator_run_my_doc configurator-bt5-list = erp5_full_text_myisam_catalog erp5_configurator_standard erp5_configurator_maxma_demo erp5_configurator_ung erp5_configurator_ung erp5_configurator_run_my_doc
bt5-repository-list = $${zope-instance:bt5-repository-list} bt5-repository-list = ${zope-instance:bt5-repository-list}
[request-common] [request-common]
recipe = slapos.cookbook:request recipe = slapos.cookbook:request
software-url = $${slap-connection:software-release-url} software-url = ${slap-connection:software-release-url}
sla = computer_guid sla = computer_guid
sla-computer_guid = $${slap-connection:computer-id} sla-computer_guid = ${slap-connection:computer-id}
return = url return = url
server-url = $${slap-connection:server-url} server-url = ${slap-connection:server-url}
key-file = $${slap-connection:key-file} key-file = ${slap-connection:key-file}
cert-file = $${slap-connection:cert-file} cert-file = ${slap-connection:cert-file}
computer-id = $${slap-connection:computer-id} computer-id = ${slap-connection:computer-id}
partition-id = $${slap-connection:partition-id} partition-id = ${slap-connection:partition-id}
[request-mariadb] [request-mariadb]
<=request-common <=request-common
...@@ -101,7 +101,7 @@ software-type = mariadb ...@@ -101,7 +101,7 @@ software-type = mariadb
<=request-common <=request-common
name = Cloudooo name = Cloudooo
config = cloudooo-json config = cloudooo-json
config-cloudooo-json = $${slap-parameter:cloudooo-json} config-cloudooo-json = ${slap-parameter:cloudooo-json}
software-type = cloudooo software-type = cloudooo
[request-memcached] [request-memcached]
...@@ -117,13 +117,13 @@ software-type = kumofs ...@@ -117,13 +117,13 @@ software-type = kumofs
# rest of parts are candidates for some generic stuff # rest of parts are candidates for some generic stuff
[basedirectory] [basedirectory]
recipe = slapos.cookbook:mkdirectory recipe = slapos.cookbook:mkdirectory
services = $${rootdirectory:etc}/run services = ${rootdirectory:etc}/run
[rootdirectory] [rootdirectory]
recipe = slapos.cookbook:mkdirectory recipe = slapos.cookbook:mkdirectory
etc = $${buildout:directory}/etc etc = ${buildout:directory}/etc
[directory] [directory]
test-ca-dir = $${rootdirectory:srv}/test-ca test-ca-dir = ${rootdirectory:srv}/test-ca
test-instance-path = $${rootdirectory:srv}/test-instance test-instance-path = ${rootdirectory:srv}/test-instance
unit-test-path = $${:test-instance-path}/unit_test unit-test-path = ${:test-instance-path}/unit_test
...@@ -24,7 +24,7 @@ snippet-fontconfig = ${template-snippet-fontconfig:output} ...@@ -24,7 +24,7 @@ snippet-fontconfig = ${template-snippet-fontconfig:output}
[switch-softwaretype] [switch-softwaretype]
recipe = slapos.cookbook:softwaretype recipe = slapos.cookbook:softwaretype
default = ${template-erp5-development:output} 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:output}
......
...@@ -112,11 +112,12 @@ output = ${buildout:directory}/template-memcached.cfg ...@@ -112,11 +112,12 @@ output = ${buildout:directory}/template-memcached.cfg
mode = 0644 mode = 0644
[template-erp5-development] [template-erp5-development]
recipe = slapos.recipe.template < = template-jinja2-base
url = ${:_profile_base_location_}/instance-erp5-development.cfg filename = instance-erp5-development.cfg
md5sum = 4bc5a2ec8c04b206dab8b98258a69efd md5sum = f48d9005fc6c667c69d5c9304e4e214e
output = ${buildout:directory}/template-erp5-development.cfg extra-context =
mode = 0644 key openssl_location openssl:location
key template_zope template-zope:output
[template-erp5-production] [template-erp5-production]
recipe = slapos.recipe.template recipe = slapos.recipe.template
......
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