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
Carlos Ramos Carreño
slapos
Commits
9a54dee8
Commit
9a54dee8
authored
Mar 29, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Jinja2-ify instance-kumofs.cfg .
parent
29dd4380
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
121 additions
and
6 deletions
+121
-6
software/erp5/instance-kumofs.cfg.in
software/erp5/instance-kumofs.cfg.in
+111
-0
software/erp5/instance.cfg
software/erp5/instance.cfg
+1
-1
software/erp5/software.cfg
software/erp5/software.cfg
+9
-5
No files found.
software/erp5/instance-kumofs.cfg
→
software/erp5/instance-kumofs.cfg
.in
View file @
9a54dee8
...
...
@@ -7,105 +7,105 @@ parts =
cron
cron-entry-logrotate
eggs-directory =
${buildout:eggs-directory
}
develop-eggs-directory =
${buildout:develop-eggs-directory
}
eggs-directory =
{{ eggs_directory }
}
develop-eggs-directory =
{{ develop_eggs_directory }
}
offline = true
[publish-kumofs-connection-information]
recipe = slapos.cookbook:publishurl
url = memcached://$
${kumofs-instance:ip}:$
${kumofs-instance:gateway-port}/
url = memcached://$
{kumofs-instance:ip}:
${kumofs-instance:gateway-port}/
[kumofs-instance]
recipe = slapos.cookbook:generic.kumofs
# Network options
ip = $
$
{slap-network-information:local-ipv4}
ip = ${slap-network-information:local-ipv4}
manager-port = 13101
server-port = 13201
server-listen-port = 13202
gateway-port = 13301
# Paths: Running wrappers
gateway-wrapper = $
$
{basedirectory:services}/kumofs_gateway
manager-wrapper = $
$
{basedirectory:services}/kumofs_manager
server-wrapper = $
$
{basedirectory:services}/kumofs_server
gateway-wrapper = ${basedirectory:services}/kumofs_gateway
manager-wrapper = ${basedirectory:services}/kumofs_manager
server-wrapper = ${basedirectory:services}/kumofs_server
# Paths: Data
data-directory = $
$
{directory:kumofs-data}
data-directory = ${directory:kumofs-data}
# Paths: Logs
kumo-gateway-log = $
$
{basedirectory:log}/kumo-gateway.log
kumo-manager-log = $
$
{basedirectory:log}/kumo-manager.log
kumo-server-log = $
$
{basedirectory:log}/kumo-server.log
kumo-gateway-log = ${basedirectory:log}/kumo-gateway.log
kumo-manager-log = ${basedirectory:log}/kumo-manager.log
kumo-server-log = ${basedirectory:log}/kumo-server.log
# Binary information
kumo-gateway-binary =
${kumo:location
}/bin/kumo-gateway
kumo-manager-binary =
${kumo:location
}/bin/kumo-manager
kumo-server-binary =
${kumo:location
}/bin/kumo-server
shell-path =
${dash:location
}/bin/dash
kumo-gateway-binary =
{{ kumo_location }
}/bin/kumo-gateway
kumo-manager-binary =
{{ kumo_location }
}/bin/kumo-manager
kumo-server-binary =
{{ kumo_location }
}/bin/kumo-server
shell-path =
{{ dash_location }
}/bin/dash
[logrotate-entry-kumofs]
<= logrotate
recipe = slapos.cookbook:logrotate.d
name = kumofs
log = $
${kumofs-instance:kumo-gateway-log} $
${kumofs-instance:kumo-manager-log}
$
$
{kumofs-instance:kumo-server-log}
log = $
{kumofs-instance:kumo-gateway-log}
${kumofs-instance:kumo-manager-log}
${kumofs-instance:kumo-server-log}
# rest of parts are candidates for some generic stuff
[logrotate]
recipe = slapos.cookbook:logrotate
# Binaries
logrotate-binary =
${logrotate:location
}/usr/sbin/logrotate
gzip-binary =
${gzip:location
}/bin/gzip
gunzip-binary =
${gzip:location
}/bin/gunzip
logrotate-binary =
{{ logrotate_location }
}/usr/sbin/logrotate
gzip-binary =
{{ gzip_location }
}/bin/gzip
gunzip-binary =
{{ gzip_location }
}/bin/gunzip
# Directories
wrapper = $
$
{rootdirectory:bin}/logrotate
conf = $
$
{rootdirectory:etc}/logrotate.conf
logrotate-entries = $
$
{directory:logrotate-entries}
backup = $
$
{directory:logrotate-backup}
state-file = $
$
{rootdirectory:srv}/logrotate.status
wrapper = ${rootdirectory:bin}/logrotate
conf = ${rootdirectory:etc}/logrotate.conf
logrotate-entries = ${directory:logrotate-entries}
backup = ${directory:logrotate-backup}
state-file = ${rootdirectory:srv}/logrotate.status
[basedirectory]
recipe = slapos.cookbook:mkdirectory
log = $
$
{rootdirectory:var}/log
services = $
$
{rootdirectory:etc}/run
run = $
$
{rootdirectory:var}/run
backup = $
$
{rootdirectory:srv}/backup
log = ${rootdirectory:var}/log
services = ${rootdirectory:etc}/run
run = ${rootdirectory:var}/run
backup = ${rootdirectory:srv}/backup
[directory]
recipe = slapos.cookbook:mkdirectory
cron-entries = $
$
{rootdirectory:etc}/cron.d
crontabs = $
$
{rootdirectory:etc}/crontabs
cronstamps = $
$
{rootdirectory:etc}/cronstamps
logrotate-backup = $
$
{basedirectory:backup}/logrotate
logrotate-entries = $
$
{rootdirectory:etc}/logrotate.d
kumofs-data = $
$
{rootdirectory:srv}/kumofs
cron-entries = ${rootdirectory:etc}/cron.d
crontabs = ${rootdirectory:etc}/crontabs
cronstamps = ${rootdirectory:etc}/cronstamps
logrotate-backup = ${basedirectory:backup}/logrotate
logrotate-entries = ${rootdirectory:etc}/logrotate.d
kumofs-data = ${rootdirectory:srv}/kumofs
[rootdirectory]
recipe = slapos.cookbook:mkdirectory
etc = $
$
{buildout:directory}/etc
var = $
$
{buildout:directory}/var
srv = $
$
{buildout:directory}/srv
bin = $
$
{buildout:directory}/bin
etc = ${buildout:directory}/etc
var = ${buildout:directory}/var
srv = ${buildout:directory}/srv
bin = ${buildout:directory}/bin
[cron]
recipe = slapos.cookbook:cron
dcrond-binary =
${dcron:location
}/sbin/crond
cron-entries = $
$
{directory:cron-entries}
crontabs = $
$
{directory:crontabs}
cronstamps = $
$
{directory:cronstamps}
catcher = $
$
{cron-simplelogger:wrapper}
binary = $
$
{basedirectory:services}/crond
dcrond-binary =
{{ dcron_location }
}/sbin/crond
cron-entries = ${directory:cron-entries}
crontabs = ${directory:crontabs}
cronstamps = ${directory:cronstamps}
catcher = ${cron-simplelogger:wrapper}
binary = ${basedirectory:services}/crond
[cron-simplelogger]
recipe = slapos.cookbook:simplelogger
wrapper = $
$
{rootdirectory:bin}/cron_simplelogger
log = $
$
{basedirectory:log}/cron.log
wrapper = ${rootdirectory:bin}/cron_simplelogger
log = ${basedirectory:log}/cron.log
[cron-entry-logrotate]
<= cron
recipe = slapos.cookbook:cron.d
name = logrotate
frequency = 0 0 * * *
command = $
$
{logrotate:wrapper}
command = ${logrotate:wrapper}
software/erp5/instance.cfg
View file @
9a54dee8
...
...
@@ -26,7 +26,7 @@ snippet-fontconfig = ${template-snippet-fontconfig:output}
recipe = slapos.cookbook:softwaretype
default = ${template-erp5-development:rendered}
production = ${template-erp5-production:rendered}
kumofs = ${template-kumofs:
output
}
kumofs = ${template-kumofs:
rendered
}
memcached = ${template-memcached:rendered}
cloudooo = $${dynamic-template-cloudooo:output}
zope = ${template-zope:rendered}
...
...
software/erp5/software.cfg
View file @
9a54dee8
...
...
@@ -118,11 +118,15 @@ output = ${buildout:directory}/template-snippet-fontconfig.cfg
mode = 0644
[template-kumofs]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-kumofs.cfg
md5sum = 9746823ccbbedf42b3e759c3e7150252
output = ${buildout:directory}/template-kumofs.cfg
mode = 0644
< = template-jinja2-base
filename = instance-kumofs.cfg
md5sum = 700ee7769c89e0959dc3f052e55ada6e
extra-context =
key dash_location dash:location
key dcron_location dcron:location
key gzip_location gzip:location
key kumo_location kumo:location
key logrotate_location logrotate:location
[template]
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