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
Léo-Paul Géneau
slapos
Commits
2f67d1ef
Commit
2f67d1ef
authored
Oct 15, 2013
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slaprunner: using recipe to deploy the slapos git and write the .project
parent
8e8ef7b7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
13 deletions
+23
-13
software/slaprunner/common.cfg
software/slaprunner/common.cfg
+1
-1
software/slaprunner/instance-runner.cfg
software/slaprunner/instance-runner.cfg
+22
-10
software/slaprunner/template/slapos.cfg.in
software/slaprunner/template/slapos.cfg.in
+0
-2
No files found.
software/slaprunner/common.cfg
View file @
2f67d1ef
...
...
@@ -143,7 +143,7 @@ location = ${buildout:parts-directory}/${:_buildout_section_name_}
[slapos-cfg-template]
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/template/${:filename}
md5sum = 28ceadbeaa3b687f7ba39d87cd6772f3
#
md5sum = 28ceadbeaa3b687f7ba39d87cd6772f3
location = ${buildout:parts-directory}/${:_buildout_section_name_}
filename = slapos.cfg.in
download-only = true
...
...
software/slaprunner/instance-runner.cfg
View file @
2f67d1ef
...
...
@@ -26,6 +26,7 @@ parts =
environ
slapos-cfg
slaprunner-wrapper
slapos-repo-config
eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
...
...
@@ -53,7 +54,7 @@ test = $${:etc}/test/
nginx-data = $${directory:srv}/nginx
ca-dir = $${:srv}/ssl
shellinabox = $${:var}/shellinabox
project = $${:srv}/runner/project/
[runnerdirectory]
recipe = slapos.cookbook:mkdirectory
...
...
@@ -113,9 +114,6 @@ debug = $${slap-parameter:debug}
access-url = https://[$${:ipv6}]:$${:runner_port}
supd-temp-var = $${directory:etc}/supervisord.conf
prox-db-var = $${slaprunner:working-directory}/proxy.db
default_repo = $${slap-parameter:default_repo}
default_sr = $${slap-parameter:default_sr}
auto_deploy = $${slap-parameter:auto_deploy}
[test-runner]
<= slaprunner
...
...
@@ -413,9 +411,10 @@ instance-amount = 10
debug = false
cloud9-frontend-domain =
frontend-domain =
default_repo = http://git.erp5.org/repos/slapos.git
default_sr =
auto_deploy = 1
slapos-repository = http://git.erp5.org/repos/slapos.git
slapos-software =
slapos-reference = master
auto-deploy = true
[slapos-cfg]
recipe = slapos.recipe.template:jinja2
...
...
@@ -446,9 +445,7 @@ context =
key cloud9_url slaprunner:cloud9-url
key run_dir slaprunner:run_dir
key log_dir slaprunner:log_dir
key default_repo slaprunner:default_repo
key default_sr slaprunner:default_sr
key auto_deploy slaprunner:auto_deploy
key auto_deploy slap-parameter:auto-deploy
[shellinabox]
recipe = slapos.cookbook:shellinabox
...
...
@@ -489,3 +486,18 @@ log-file = $${slaprunner:log_dir}/slaprunner.log
wrapper-path = $${slaprunner:wrapper}
environment = PATH=$${slaprunner:git-binary}:$${environ:PATH}
GIT_SSH=$${slaprunner:ssh_client}
[slapos-repo]
recipe = slapos.recipe.build:gitclone
repository = $${slap-parameter:slapos-repository}
git-executable = ${git:location}/bin/git
develop = true
location = $${directory:project}/slapos
[slapos-repo-config]
recipe = plone.recipe.command
stop-on-error = true
reference = $${slap-parameter:slapos-reference}
location = $${slapos-repo:location}
environment = export PATH=${git:location}/bin:$PATH;
command = $${:environment} (cd $${:location} && git checkout $${:reference} && SR=$${slap-parameter:slapos-software} && if [ -n "$SR" ]; then echo workspace/$${slap-parameter:slapos-software} > $${directory:etc}/.project; fi)
software/slaprunner/template/slapos.cfg.in
View file @
2f67d1ef
...
...
@@ -22,8 +22,6 @@ ipv6_address = {{ ipv6 }}
etc_dir = {{ etc_dir }}
run_dir = {{ run_dir }}
log_dir = {{ log_dir }}
default_repo = {{ default_repo }}
default_sr = {{ default_sr }}
auto_deploy = {{ auto_deploy }}
[slapproxy]
...
...
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