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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Douglas
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
Hide 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 =
...
@@ -7,105 +7,105 @@ parts =
cron
cron
cron-entry-logrotate
cron-entry-logrotate
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
[publish-kumofs-connection-information]
[publish-kumofs-connection-information]
recipe = slapos.cookbook:publishurl
recipe = slapos.cookbook:publishurl
url = memcached://$
${kumofs-instance:ip}:$
${kumofs-instance:gateway-port}/
url = memcached://$
{kumofs-instance:ip}:
${kumofs-instance:gateway-port}/
[kumofs-instance]
[kumofs-instance]
recipe = slapos.cookbook:generic.kumofs
recipe = slapos.cookbook:generic.kumofs
# Network options
# Network options
ip = $
$
{slap-network-information:local-ipv4}
ip = ${slap-network-information:local-ipv4}
manager-port = 13101
manager-port = 13101
server-port = 13201
server-port = 13201
server-listen-port = 13202
server-listen-port = 13202
gateway-port = 13301
gateway-port = 13301
# Paths: Running wrappers
# Paths: Running wrappers
gateway-wrapper = $
$
{basedirectory:services}/kumofs_gateway
gateway-wrapper = ${basedirectory:services}/kumofs_gateway
manager-wrapper = $
$
{basedirectory:services}/kumofs_manager
manager-wrapper = ${basedirectory:services}/kumofs_manager
server-wrapper = $
$
{basedirectory:services}/kumofs_server
server-wrapper = ${basedirectory:services}/kumofs_server
# Paths: Data
# Paths: Data
data-directory = $
$
{directory:kumofs-data}
data-directory = ${directory:kumofs-data}
# Paths: Logs
# Paths: Logs
kumo-gateway-log = $
$
{basedirectory:log}/kumo-gateway.log
kumo-gateway-log = ${basedirectory:log}/kumo-gateway.log
kumo-manager-log = $
$
{basedirectory:log}/kumo-manager.log
kumo-manager-log = ${basedirectory:log}/kumo-manager.log
kumo-server-log = $
$
{basedirectory:log}/kumo-server.log
kumo-server-log = ${basedirectory:log}/kumo-server.log
# Binary information
# Binary information
kumo-gateway-binary =
${kumo:location
}/bin/kumo-gateway
kumo-gateway-binary =
{{ kumo_location }
}/bin/kumo-gateway
kumo-manager-binary =
${kumo:location
}/bin/kumo-manager
kumo-manager-binary =
{{ kumo_location }
}/bin/kumo-manager
kumo-server-binary =
${kumo:location
}/bin/kumo-server
kumo-server-binary =
{{ kumo_location }
}/bin/kumo-server
shell-path =
${dash:location
}/bin/dash
shell-path =
{{ dash_location }
}/bin/dash
[logrotate-entry-kumofs]
[logrotate-entry-kumofs]
<= logrotate
<= logrotate
recipe = slapos.cookbook:logrotate.d
recipe = slapos.cookbook:logrotate.d
name = kumofs
name = kumofs
log = $
${kumofs-instance:kumo-gateway-log} $
${kumofs-instance:kumo-manager-log}
log = $
{kumofs-instance:kumo-gateway-log}
${kumofs-instance:kumo-manager-log}
$
$
{kumofs-instance:kumo-server-log}
${kumofs-instance:kumo-server-log}
# rest of parts are candidates for some generic stuff
# rest of parts are candidates for some generic stuff
[logrotate]
[logrotate]
recipe = slapos.cookbook:logrotate
recipe = slapos.cookbook:logrotate
# Binaries
# Binaries
logrotate-binary =
${logrotate:location
}/usr/sbin/logrotate
logrotate-binary =
{{ logrotate_location }
}/usr/sbin/logrotate
gzip-binary =
${gzip:location
}/bin/gzip
gzip-binary =
{{ gzip_location }
}/bin/gzip
gunzip-binary =
${gzip:location
}/bin/gunzip
gunzip-binary =
{{ gzip_location }
}/bin/gunzip
# Directories
# Directories
wrapper = $
$
{rootdirectory:bin}/logrotate
wrapper = ${rootdirectory:bin}/logrotate
conf = $
$
{rootdirectory:etc}/logrotate.conf
conf = ${rootdirectory:etc}/logrotate.conf
logrotate-entries = $
$
{directory:logrotate-entries}
logrotate-entries = ${directory:logrotate-entries}
backup = $
$
{directory:logrotate-backup}
backup = ${directory:logrotate-backup}
state-file = $
$
{rootdirectory:srv}/logrotate.status
state-file = ${rootdirectory:srv}/logrotate.status
[basedirectory]
[basedirectory]
recipe = slapos.cookbook:mkdirectory
recipe = slapos.cookbook:mkdirectory
log = $
$
{rootdirectory:var}/log
log = ${rootdirectory:var}/log
services = $
$
{rootdirectory:etc}/run
services = ${rootdirectory:etc}/run
run = $
$
{rootdirectory:var}/run
run = ${rootdirectory:var}/run
backup = $
$
{rootdirectory:srv}/backup
backup = ${rootdirectory:srv}/backup
[directory]
[directory]
recipe = slapos.cookbook:mkdirectory
recipe = slapos.cookbook:mkdirectory
cron-entries = $
$
{rootdirectory:etc}/cron.d
cron-entries = ${rootdirectory:etc}/cron.d
crontabs = $
$
{rootdirectory:etc}/crontabs
crontabs = ${rootdirectory:etc}/crontabs
cronstamps = $
$
{rootdirectory:etc}/cronstamps
cronstamps = ${rootdirectory:etc}/cronstamps
logrotate-backup = $
$
{basedirectory:backup}/logrotate
logrotate-backup = ${basedirectory:backup}/logrotate
logrotate-entries = $
$
{rootdirectory:etc}/logrotate.d
logrotate-entries = ${rootdirectory:etc}/logrotate.d
kumofs-data = $
$
{rootdirectory:srv}/kumofs
kumofs-data = ${rootdirectory:srv}/kumofs
[rootdirectory]
[rootdirectory]
recipe = slapos.cookbook:mkdirectory
recipe = slapos.cookbook:mkdirectory
etc = $
$
{buildout:directory}/etc
etc = ${buildout:directory}/etc
var = $
$
{buildout:directory}/var
var = ${buildout:directory}/var
srv = $
$
{buildout:directory}/srv
srv = ${buildout:directory}/srv
bin = $
$
{buildout:directory}/bin
bin = ${buildout:directory}/bin
[cron]
[cron]
recipe = slapos.cookbook:cron
recipe = slapos.cookbook:cron
dcrond-binary =
${dcron:location
}/sbin/crond
dcrond-binary =
{{ dcron_location }
}/sbin/crond
cron-entries = $
$
{directory:cron-entries}
cron-entries = ${directory:cron-entries}
crontabs = $
$
{directory:crontabs}
crontabs = ${directory:crontabs}
cronstamps = $
$
{directory:cronstamps}
cronstamps = ${directory:cronstamps}
catcher = $
$
{cron-simplelogger:wrapper}
catcher = ${cron-simplelogger:wrapper}
binary = $
$
{basedirectory:services}/crond
binary = ${basedirectory:services}/crond
[cron-simplelogger]
[cron-simplelogger]
recipe = slapos.cookbook:simplelogger
recipe = slapos.cookbook:simplelogger
wrapper = $
$
{rootdirectory:bin}/cron_simplelogger
wrapper = ${rootdirectory:bin}/cron_simplelogger
log = $
$
{basedirectory:log}/cron.log
log = ${basedirectory:log}/cron.log
[cron-entry-logrotate]
[cron-entry-logrotate]
<= cron
<= cron
recipe = slapos.cookbook:cron.d
recipe = slapos.cookbook:cron.d
name = logrotate
name = logrotate
frequency = 0 0 * * *
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}
...
@@ -26,7 +26,7 @@ snippet-fontconfig = ${template-snippet-fontconfig:output}
recipe = slapos.cookbook:softwaretype
recipe = slapos.cookbook:softwaretype
default = ${template-erp5-development:rendered}
default = ${template-erp5-development:rendered}
production = ${template-erp5-production:rendered}
production = ${template-erp5-production:rendered}
kumofs = ${template-kumofs:
output
}
kumofs = ${template-kumofs:
rendered
}
memcached = ${template-memcached:rendered}
memcached = ${template-memcached:rendered}
cloudooo = $${dynamic-template-cloudooo:output}
cloudooo = $${dynamic-template-cloudooo:output}
zope = ${template-zope:rendered}
zope = ${template-zope:rendered}
...
...
software/erp5/software.cfg
View file @
9a54dee8
...
@@ -118,11 +118,15 @@ output = ${buildout:directory}/template-snippet-fontconfig.cfg
...
@@ -118,11 +118,15 @@ output = ${buildout:directory}/template-snippet-fontconfig.cfg
mode = 0644
mode = 0644
[template-kumofs]
[template-kumofs]
recipe = slapos.recipe.template
< = template-jinja2-base
url = ${:_profile_base_location_}/instance-kumofs.cfg
filename = instance-kumofs.cfg
md5sum = 9746823ccbbedf42b3e759c3e7150252
md5sum = 700ee7769c89e0959dc3f052e55ada6e
output = ${buildout:directory}/template-kumofs.cfg
extra-context =
mode = 0644
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]
[template]
recipe = slapos.recipe.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