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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rafael Monnerat
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):
...
@@ -37,7 +37,7 @@ class Recipe(GenericBaseRecipe):
#get current slapuser name
#get current slapuser name
stat_info
=
os
.
stat
(
options
[
'home'
].
strip
())
stat_info
=
os
.
stat
(
options
[
'home'
].
strip
())
options
[
'user'
]
=
pwd
.
getpwuid
(
stat_info
.
st_uid
)[
0
]
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
()
project
=
options
[
'project'
].
strip
()
root
=
options
[
'installroot'
].
strip
()
root
=
options
[
'installroot'
].
strip
()
options
[
'home_page'
]
=
url_base
+
"/"
+
project
options
[
'home_page'
]
=
url_base
+
"/"
+
project
...
@@ -65,8 +65,7 @@ class Recipe(GenericBaseRecipe):
...
@@ -65,8 +65,7 @@ class Recipe(GenericBaseRecipe):
self
.
pythonbin
=
options
[
'python-binary'
].
strip
()
self
.
pythonbin
=
options
[
'python-binary'
].
strip
()
#Apache php informations
#Apache php informations
self
.
ipv6
=
options
[
'ip'
].
strip
()
self
.
url_base
=
options
[
'url-base'
].
strip
()
self
.
port
=
options
[
'port'
].
strip
()
self
.
htpasswd
=
options
[
'htpasswd'
].
strip
()
self
.
htpasswd
=
options
[
'htpasswd'
].
strip
()
self
.
phpini
=
options
[
'php-ini'
].
strip
()
self
.
phpini
=
options
[
'php-ini'
].
strip
()
self
.
phpbin
=
options
[
'php-bin'
].
strip
()
self
.
phpbin
=
options
[
'php-bin'
].
strip
()
...
@@ -99,7 +98,6 @@ class Recipe(GenericBaseRecipe):
...
@@ -99,7 +98,6 @@ class Recipe(GenericBaseRecipe):
path_list
=
[]
path_list
=
[]
make_project
=
os
.
path
.
join
(
self
.
package
,
'bin/make_project'
)
make_project
=
os
.
path
.
join
(
self
.
package
,
'bin/make_project'
)
niceprojectname
=
self
.
project
+
"@Home"
niceprojectname
=
self
.
project
+
"@Home"
url_base
=
"http://["
+
self
.
ipv6
+
"]:"
+
self
.
port
slapuser
=
self
.
options
[
'user'
]
slapuser
=
self
.
options
[
'user'
]
#Define environment variable here
#Define environment variable here
...
@@ -141,7 +139,7 @@ class Recipe(GenericBaseRecipe):
...
@@ -141,7 +139,7 @@ class Recipe(GenericBaseRecipe):
# Generate make project wrapper file
# Generate make project wrapper file
readme_file
=
os
.
path
.
join
(
self
.
installroot
,
self
.
project
+
'.readme'
)
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
.
database
,
"--db_user"
,
self
.
username
,
"--db_passwd"
,
self
.
password
,
"--project_root"
,
self
.
installroot
,
"--db_host"
,
self
.
password
,
"--project_root"
,
self
.
installroot
,
"--db_host"
,
self
.
mysqlhost
,
"--user_name"
,
slapuser
,
"--srcdir"
,
self
.
mysqlhost
,
"--user_name"
,
slapuser
,
"--srcdir"
,
...
...
software/boinc/software.cfg
View file @
fe00a40e
[buildout]
[buildout]
develop =
/srv/slapgrid/slappart19/srv//runner/project/slapos.github
parts =
parts =
boinc-instance
boinc-instance
template
template
...
@@ -12,8 +9,8 @@ parts =
...
@@ -12,8 +9,8 @@ parts =
template_input
template_input
slapos-cookbook
slapos-cookbook
instance-egg
instance-egg
#
slapos.cookbook-repository
slapos.cookbook-repository
#
check-recipe
check-recipe
extends =
extends =
../../stack/boinc/buildout.cfg
../../stack/boinc/buildout.cfg
...
...
stack/boinc/buildout.cfg
View file @
fe00a40e
[buildout]
[buildout]
# Local development
# Local development
#
develop =
develop =
#
${:parts-directory}/slapos.cookbook-repository
${:parts-directory}/slapos.cookbook-repository
parts =
parts =
slapos-cookbook
slapos-cookbook
...
@@ -41,7 +41,7 @@ eggs =
...
@@ -41,7 +41,7 @@ eggs =
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-boinc.cfg
url = ${:_profile_base_location_}/instance-boinc.cfg
output = ${buildout:directory}/template-boinc.cfg
output = ${buildout:directory}/template-boinc.cfg
md5sum =
6746390ac3e19a8b1b933e0722084675
md5sum =
a034940505756139e5aeacd5d8e17fbc
mode = 0644
mode = 0644
#Template for deploying MySQL Database Server
#Template for deploying MySQL Database Server
...
...
stack/boinc/instance-boinc.cfg
View file @
fe00a40e
...
@@ -150,7 +150,7 @@ lock-file = $${basedirectory:run}/apache.lock
...
@@ -150,7 +150,7 @@ lock-file = $${basedirectory:run}/apache.lock
error-log = $${directory:httpd-log}/error.log
error-log = $${directory:httpd-log}/error.log
access-log = $${directory:httpd-log}/access.log
access-log = $${directory:httpd-log}/access.log
wrapper = $${basedirectory:services}/apache
wrapper = $${basedirectory:services}/apache
ip
= $${httpd-conf:ip}
url-base
= $${httpd-conf:ip}
port = $${httpd-conf:port}
port = $${httpd-conf:port}
url = http://[$${:ip}]:$${:port}/
url = http://[$${:ip}]:$${:port}/
httpd-binary = ${apache:location}/bin/httpd
httpd-binary = ${apache:location}/bin/httpd
...
@@ -182,6 +182,8 @@ bytes = 4
...
@@ -182,6 +182,8 @@ bytes = 4
recipe = slapos.cookbook:boinc
recipe = slapos.cookbook:boinc
home = $${buildout:directory}
home = $${buildout:directory}
project = $${slap-parameter:project}
project = $${slap-parameter:project}
#http://[$${apache-php:ip}]:$${apache-php:port}/
url-base = $${request-frontend:connection-site_url}
fullname = $${slap-parameter:full-name}
fullname = $${slap-parameter:full-name}
copyright = $${slap-parameter:copyright-holder}
copyright = $${slap-parameter:copyright-holder}
boinc = ${boinc:location}
boinc = ${boinc:location}
...
@@ -199,8 +201,6 @@ python-binary = ${buildout:executable}
...
@@ -199,8 +201,6 @@ python-binary = ${buildout:executable}
dash = ${dash:location}/bin/dash
dash = ${dash:location}/bin/dash
#Apache and php
#Apache and php
ip = $${apache-php:ip}
port = $${apache-php:port}
htpasswd = ${apache:location}/bin/htpasswd
htpasswd = ${apache:location}/bin/htpasswd
apache-pid = $${httpd-conf:pid_file}
apache-pid = $${httpd-conf:pid_file}
php-ini = $${apache-php:php-ini-dir}/php.ini
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