Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
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
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
slapos
Commits
b6cf9b17
Commit
b6cf9b17
authored
Jun 25, 2021
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/erp5testnode: Use switch-softwaretype
Replace `softwaretype` recipe with `switch-softwaretype`
parent
d22cc3fe
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
27 deletions
+54
-27
software/erp5testnode/buildout.hash.cfg
software/erp5testnode/buildout.hash.cfg
+3
-3
software/erp5testnode/instance-default.cfg.jinja.in
software/erp5testnode/instance-default.cfg.jinja.in
+18
-19
software/erp5testnode/instance.cfg
software/erp5testnode/instance.cfg
+30
-2
software/erp5testnode/software.cfg
software/erp5testnode/software.cfg
+3
-3
No files found.
software/erp5testnode/buildout.hash.cfg
View file @
b6cf9b17
...
@@ -14,8 +14,8 @@
...
@@ -14,8 +14,8 @@
# not need these here).
# not need these here).
[template]
[template]
filename = instance.cfg
filename = instance.cfg
md5sum =
307663d73ef3ef94b02567ecd322252e
md5sum =
d9c7c3acb975d44c6c66ca32c550ac58
[template-default]
[template-default]
filename = instance-default.cfg
filename = instance-default.cfg
.jinja.in
md5sum =
24cc143b1886d443a4c29dcb8147a01c
md5sum =
f1b25694db5d446c3df03a85478ccdfb
software/erp5testnode/instance-default.cfg
→
software/erp5testnode/instance-default.cfg
.jinja.in
View file @
b6cf9b17
[buildout]
{%- set slapparameter_dict = dict(default_parameter_dict, **slapparameter_dict) -%}
[buildout]
eggs-directory = ${buildout:eggs-directory}
eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
...
@@ -35,20 +37,24 @@ slapos-directory = $${directory:slapos}
...
@@ -35,20 +37,24 @@ slapos-directory = $${directory:slapos}
working-directory = $${directory:testnode}
working-directory = $${directory:testnode}
test-suite-directory = $${directory:test-suite}
test-suite-directory = $${directory:test-suite}
shared-part-list = $${directory:shared}
shared-part-list = $${directory:shared}
proxy-host =
$${slap-network-information:local-ipv4
}
proxy-host =
{{ partition_ipv4 }
}
proxy-port = 5000
proxy-port = 5000
log-directory = $${directory:log}
log-directory = $${directory:log}
srv-directory = $${rootdirectory:srv}
srv-directory = $${rootdirectory:srv}
software-directory = $${directory:software}
software-directory = $${directory:software}
run-directory = $${directory:run}
run-directory = $${directory:run}
test-node-title = $${slap-parameter:test-node-title}
test-node-title = {{ slapparameter_dict['test-node-title'] }}
node-quantity = $${slap-parameter:node-quantity}
node-quantity = {{ slapparameter_dict['node-quantity'] }}
ipv4-address = $${slap-network-information:local-ipv4}
ipv4-address = {{ partition_ipv4 }}
ipv6-address = $${slap-network-information:global-ipv6}
ipv6-address = {{ partition_ipv6 }}
test-suite-master-url = $${slap-parameter:test-suite-master-url}
test-suite-master-url = {{ slapparameter_dict['test-suite-master-url'] }}
instance-dict = $${slap-parameter:instance-dict}
instance-dict = {{ slapparameter_dict['instance-dict'] }}
software-path-list = $${slap-parameter:software-path-list}
{%- if isinstance(slapparameter_dict['software-path-list'], str) %}
keep-log-days = $${slap-parameter:keep-log-days}
software-path-list = {{ slapparameter_dict['software-path-list'] }}
{%- else %}
software-path-list = {{ json.dumps(slapparameter_dict['software-path-list']) }}
{%- endif %}
keep-log-days = {{ slapparameter_dict['keep-log-days'] }}
git-binary = ${git:location}/bin/git
git-binary = ${git:location}/bin/git
slapos-binary = ${buildout:bin-directory}/slapos
slapos-binary = ${buildout:bin-directory}/slapos
testnode = ${buildout:bin-directory}/testnode
testnode = ${buildout:bin-directory}/testnode
...
@@ -59,7 +65,7 @@ httpd-conf-file = $${rootdirectory:etc}/httpd.conf
...
@@ -59,7 +65,7 @@ httpd-conf-file = $${rootdirectory:etc}/httpd.conf
httpd-wrapper = $${rootdirectory:bin}/httpd
httpd-wrapper = $${rootdirectory:bin}/httpd
httpd-port = 9080
httpd-port = 9080
httpd-software-access-port = 9081
httpd-software-access-port = 9081
httpd-ip =
$${slap-network-information:global-ipv6
}
httpd-ip =
{{ partition_ipv6 }
}
httpd-log-directory = $${basedirectory:log}
httpd-log-directory = $${basedirectory:log}
httpd-software-directory = $${directory:software}
httpd-software-directory = $${directory:software}
httpd-cert-file = $${rootdirectory:etc}/httpd-public.crt
httpd-cert-file = $${rootdirectory:etc}/httpd-public.crt
...
@@ -117,7 +123,7 @@ template = inline:
...
@@ -117,7 +123,7 @@ template = inline:
/
/
}
}
}
}
ipv6 =
$${slap-network-information:global-ipv6
}
ipv6 =
{{ partition_ipv6 }
}
hostname = [$${:ipv6}]
hostname = [$${:ipv6}]
port = 8080
port = 8080
username = testnode
username = testnode
...
@@ -253,10 +259,3 @@ config-port = $${shellinabox-frontend:port}
...
@@ -253,10 +259,3 @@ config-port = $${shellinabox-frontend:port}
module = check_url_available
module = check_url_available
name = $${:_buildout_section_name_}.py
name = $${:_buildout_section_name_}.py
config-url = $${testnode-log-frontend:connection-secure_access}
config-url = $${testnode-log-frontend:connection-secure_access}
[slap-parameter]
node-quantity = 1
test-suite-master-url =
instance-dict =
software-path-list = ["https://lab.nexedi.com/nexedi/slapos/raw/1.0.181/software/seleniumrunner/software.cfg"]
keep-log-days = 15
software/erp5testnode/instance.cfg
View file @
b6cf9b17
...
@@ -6,6 +6,34 @@ eggs-directory = ${buildout:eggs-directory}
...
@@ -6,6 +6,34 @@ eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true
offline = true
[slap-configuration]
recipe = slapos.cookbook:slapconfiguration
computer = $${slap-connection:computer-id}
partition = $${slap-connection:partition-id}
url = $${slap-connection:server-url}
key = $${slap-connection:key-file}
cert = $${slap-connection:cert-file}
[switch_softwaretype]
[switch_softwaretype]
recipe = slapos.cookbook:softwaretype
recipe = slapos.cookbook:switch-softwaretype
default = ${template-default:output}
RootSoftwareInstance = $${:default}
default = instance-default:rendered
[instance-default]
recipe = slapos.recipe.template:jinja2
template = ${template-default:output}
rendered = $${buildout:directory}/instance-default.cfg
context =
import json json
jsonkey default_parameter_dict :default-parameters
key slapparameter_dict slap-configuration:configuration
key partition_ipv6 slap-configuration:ipv6-random
key partition_ipv4 slap-configuration:ipv4-random
default-parameters =
{
"node-quantity": 1,
"test-suite-master-url": "",
"instance-dict": "",
"software-path-list": ["https://lab.nexedi.com/nexedi/slapos/raw/1.0.181/software/seleniumrunner/software.cfg"],
"keep-log-days": 15
}
software/erp5testnode/software.cfg
View file @
b6cf9b17
...
@@ -31,14 +31,14 @@ eggs =
...
@@ -31,14 +31,14 @@ eggs =
[template]
[template]
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/
instance.cfg
url = ${:_profile_base_location_}/
${:filename}
output = ${buildout:directory}/template.cfg
output = ${buildout:directory}/template.cfg
mode = 0644
mode = 0644
[template-default]
[template-default]
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/
instance-default.cfg
url = ${:_profile_base_location_}/
${:filename}
output = ${buildout:directory}/template-default.cfg
output = ${buildout:directory}/template-default.cfg
.jinja
mode = 0644
mode = 0644
[versions]
[versions]
...
...
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