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
Stephane VAROQUI
slapos
Commits
e1fa3b96
Commit
e1fa3b96
authored
Mar 06, 2012
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OCCI Instance is able to start accords
parent
d54cc6f0
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
16 deletions
+19
-16
component/occi/buildout.cfg
component/occi/buildout.cfg
+2
-2
slapos/recipe/occi/__init__.py
slapos/recipe/occi/__init__.py
+4
-5
stack/occi/buildout.cfg
stack/occi/buildout.cfg
+1
-0
stack/occi/instance-occi.cfg
stack/occi/instance-occi.cfg
+12
-9
No files found.
component/occi/buildout.cfg
View file @
e1fa3b96
...
...
@@ -17,7 +17,7 @@ url = http://git.gitorious.ow2.org/ow2-compatibleone/accords-platform.git
command =
(${git:location}/bin/git clone --quiet ${:url} ${:location} ) || (rm -fr ${:location} ; exit 1)
update-command =
cd ${:location} && ${git:location}/bin/git pull --quiet origin master
(cd ${:location} && ${git:location}/bin/git pull --quiet origin master)
[accords]
# Part of Compatible One project
...
...
slapos/recipe/occi/__init__.py
View file @
e1fa3b96
...
...
@@ -26,7 +26,7 @@
##############################################################################
import
os
from
slapos.recipe.librecipe
import
GenericBaseRecipe
f
or
m
subprocess
import
Popen
f
ro
m
subprocess
import
Popen
class
Recipe
(
GenericBaseRecipe
):
def
install
(
self
):
...
...
@@ -35,7 +35,6 @@ class Recipe(GenericBaseRecipe):
# Generate os-config.xml
os_config_parameters
=
dict
(
userid
=
self
.
options
[
'userid'
],
userid
=
self
.
options
[
'userid'
],
password
=
self
.
options
[
'password'
],
domain
=
self
.
options
[
'domain'
],
...
...
@@ -59,8 +58,8 @@ class Recipe(GenericBaseRecipe):
# Generate wrapper
# XXX create wrapper
path_list
.
append
(
self
.
createExecutable
(
self
.
options
[
'server-wrapper'
],
self
.
substituteTemplate
(
self
.
getTemplateFilename
(
'accords.in'
),
config
)))
#
path_list.append(self.createExecutable(self.options['server-wrapper'],
#
self.substituteTemplate(self.getTemplateFilename('accords.in'),
#
config)))
return
path_list
stack/occi/buildout.cfg
View file @
e1fa3b96
...
...
@@ -19,6 +19,7 @@ parts =
recipe = zc.recipe.egg
eggs =
${lxml-python:egg}
slapos.cookbook
# If we use only one software type in the future, delete duplication of template
[instance]
...
...
stack/occi/instance-occi.cfg
View file @
e1fa3b96
...
...
@@ -15,9 +15,12 @@ offline = true
recipe = slapos.cookbook:occi
# Options
userid = $${slap-parameter:userid}
password = $${slap-parameter:password}
domain = $${slap-parameter:domain}
userid = hardcode
password = hardcode
domain = hardcode
#userid = $${slap-parameter:userid}
#password = $${slap-parameter:password}
#domain = $${slap-parameter:domain}
os-config = $${pocdirectory:poc}/os-config.xml
# Paths
...
...
@@ -45,13 +48,13 @@ backup = $${rootdirectory:srv}/backup/
[pocdirectory]
recipe = slapos.cookbook:mkdirectory
poc = $${rootdirectory:
poc
}/poc
rest = $${
rootdirectory:poc}/poc
/rest
service = $${
rootdirectory:poc}/poc
/service
security = $${
rootdirectory:poc}/poc
/security
poc = $${rootdirectory:
srv
}/poc
rest = $${
pocdirectory:poc}
/rest
service = $${
pocdirectory:poc}
/service
security = $${
pocdirectory:poc}
/security
[copy-scripts]
recipe = slapos.cookbook:
symbolic.link
recipe = slapos.cookbook:
copyfilelist
target-directory = $${pocdirectory:poc}
file-list =
${accords-source:location}/scripts/accords
...
...
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