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
Thomas Leymonerie
slapos
Commits
14fbcd92
Commit
14fbcd92
authored
Sep 11, 2013
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slaprunner: slapos.cfg is now deployed by a buildout section
(in order to kick the recipe)
parent
f5c3f092
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
94 additions
and
8 deletions
+94
-8
slapos/recipe/slaprunner/__init__.py
slapos/recipe/slaprunner/__init__.py
+4
-4
software/slaprunner/common.cfg
software/slaprunner/common.cfg
+16
-2
software/slaprunner/instance-runner.cfg
software/slaprunner/instance-runner.cfg
+32
-0
software/slaprunner/instance.cfg
software/slaprunner/instance.cfg
+1
-1
software/slaprunner/software.cfg
software/slaprunner/software.cfg
+1
-1
software/slaprunner/template/slapos.cfg.in.j2
software/slaprunner/template/slapos.cfg.in.j2
+40
-0
No files found.
slapos/recipe/slaprunner/__init__.py
View file @
14fbcd92
...
@@ -76,10 +76,10 @@ class Recipe(GenericBaseRecipe):
...
@@ -76,10 +76,10 @@ class Recipe(GenericBaseRecipe):
cloud9_url
=
self
.
cloud9_url
cloud9_url
=
self
.
cloud9_url
)
)
config_file
=
self
.
createFile
(
self
.
options
[
'slapos.cfg'
],
#
config_file = self.createFile(self.options['slapos.cfg'],
self
.
substituteTemplate
(
self
.
getTemplateFilename
(
'slapos.cfg.in'
),
#
self.substituteTemplate(self.getTemplateFilename('slapos.cfg.in'),
configuration
))
#
configuration))
path_list
.
append
(
config_file
)
config_file
=
configuration
[
'etc_dir'
]
+
'slapos.cfg'
environment
=
dict
(
environment
=
dict
(
PATH
=
os
.
path
.
dirname
(
PATH
=
os
.
path
.
dirname
(
...
...
software/slaprunner/common.cfg
View file @
14fbcd92
...
@@ -25,6 +25,11 @@ parts =
...
@@ -25,6 +25,11 @@ parts =
instance-runner-import
instance-runner-import
instance-runner-export
instance-runner-export
slapos-cookbook
slapos-cookbook
slapos-cfg-template
develop =
/opt/slapos.toolbox/
/opt/slaprunner/
# XXX: we have to manually add this for resilience
# XXX: we have to manually add this for resilience
rdiff-backup
rdiff-backup
...
@@ -76,14 +81,14 @@ command =
...
@@ -76,14 +81,14 @@ command =
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg
url = ${:_profile_base_location_}/instance.cfg
output = ${buildout:directory}/template.cfg
output = ${buildout:directory}/template.cfg
md5sum = 92a2f3bcd5ff79e3b61ca4a8bacb73ec
#
md5sum = 92a2f3bcd5ff79e3b61ca4a8bacb73ec
mode = 0644
mode = 0644
[template-runner]
[template-runner]
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 = bcd1ee4dd126d2c6e9461f7753fc83b7
#
md5sum = bcd1ee4dd126d2c6e9461f7753fc83b7
mode = 0644
mode = 0644
[instance-runner-import]
[instance-runner-import]
...
@@ -129,6 +134,15 @@ filename = launcher.in
...
@@ -129,6 +134,15 @@ filename = launcher.in
mode = 0644
mode = 0644
location = ${buildout:parts-directory}/${:_buildout_section_name_}
location = ${buildout:parts-directory}/${:_buildout_section_name_}
[slapos-cfg-template]
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/template/${:filename}
#md5sum =
location = ${buildout:parts-directory}/${:_buildout_section_name_}
filename = slapos.cfg.in.j2
download-only = true
mode = 0644
[eggs]
[eggs]
recipe = z3c.recipe.scripts
recipe = z3c.recipe.scripts
eggs =
eggs =
...
...
software/slaprunner/instance-runner.cfg
View file @
14fbcd92
...
@@ -21,6 +21,7 @@ parts =
...
@@ -21,6 +21,7 @@ parts =
request-cloud9-frontend
request-cloud9-frontend
node-frontend-promise
node-frontend-promise
nginx-promise
nginx-promise
slapos-cfg
eggs-directory = ${buildout:eggs-directory}
eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
...
@@ -394,3 +395,34 @@ debug = false
...
@@ -394,3 +395,34 @@ debug = false
cloud9-frontend-domain =
cloud9-frontend-domain =
frontend-domain =
frontend-domain =
[slapos-cfg]
recipe = slapos.recipe.template:jinja2
template = ${slapos-cfg-template:location}/${slapos-cfg-template:filename}
rendered = $${slaprunner:slapos.cfg}
mode = 700
supd-temp-var = $${slaprunner:instance-directory}/$${directory:etc}/supervisord.conf
prox-db-var = $${slaprunner:working-directory}/proxy.db
context =
key software_root runnerdirectory:software-root
key instance_root runnerdirectory:instance-root
key ipv4 slaprunner:ipv4
key proxy_port slaprunner:proxy_port
key partition_amount slaprunner:partition-amount
key slapgrid_sr slaprunner:slapgrid_sr
key slapgrid_cp slaprunner:slapgrid_cp
key slapproxy slaprunner:slapproxy
key supervisor slaprunner:supervisor
key supervisord_config slapos-cfg:supd-temp-var
key runner_workdir slaprunner:working-directory
key runner_port slaprunner:runner_port
key ipv6 slaprunner:ipv6
key etc_dir slaprunner:etc_dir
key proxy_host slaprunner:ipv4
key proxy_database slapos-cfg:prox-db-var
key ssh_client slaprunner:ssh_client
key public_key slaprunner:public_key
key private_key slaprunner:private_key
key git slaprunner:git-binary
key cloud9_url slaprunner:cloud9-url
key run_dir slaprunner:run_dir
key log_dir slaprunner:log_dir
software/slaprunner/instance.cfg
View file @
14fbcd92
software/slaprunner/software.cfg
View file @
14fbcd92
...
@@ -69,7 +69,7 @@ lock-file = 2.0
...
@@ -69,7 +69,7 @@ lock-file = 2.0
rdiff-backup = 1.0.5
rdiff-backup = 1.0.5
slapos.recipe.cmmi = 0.2
slapos.recipe.cmmi = 0.2
slapos.recipe.download = 1.0.dev-r4053
slapos.recipe.download = 1.0.dev-r4053
slapos.toolbox = 0.35.1
#
slapos.toolbox = 0.35.1
slapos.cookbook = 0.78.5
slapos.cookbook = 0.78.5
cliff = 1.4
cliff = 1.4
cmd2 = 0.6.6
cmd2 = 0.6.6
...
...
software/slaprunner/template/slapos.cfg.in.j2
0 → 100644
View file @
14fbcd92
[slapos]
software_root = {{software_root}}
instance_root = {{instance_root}}
master_url = http://{{ipv4}}:{{proxy_port}}
computer_id = slaprunner
maximal_delay = 0
[slapformat]
partition_amount = {{partition_amount}}
[slaprunner]
slapgrid_sr = {{slapgrid_sr}}
slapgrid_cp = {{slapgrid_cp}}
slapproxy = {{slapproxy}}
supervisor = {{supervisor}}
supervisord_config = {{supervisord_config}}
runner_workdir = {{runner_workdir}}
runner_host = {{ipv4}}
runner_port = {{runner_port}}
ipv4_address = {{ipv4}}
ipv6_address = {{ipv6}}
etc_dir = {{etc_dir}}
run_dir = {{run_dir}}
log_dir = {{log_dir}}
[slapproxy]
host = {{proxy_host}}
port = {{proxy_port}}
database_uri = {{proxy_database}}
[sshkeys_authority]
ssh_client = {{ssh_client}}
public_key = {{public_key}}
private_key = {{private_key}}
[gitclient]
git = {{git}}
[cloud9_IDE]
cloud9 = {{cloud9_url}}
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