Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lukas Niegsch
slapos
Commits
1a405f22
Commit
1a405f22
authored
Mar 29, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Jinja2-ify instance-erp5-development.cfg .
parent
a591a4c7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
136 additions
and
6 deletions
+136
-6
software/erp5/instance-erp5-development.cfg.in
software/erp5/instance-erp5-development.cfg.in
+129
-0
software/erp5/instance.cfg
software/erp5/instance.cfg
+1
-1
software/erp5/software.cfg
software/erp5/software.cfg
+6
-5
No files found.
software/erp5/instance-erp5-development.cfg
→
software/erp5/instance-erp5-development.cfg
.in
View file @
1a405f22
...
...
@@ -5,7 +5,7 @@
#############################
[buildout]
extends =
${template-zope:output
}
extends =
{{ template_zope }
}
parts +=
request-mariadb
request-cloudooo
...
...
@@ -15,8 +15,8 @@ parts +=
erp5-update
test-runner
eggs-directory =
${buildout:eggs-directory
}
develop-eggs-directory =
${buildout:develop-eggs-directory
}
eggs-directory =
{{ eggs_directory }
}
develop-eggs-directory =
{{ develop_eggs_directory }
}
offline = true
[slap-parameter]
...
...
@@ -26,71 +26,71 @@ cloudooo-json =
[test-runner]
recipe = slapos.cookbook:erp5.test
certificate-authority-path = $
$
{test-certificate-authority:ca-dir}
mysql-url = $
$
{request-mariadb:connection-url}
kumofs-url = $
$
{request-kumofs:connection-url}
memcached-url = $
$
{request-memcached:connection-url}
cloudooo-url = $
$
{request-cloudooo:connection-url}
test-instance-path = $
$
{directory:unit-test-path}
certificate-authority-path = ${test-certificate-authority:ca-dir}
mysql-url = ${request-mariadb:connection-url}
kumofs-url = ${request-kumofs:connection-url}
memcached-url = ${request-memcached:connection-url}
cloudooo-url = ${request-cloudooo:connection-url}
test-instance-path = ${directory:unit-test-path}
prepend-path = $
$
{buildout:bin-directory}
run-unit-test = $
$
{buildout:bin-directory}/runUnitTest
run-test-suite = $
$
{buildout:bin-directory}/runTestSuite
prepend-path = ${buildout:bin-directory}
run-unit-test = ${buildout:bin-directory}/runUnitTest
run-test-suite = ${buildout:bin-directory}/runTestSuite
openssl-binary = $
$
{test-certificate-authority:openssl-binary}
run-unit-test-binary =
${buildout:bin-directory
}/runUnitTest
run-test-suite-binary =
${buildout:bin-directory
}/runTestSuite
openssl-binary = ${test-certificate-authority:openssl-binary}
run-unit-test-binary =
{{ bin_directory }
}/runUnitTest
run-test-suite-binary =
{{ bin_directory }
}/runTestSuite
[test-certificate-authority]
recipe = slapos.cookbook:certificate_authority
openssl-binary =
${openssl:location
}/bin/openssl
ca-dir = $
$
{directory:test-ca-dir}
requests-directory = $
$
{test-cadirectory:requests}
wrapper = $
$
{basedirectory:services}/test-ca
ca-private = $
$
{test-cadirectory:private}
ca-certs = $
$
{test-cadirectory:certs}
ca-newcerts = $
$
{test-cadirectory:newcerts}
ca-crl = $
$
{test-cadirectory:crl}
openssl-binary =
{{ openssl_location }
}/bin/openssl
ca-dir = ${directory:test-ca-dir}
requests-directory = ${test-cadirectory:requests}
wrapper = ${basedirectory:services}/test-ca
ca-private = ${test-cadirectory:private}
ca-certs = ${test-cadirectory:certs}
ca-newcerts = ${test-cadirectory:newcerts}
ca-crl = ${test-cadirectory:crl}
[test-cadirectory]
recipe = slapos.cookbook:mkdirectory
requests = $
$
{directory:test-ca-dir}/requests
private = $
$
{directory:test-ca-dir}/private
certs = $
$
{directory:test-ca-dir}/certs
newcerts = $
$
{directory:test-ca-dir}/newcerts
crl = $
$
{directory:test-ca-dir}/crl
requests = ${directory:test-ca-dir}/requests
private = ${directory:test-ca-dir}/private
certs = ${directory:test-ca-dir}/certs
newcerts = ${directory:test-ca-dir}/newcerts
crl = ${directory:test-ca-dir}/crl
[erp5-update]
recipe = slapos.cookbook:erp5.update
# Configuration
url = http://$
${zope-instance:user}:$${zope-instance:password}@$${zope-instance:ip}:$
${zope-instance:port}/
mysql-url = $
$
{request-mariadb:connection-url}
kumofs-url = $
$
{request-kumofs:connection-url}
memcached-url = $
$
{request-memcached:connection-url}
cloudooo-url = $
$
{request-cloudooo:connection-url}
site-id = $
$
{slap-parameter:site-id}
openssl-binary =
${openssl:location
}/bin/openssl
cadir-path = $
$
{erp5-certificate-authority:ca-dir}
url = http://$
{zope-instance:user}:${zope-instance:password}@${zope-instance:ip}:
${zope-instance:port}/
mysql-url = ${request-mariadb:connection-url}
kumofs-url = ${request-kumofs:connection-url}
memcached-url = ${request-memcached:connection-url}
cloudooo-url = ${request-cloudooo:connection-url}
site-id = ${slap-parameter:site-id}
openssl-binary =
{{ openssl_location }
}/bin/openssl
cadir-path = ${erp5-certificate-authority:ca-dir}
# Paths
update-wrapper = $
$
{basedirectory:services}/erp5-update
update-wrapper = ${basedirectory:services}/erp5-update
# 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
bt5-repository-list = $
$
{zope-instance:bt5-repository-list}
bt5-repository-list = ${zope-instance:bt5-repository-list}
[request-common]
recipe = slapos.cookbook:request
software-url = $
$
{slap-connection:software-release-url}
software-url = ${slap-connection:software-release-url}
sla = computer_guid
sla-computer_guid = $
$
{slap-connection:computer-id}
sla-computer_guid = ${slap-connection:computer-id}
return = url
server-url = $
$
{slap-connection:server-url}
key-file = $
$
{slap-connection:key-file}
cert-file = $
$
{slap-connection:cert-file}
computer-id = $
$
{slap-connection:computer-id}
partition-id = $
$
{slap-connection:partition-id}
server-url = ${slap-connection:server-url}
key-file = ${slap-connection:key-file}
cert-file = ${slap-connection:cert-file}
computer-id = ${slap-connection:computer-id}
partition-id = ${slap-connection:partition-id}
[request-mariadb]
<=request-common
...
...
@@ -101,7 +101,7 @@ software-type = mariadb
<=request-common
name = Cloudooo
config = cloudooo-json
config-cloudooo-json = $
$
{slap-parameter:cloudooo-json}
config-cloudooo-json = ${slap-parameter:cloudooo-json}
software-type = cloudooo
[request-memcached]
...
...
@@ -117,13 +117,13 @@ software-type = kumofs
# rest of parts are candidates for some generic stuff
[basedirectory]
recipe = slapos.cookbook:mkdirectory
services = $
$
{rootdirectory:etc}/run
services = ${rootdirectory:etc}/run
[rootdirectory]
recipe = slapos.cookbook:mkdirectory
etc = $
$
{buildout:directory}/etc
etc = ${buildout:directory}/etc
[directory]
test-ca-dir = $
$
{rootdirectory:srv}/test-ca
test-instance-path = $
$
{rootdirectory:srv}/test-instance
unit-test-path = $
$
{:test-instance-path}/unit_test
test-ca-dir = ${rootdirectory:srv}/test-ca
test-instance-path = ${rootdirectory:srv}/test-instance
unit-test-path = ${:test-instance-path}/unit_test
software/erp5/instance.cfg
View file @
1a405f22
...
...
@@ -24,7 +24,7 @@ snippet-fontconfig = ${template-snippet-fontconfig:output}
[switch-softwaretype]
recipe = slapos.cookbook:softwaretype
default = ${template-erp5-development:
output
}
default = ${template-erp5-development:
rendered
}
production = ${template-erp5-production:output}
kumofs = ${template-kumofs:output}
memcached = ${template-memcached:output}
...
...
software/erp5/software.cfg
View file @
1a405f22
...
...
@@ -112,11 +112,12 @@ output = ${buildout:directory}/template-memcached.cfg
mode = 0644
[template-erp5-development]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-erp5-development.cfg
md5sum = 4bc5a2ec8c04b206dab8b98258a69efd
output = ${buildout:directory}/template-erp5-development.cfg
mode = 0644
< = template-jinja2-base
filename = instance-erp5-development.cfg
md5sum = f48d9005fc6c667c69d5c9304e4e214e
extra-context =
key openssl_location openssl:location
key template_zope template-zope:output
[template-erp5-production]
recipe = slapos.recipe.template
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment