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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Klaus Wölfel
slapos
Commits
fe00a40e
Commit
fe00a40e
authored
Oct 09, 2012
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use frontend url instead of ipv6 url for boinc server
parent
730f737e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
16 deletions
+11
-16
slapos/recipe/boinc/__init__.py
slapos/recipe/boinc/__init__.py
+3
-5
software/boinc/software.cfg
software/boinc/software.cfg
+2
-5
stack/boinc/buildout.cfg
stack/boinc/buildout.cfg
+3
-3
stack/boinc/instance-boinc.cfg
stack/boinc/instance-boinc.cfg
+3
-3
No files found.
slapos/recipe/boinc/__init__.py
View file @
fe00a40e
...
...
@@ -37,7 +37,7 @@ class Recipe(GenericBaseRecipe):
#get current slapuser name
stat_info
=
os
.
stat
(
options
[
'home'
].
strip
())
options
[
'user'
]
=
pwd
.
getpwuid
(
stat_info
.
st_uid
)[
0
]
url_base
=
"http://["
+
options
[
'ip'
]
+
"]:"
+
options
[
'port
'
]
url_base
=
options
[
'url-base
'
]
project
=
options
[
'project'
].
strip
()
root
=
options
[
'installroot'
].
strip
()
options
[
'home_page'
]
=
url_base
+
"/"
+
project
...
...
@@ -65,8 +65,7 @@ class Recipe(GenericBaseRecipe):
self
.
pythonbin
=
options
[
'python-binary'
].
strip
()
#Apache php informations
self
.
ipv6
=
options
[
'ip'
].
strip
()
self
.
port
=
options
[
'port'
].
strip
()
self
.
url_base
=
options
[
'url-base'
].
strip
()
self
.
htpasswd
=
options
[
'htpasswd'
].
strip
()
self
.
phpini
=
options
[
'php-ini'
].
strip
()
self
.
phpbin
=
options
[
'php-bin'
].
strip
()
...
...
@@ -99,7 +98,6 @@ class Recipe(GenericBaseRecipe):
path_list
=
[]
make_project
=
os
.
path
.
join
(
self
.
package
,
'bin/make_project'
)
niceprojectname
=
self
.
project
+
"@Home"
url_base
=
"http://["
+
self
.
ipv6
+
"]:"
+
self
.
port
slapuser
=
self
.
options
[
'user'
]
#Define environment variable here
...
...
@@ -141,7 +139,7 @@ class Recipe(GenericBaseRecipe):
# Generate make project wrapper file
readme_file
=
os
.
path
.
join
(
self
.
installroot
,
self
.
project
+
'.readme'
)
launch_args
=
[
make_project
,
'--url_base'
,
url_base
,
"--db_name"
,
launch_args
=
[
make_project
,
'--url_base'
,
self
.
url_base
,
"--db_name"
,
self
.
database
,
"--db_user"
,
self
.
username
,
"--db_passwd"
,
self
.
password
,
"--project_root"
,
self
.
installroot
,
"--db_host"
,
self
.
mysqlhost
,
"--user_name"
,
slapuser
,
"--srcdir"
,
...
...
software/boinc/software.cfg
View file @
fe00a40e
[buildout]
develop =
/srv/slapgrid/slappart19/srv//runner/project/slapos.github
parts =
boinc-instance
template
...
...
@@ -12,8 +9,8 @@ parts =
template_input
slapos-cookbook
instance-egg
#
slapos.cookbook-repository
#
check-recipe
slapos.cookbook-repository
check-recipe
extends =
../../stack/boinc/buildout.cfg
...
...
stack/boinc/buildout.cfg
View file @
fe00a40e
[buildout]
# Local development
#
develop =
#
${:parts-directory}/slapos.cookbook-repository
develop =
${:parts-directory}/slapos.cookbook-repository
parts =
slapos-cookbook
...
...
@@ -41,7 +41,7 @@ eggs =
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-boinc.cfg
output = ${buildout:directory}/template-boinc.cfg
md5sum =
6746390ac3e19a8b1b933e0722084675
md5sum =
a034940505756139e5aeacd5d8e17fbc
mode = 0644
#Template for deploying MySQL Database Server
...
...
stack/boinc/instance-boinc.cfg
View file @
fe00a40e
...
...
@@ -150,7 +150,7 @@ lock-file = $${basedirectory:run}/apache.lock
error-log = $${directory:httpd-log}/error.log
access-log = $${directory:httpd-log}/access.log
wrapper = $${basedirectory:services}/apache
ip
= $${httpd-conf:ip}
url-base
= $${httpd-conf:ip}
port = $${httpd-conf:port}
url = http://[$${:ip}]:$${:port}/
httpd-binary = ${apache:location}/bin/httpd
...
...
@@ -182,6 +182,8 @@ bytes = 4
recipe = slapos.cookbook:boinc
home = $${buildout:directory}
project = $${slap-parameter:project}
#http://[$${apache-php:ip}]:$${apache-php:port}/
url-base = $${request-frontend:connection-site_url}
fullname = $${slap-parameter:full-name}
copyright = $${slap-parameter:copyright-holder}
boinc = ${boinc:location}
...
...
@@ -199,8 +201,6 @@ python-binary = ${buildout:executable}
dash = ${dash:location}/bin/dash
#Apache and php
ip = $${apache-php:ip}
port = $${apache-php:port}
htpasswd = ${apache:location}/bin/htpasswd
apache-pid = $${httpd-conf:pid_file}
php-ini = $${apache-php:php-ini-dir}/php.ini
...
...
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