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
Tom Niget
slapos
Commits
ec820647
Commit
ec820647
authored
Oct 23, 2012
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove parameters that are not needed any more
parent
212065a9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
33 deletions
+0
-33
slapos/recipe/erp5testnode/__init__.py
slapos/recipe/erp5testnode/__init__.py
+0
-29
slapos/recipe/erp5testnode/template/erp5testnode.cfg.in
slapos/recipe/erp5testnode/template/erp5testnode.cfg.in
+0
-4
No files found.
slapos/recipe/erp5testnode/__init__.py
View file @
ec820647
...
@@ -39,14 +39,6 @@ class Recipe(GenericBaseRecipe):
...
@@ -39,14 +39,6 @@ class Recipe(GenericBaseRecipe):
CONFIG
=
{
k
.
replace
(
'-'
,
'_'
):
v
for
k
,
v
in
options
.
iteritems
()}
CONFIG
=
{
k
.
replace
(
'-'
,
'_'
):
v
for
k
,
v
in
options
.
iteritems
()}
CONFIG
[
'PATH'
]
=
os
.
environ
[
'PATH'
]
CONFIG
[
'PATH'
]
=
os
.
environ
[
'PATH'
]
if
CONFIG
[
'bt5_path'
]:
additional_bt5_repository_id_list
=
CONFIG
[
'bt5_path'
].
split
(
","
)
CONFIG
[
'bt5_path'
]
=
''
for
bt5_repository_id
in
additional_bt5_repository_id_list
:
id_path
=
os
.
path
.
join
(
CONFIG
[
'slapos_directory'
],
bt5_repository_id
)
bt_path
=
os
.
path
.
join
(
id_path
,
"bt5"
)
CONFIG
[
'bt5_path'
]
+=
"%s,%s,"
%
(
id_path
,
bt_path
)
if
self
.
options
[
'instance-dict'
]:
if
self
.
options
[
'instance-dict'
]:
config_instance_dict
=
ConfigParser
.
ConfigParser
()
config_instance_dict
=
ConfigParser
.
ConfigParser
()
config_instance_dict
.
add_section
(
'instance_dict'
)
config_instance_dict
.
add_section
(
'instance_dict'
)
...
@@ -58,33 +50,12 @@ class Recipe(GenericBaseRecipe):
...
@@ -58,33 +50,12 @@ class Recipe(GenericBaseRecipe):
config_instance_dict
.
write
(
value
)
config_instance_dict
.
write
(
value
)
CONFIG
[
'instance_dict'
]
=
value
.
getvalue
()
CONFIG
[
'instance_dict'
]
=
value
.
getvalue
()
vcs_repository_list
=
json
.
loads
(
self
.
options
[
'vcs-repository-list'
])
config_repository_list
=
ConfigParser
.
ConfigParser
()
i
=
0
for
repository
in
vcs_repository_list
:
section_name
=
'vcs_repository_%d'
%
i
config_repository_list
.
add_section
(
section_name
)
config_repository_list
.
set
(
section_name
,
'url'
,
repository
[
'url'
])
if
'branch'
in
repository
:
config_repository_list
.
set
(
section_name
,
'branch'
,
repository
[
'branch'
])
if
'profile_path'
in
repository
:
config_repository_list
.
set
(
section_name
,
'profile_path'
,
repository
[
'profile_path'
])
if
'buildout_section_id'
in
repository
:
config_repository_list
.
set
(
section_name
,
'buildout_section_id'
,
repository
[
'buildout_section_id'
])
i
+=
1
software_path_list
=
json
.
loads
(
self
.
options
[
'software-path-list'
])
software_path_list
=
json
.
loads
(
self
.
options
[
'software-path-list'
])
if
software_path_list
:
if
software_path_list
:
CONFIG
[
"software_path_list"
]
=
"[software_list]"
CONFIG
[
"software_path_list"
]
=
"[software_list]"
CONFIG
[
"software_path_list"
]
+=
\
CONFIG
[
"software_path_list"
]
+=
\
"
\
n
path_list = %s"
%
","
.
join
(
software_path_list
)
"
\
n
path_list = %s"
%
","
.
join
(
software_path_list
)
value
=
StringIO
.
StringIO
()
config_repository_list
.
write
(
value
)
CONFIG
[
'repository_list'
]
=
value
.
getvalue
()
configuration_file
=
self
.
createFile
(
configuration_file
=
self
.
createFile
(
self
.
options
[
'configuration-file'
],
self
.
options
[
'configuration-file'
],
self
.
substituteTemplate
(
self
.
substituteTemplate
(
...
...
slapos/recipe/erp5testnode/template/erp5testnode.cfg.in
View file @
ec820647
...
@@ -6,15 +6,11 @@ log_directory = %(log_directory)s
...
@@ -6,15 +6,11 @@ log_directory = %(log_directory)s
run_directory = %(run_directory)s
run_directory = %(run_directory)s
proxy_host = %(proxy_host)s
proxy_host = %(proxy_host)s
proxy_port = %(proxy_port)s
proxy_port = %(proxy_port)s
test_suite_title = %(test_suite_title)s
test_suite = %(test_suite)s
node_quantity = %(node_quantity)s
node_quantity = %(node_quantity)s
test_node_title = %(test_node_title)s
test_node_title = %(test_node_title)s
project_title= %(project_title)s
ipv4_address = %(ipv4_address)s
ipv4_address = %(ipv4_address)s
ipv6_address = %(ipv6_address)s
ipv6_address = %(ipv6_address)s
test_suite_master_url = %(test_suite_master_url)s
test_suite_master_url = %(test_suite_master_url)s
bt5_path = %(bt5_path)s
# Binaries
# Binaries
git_binary = %(git_binary)s
git_binary = %(git_binary)s
...
...
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