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
Sebastian
slapos
Commits
169bb319
Commit
169bb319
authored
Oct 31, 2012
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Experimental way to configure CO
parent
b4186836
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
slapos/recipe/accords/__init__.py
slapos/recipe/accords/__init__.py
+12
-6
No files found.
slapos/recipe/accords/__init__.py
View file @
169bb319
...
@@ -27,13 +27,14 @@
...
@@ -27,13 +27,14 @@
import
os
import
os
import
shutil
import
shutil
from
slapos.recipe.librecipe
import
GenericSlapRecipe
from
slapos.recipe.librecipe
import
GenericSlapRecipe
from
subprocess
import
Popen
import
shutil
import
subprocess
import
sys
import
sys
class
Recipe
(
GenericSlapRecipe
):
class
Recipe
(
GenericSlapRecipe
):
def
_install
(
self
):
def
_install
(
self
):
path_list
=
[]
path_list
=
[]
poc_location
=
self
.
buildout
[
'pocdirectory'
][
'poc
'
]
accords_location
=
self
.
buildout
[
'accordsdirectory'
][
'accords
'
]
parameter_dict
=
dict
(
parameter_dict
=
dict
(
userid
=
self
.
options
[
'userid'
],
userid
=
self
.
options
[
'userid'
],
...
@@ -41,7 +42,7 @@ class Recipe(GenericSlapRecipe):
...
@@ -41,7 +42,7 @@ class Recipe(GenericSlapRecipe):
domain
=
self
.
options
[
'domain'
],
domain
=
self
.
options
[
'domain'
],
openstack_url
=
self
.
options
[
'openstack_url'
],
openstack_url
=
self
.
options
[
'openstack_url'
],
python_location
=
sys
.
executable
,
python_location
=
sys
.
executable
,
poc_location
=
poc
_location
,
accords_location
=
accords
_location
,
manifest_name
=
self
.
options
[
'manifest-name'
],
manifest_name
=
self
.
options
[
'manifest-name'
],
# XXX this is workaround
# XXX this is workaround
accords_lib_directory
=
self
.
options
[
'accords_lib_directory'
],
accords_lib_directory
=
self
.
options
[
'accords_lib_directory'
],
...
@@ -70,10 +71,15 @@ class Recipe(GenericSlapRecipe):
...
@@ -70,10 +71,15 @@ class Recipe(GenericSlapRecipe):
accords_configuration_parameter_dict
))
accords_configuration_parameter_dict
))
path_list
.
append
(
accords_configuration_file_location
)
path_list
.
append
(
accords_configuration_file_location
)
# XXX is it dangerous?
security_path
=
os
.
path
.
join
(
accords_location
,
'security'
)
if
os
.
path
.
exists
(
security_path
):
shutil
.
rmtree
(
security_path
)
# Initiate configuration
# Initiate configuration
Popen
(
'./accords-config'
,
subprocess
.
check_call
(
'./accords-config'
,
cwd
=
poc
_location
cwd
=
accords
_location
)
.
communicate
()
)
# Generate manifest
# Generate manifest
manifest_origin_location
=
self
.
options
[
'manifest-source'
]
manifest_origin_location
=
self
.
options
[
'manifest-source'
]
...
...
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