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
Aurel
slapos
Commits
f1e88db4
Commit
f1e88db4
authored
Nov 09, 2012
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove references to 36000 *directory parts
parent
e0bdffc4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
42 deletions
+38
-42
software/slaprunner/instance-runner.cfg
software/slaprunner/instance-runner.cfg
+37
-41
software/slaprunner/software.cfg
software/slaprunner/software.cfg
+1
-1
No files found.
software/slaprunner/instance-runner.cfg
View file @
f1e88db4
...
@@ -20,32 +20,27 @@ offline = true
...
@@ -20,32 +20,27 @@ offline = true
# Create all needed directories
# Create all needed directories
[
root
directory]
[directory]
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/
[directory]
sshkeys = $${:srv}/sshkeys
recipe = slapos.cookbook:mkdirectory
services = $${:etc}/service/
sshkeys = $${rootdirectory:srv}/sshkeys
scripts = $${:etc}/run/
services = $${rootdirectory:etc}/service/
ssh = $${:etc}/ssh/
scripts = $${rootdirectory:etc}/run/
log = $${:var}/log/
ssh = $${rootdirectory:etc}/ssh/
run = $${:var}/run/
backup = $${:srv}/backup/
[basedirectory]
promises = $${:etc}/promise/
recipe = slapos.cookbook:mkdirectory
test = $${:etc}/test/
log = $${rootdirectory:var}/log/
run = $${rootdirectory:var}/run/
backup = $${rootdirectory:srv}/backup/
promises = $${rootdirectory:etc}/promise/
test = $${rootdirectory:etc}/test/
[runnerdirectory]
[runnerdirectory]
recipe = slapos.cookbook:mkdirectory
recipe = slapos.cookbook:mkdirectory
home = $${
root
directory:srv}/runner/
home = $${directory:srv}/runner/
test = $${
root
directory:srv}/test/
test = $${directory:srv}/test/
project = $${:home}/project
project = $${:home}/project
software-root = $${:home}/software
software-root = $${:home}/software
instance-root = $${:home}/instance
instance-root = $${:home}/instance
...
@@ -56,7 +51,7 @@ instance-test = $${:test}/instance
...
@@ -56,7 +51,7 @@ instance-test = $${:test}/instance
#Create password recovery code for slaprunner
#Create password recovery code for slaprunner
[recovery-code]
[recovery-code]
recipe = slapos.cookbook:generate.password
recipe = slapos.cookbook:generate.password
storage-path = $${
root
directory:etc}/.rcode
storage-path = $${directory:etc}/.rcode
bytes = 4
bytes = 4
# Deploy cloud9 and slaprunner
# Deploy cloud9 and slaprunner
...
@@ -64,7 +59,7 @@ bytes = 4
...
@@ -64,7 +59,7 @@ bytes = 4
recipe = slapos.cookbook:cloud9
recipe = slapos.cookbook:cloud9
ip = $${slap-network-information:global-ipv6}
ip = $${slap-network-information:global-ipv6}
port = 30000
port = 30000
wrapper = $${
base
directory:services}/cloud9
wrapper = $${directory:services}/cloud9
working-directory = $${runnerdirectory:home}
working-directory = $${runnerdirectory:home}
git-binary = ${git:location}/bin/git
git-binary = ${git:location}/bin/git
node-binary = ${nodejs:location}/bin/node
node-binary = ${nodejs:location}/bin/node
...
@@ -78,14 +73,14 @@ slapgrid_cp = ${buildout:directory}/bin/slapgrid-cp
...
@@ -78,14 +73,14 @@ slapgrid_cp = ${buildout:directory}/bin/slapgrid-cp
slapproxy = ${buildout:directory}/bin/slapproxy
slapproxy = ${buildout:directory}/bin/slapproxy
supervisor = ${buildout:directory}/bin/slapgrid-supervisorctl
supervisor = ${buildout:directory}/bin/slapgrid-supervisorctl
git-binary = ${git:location}/bin/git
git-binary = ${git:location}/bin/git
slapos.cfg = $${
root
directory:etc}/slapos.cfg
slapos.cfg = $${directory:etc}/slapos.cfg
working-directory = $${runnerdirectory:home}
working-directory = $${runnerdirectory:home}
project-directory = $${runnerdirectory:project}
project-directory = $${runnerdirectory:project}
software-directory = $${runnerdirectory:software-root}
software-directory = $${runnerdirectory:software-root}
instance-directory = $${runnerdirectory:instance-root}
instance-directory = $${runnerdirectory:instance-root}
etc_dir = $${
root
directory:etc}
etc_dir = $${directory:etc}
log_dir = $${
base
directory:log}
log_dir = $${directory:log}
run_dir = $${
base
directory:run}
run_dir = $${directory:run}
ssh_client = $${sshkeys-dropbear:wrapper}
ssh_client = $${sshkeys-dropbear:wrapper}
public_key = $${sshkeys-dropbear:public-key}
public_key = $${sshkeys-dropbear:public-key}
private_key = $${sshkeys-dropbear:private-key}
private_key = $${sshkeys-dropbear:private-key}
...
@@ -95,33 +90,34 @@ proxy_port = 50000
...
@@ -95,33 +90,34 @@ proxy_port = 50000
runner_port = 50000
runner_port = 50000
partition-amount = $${slap-parameter:instance-amount}
partition-amount = $${slap-parameter:instance-amount}
cloud9-url = $${cloud9:access-url}
cloud9-url = $${cloud9:access-url}
wrapper = $${
base
directory:services}/slaprunner
wrapper = $${directory:services}/slaprunner
debug = $${slap-parameter:debug}
debug = $${slap-parameter:debug}
# Deploy dropbear (minimalist ssh server)
[sshkeys-directory]
recipe = slapos.cookbook:mkdirectory
requests = $${directory:sshkeys}/requests/
keys = $${directory:sshkeys}/keys/
[test-runner]
[test-runner]
<= slaprunner
<= slaprunner
recipe = slapos.cookbook:slaprunner.test
recipe = slapos.cookbook:slaprunner.test
slaprunnertest = ${buildout:directory}/bin/slaprunnertest
slaprunnertest = ${buildout:directory}/bin/slaprunnertest
slapos.cfg = $${
root
directory:etc}/slapos-test.cfg
slapos.cfg = $${directory:etc}/slapos-test.cfg
working-directory = $${runnerdirectory:test}
working-directory = $${runnerdirectory:test}
project-directory = $${runnerdirectory:project-test}
project-directory = $${runnerdirectory:project-test}
software-directory = $${runnerdirectory:software-test}
software-directory = $${runnerdirectory:software-test}
instance-directory = $${runnerdirectory:instance-test}
instance-directory = $${runnerdirectory:instance-test}
proxy_port = 8602
proxy_port = 8602
wrapper = $${rootdirectory:bin}/runTestSuite
wrapper = $${directory:bin}/runTestSuite
etc_dir = $${basedirectory:test}
etc_dir = $${directory:test}
# Deploy dropbear (minimalist SSH server)
[sshkeys-directory]
recipe = slapos.cookbook:mkdirectory
requests = $${directory:sshkeys}/requests/
keys = $${directory:sshkeys}/keys/
[sshkeys-authority]
[sshkeys-authority]
recipe = slapos.cookbook:sshkeys_authority
recipe = slapos.cookbook:sshkeys_authority
request-directory = $${sshkeys-directory:requests}
request-directory = $${sshkeys-directory:requests}
keys-directory = $${sshkeys-directory:keys}
keys-directory = $${sshkeys-directory:keys}
wrapper = $${
base
directory:services}/sshkeys_authority
wrapper = $${directory:services}/sshkeys_authority
keygen-binary = ${dropbear:location}/bin/dropbearkey
keygen-binary = ${dropbear:location}/bin/dropbearkey
[dropbear-server]
[dropbear-server]
...
@@ -129,7 +125,7 @@ recipe = slapos.cookbook:dropbear
...
@@ -129,7 +125,7 @@ recipe = slapos.cookbook:dropbear
host = $${slap-network-information:global-ipv6}
host = $${slap-network-information:global-ipv6}
port = 2222
port = 2222
home = $${directory:ssh}
home = $${directory:ssh}
wrapper = $${
root
directory:bin}/raw_sshd
wrapper = $${directory:bin}/raw_sshd
shell = /bin/bash
shell = /bin/bash
rsa-keyfile = $${directory:ssh}/server_key.rsa
rsa-keyfile = $${directory:ssh}/server_key.rsa
dropbear-binary = ${dropbear:location}/sbin/dropbear
dropbear-binary = ${dropbear:location}/sbin/dropbear
...
@@ -142,7 +138,7 @@ type = rsa
...
@@ -142,7 +138,7 @@ type = rsa
executable = $${dropbear-server:wrapper}
executable = $${dropbear-server:wrapper}
public-key = $${dropbear-server:rsa-keyfile}.pub
public-key = $${dropbear-server:rsa-keyfile}.pub
private-key = $${dropbear-server:rsa-keyfile}
private-key = $${dropbear-server:rsa-keyfile}
wrapper = $${
base
directory:services}/sshd
wrapper = $${directory:services}/sshd
[dropbear-server-add-authorized-key]
[dropbear-server-add-authorized-key]
<= dropbear-server
<= dropbear-server
...
@@ -176,33 +172,33 @@ password_recovery_code = $${recovery-code:passwd}
...
@@ -176,33 +172,33 @@ password_recovery_code = $${recovery-code:passwd}
# Deploy promises scripts
# Deploy promises scripts
[slaprunner-promise]
[slaprunner-promise]
recipe = slapos.cookbook:check_port_listening
recipe = slapos.cookbook:check_port_listening
path = $${
base
directory:promises}/slaprunner
path = $${directory:promises}/slaprunner
hostname = $${slaprunner:ipv6}
hostname = $${slaprunner:ipv6}
port = $${slaprunner:runner_port}
port = $${slaprunner:runner_port}
[slaprunner-frontend-promise]
[slaprunner-frontend-promise]
recipe = slapos.cookbook:check_url_available
recipe = slapos.cookbook:check_url_available
path = $${
base
directory:promises}/slaprunner_frontend
path = $${directory:promises}/slaprunner_frontend
url = $${request-frontend:connection-site_url}
url = $${request-frontend:connection-site_url}
dash_path = ${dash:location}/bin/dash
dash_path = ${dash:location}/bin/dash
curl_path = ${curl:location}/bin/curl
curl_path = ${curl:location}/bin/curl
[cloud9-promise]
[cloud9-promise]
recipe = slapos.cookbook:check_url_available
recipe = slapos.cookbook:check_url_available
path = $${
base
directory:promises}/cloud9
path = $${directory:promises}/cloud9
url = http://$${cloud9:ip}:$${cloud9:port}
url = http://$${cloud9:ip}:$${cloud9:port}
dash_path = ${dash:location}/bin/dash
dash_path = ${dash:location}/bin/dash
curl_path = ${curl:location}/bin/curl
curl_path = ${curl:location}/bin/curl
[dropbear-promise]
[dropbear-promise]
recipe = slapos.cookbook:check_port_listening
recipe = slapos.cookbook:check_port_listening
path = $${
base
directory:promises}/dropbear
path = $${directory:promises}/dropbear
hostname = $${dropbear-server:host}
hostname = $${dropbear-server:host}
port = $${dropbear-server:port}
port = $${dropbear-server:port}
[symlinks]
[symlinks]
recipe = cns.recipe.symlink
recipe = cns.recipe.symlink
symlink_target = $${
root
directory:bin}
symlink_target = $${directory:bin}
symlink_base = ${buildout:directory}/bin
symlink_base = ${buildout:directory}/bin
[slap-parameter]
[slap-parameter]
...
...
software/slaprunner/software.cfg
View file @
f1e88db4
...
@@ -25,7 +25,7 @@ md5sum = 5307e4200f044ae57b504ad68444491c
...
@@ -25,7 +25,7 @@ md5sum = 5307e4200f044ae57b504ad68444491c
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-runner.cfg
url = ${:_profile_base_location_}/instance-runner.cfg
output = ${buildout:directory}/template-runner.cfg
output = ${buildout:directory}/template-runner.cfg
md5sum =
27c4ed33cd5c0a422f11e03e0821c3e7
md5sum =
38fbe93425a745728afcafbdce89f101
mode = 0644
mode = 0644
[eggs]
[eggs]
...
...
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