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
Aurel
slapos
Commits
a80a8be2
Commit
a80a8be2
authored
Mar 09, 2012
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for specific IP
parent
1811622b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
252 deletions
+48
-252
slapos/recipe/occi/__init__.py
slapos/recipe/occi/__init__.py
+11
-3
slapos/recipe/occi/template/accords.ini.in
slapos/recipe/occi/template/accords.ini.in
+35
-0
slapos/recipe/occi/template/accords.xml.in
slapos/recipe/occi/template/accords.xml.in
+0
-249
stack/occi/instance-occi.cfg
stack/occi/instance-occi.cfg
+2
-0
No files found.
slapos/recipe/occi/__init__.py
View file @
a80a8be2
...
...
@@ -35,18 +35,25 @@ class Recipe(GenericBaseRecipe):
poc_location
=
self
.
buildout
[
'pocdirectory'
][
'poc'
]
# Generate os-config.xml
os_config
_parameters
=
dict
(
os_config
uration_parameter_dict
=
dict
(
userid
=
self
.
options
[
'userid'
],
password
=
self
.
options
[
'password'
],
domain
=
self
.
options
[
'domain'
],
)
os_config_file
=
self
.
createFile
(
self
.
options
[
'os-config'
],
self
.
substituteTemplate
(
self
.
getTemplateFilename
(
'os_config.xml.in'
),
os_config
_parameters
))
os_config
uration_parameter_dict
))
path_list
.
append
(
os_config_file
)
# Put modified accords configuration file
#XXX-TODO
accords_configuration_parameter_dict
=
dict
(
listen_ip
=
self
.
options
[
'listen-ip'
]
)
accords_configuration_file_location
=
self
.
createFile
(
self
.
options
[
'accords-configuration-file'
],
self
.
substituteTemplate
(
self
.
getTemplateFilename
(
'accords.ini.in'
),
accords_configuration_parameter_dict
))
path_list
.
append
(
accords_configuration_file_location
)
# Initiate configuration
Popen
(
'./accords-config'
,
...
...
@@ -62,6 +69,7 @@ class Recipe(GenericBaseRecipe):
# Generate wrapper
wrapper_config_dict
=
dict
(
dash_location
=
self
.
options
[
'dash-location'
],
poc_location
=
poc_location
,
manifest_name
=
self
.
options
[
'manifest-name'
],
# XXX this is workaround
...
...
slapos/recipe/occi/template/accords.ini.in
0 → 100644
View file @
a80a8be2
# REST host (default: 127.0.0.1)
resthost=%(listen_ip)s
# REST port (default: 8086)
#restport=8086
# Target (default: ./accords.xml)
#target=accords.xml
# Acitvate TLS (default: 0)
#tls=0
# Activate monitoring (default: 1)
#monitor=1
# Trace (default: 1)
#trace=1
# Threads (default:1)
#threads=1
# Be verbose (default: 1)
#verbose=0
# Debug (default: 1)
#debug=1
# Domain (default: occi)
#domain=occi
# Operator (default: accords)
#operator=accords
# Password (default: co-system)
#password=co-system
\ No newline at end of file
slapos/recipe/occi/template/accords.xml.in
deleted
100644 → 0
View file @
1811622b
<accords>
<publisher>
<rest host='%(local_ip)s' port='8086'/>
<security admin='admin' pass='admin' authorise='0' monitor='1'
tls=''/>
<memory file='publications.xml' autosave='1'/>
<domain name='occi'/>
</publisher>
<coss
publisher='http://%(local_ip)s:8086'
operator='accords'
identity='%(local_ip)s:8087'
verbose='0'
debug='0'
threads='1'>
<rest host='%(local_ip)s' port='8087'/>
<security
user='service-coss'
password='co-system'
monitor='1'
tls=''/>
<domain name='occi'/>
</coss>
<comons
publisher='http://%(local_ip)s:8086'
operator='accords'
identity='%(local_ip)s:8088'
verbose='0'
debug='0'
threads='1'>
<rest host='%(local_ip)s' port='8088'/>
<security
user='service-comons'
password='co-system'
monitor='1'
tls=''/>
<domain name='occi'/>
</comons>
<coes
publisher='http://%(local_ip)s:8086'
operator='accords'
identity='%(local_ip)s:8089'
verbose='0'
debug='0'
threads='1'>
<rest host='%(local_ip)s' port='8089'/>
<security
user='service-coes'
password='co-system'
monitor='1'
tls=''/>
<domain name='occi'/>
</coes>
<conets
publisher='http://%(local_ip)s:8086'
operator='accords'
identity='%(local_ip)s:8090'
verbose='0'
debug='0'
threads='1'>
<rest host='%(local_ip)s' port='8090'/>
<security
user='service-conets'
password='co-system'
monitor='1'
tls=''/>
<domain name='occi'/>
</conets>
<coobas
publisher='http://%(local_ip)s:8086'
operator='accords'
identity='%(local_ip)s:8091'
verbose='0'
debug='0'
threads='1'>
<rest host='%(local_ip)s' port='8091'/>
<security
user='service-coobas'
password='co-system'
monitor='1'
tls=''/>
<domain name='occi'/>
</coobas>
<parser
publisher='http://%(local_ip)s:8086'
operator='accords'
identity='%(local_ip)s:8092'
verbose='0'
debug='0'
threads='1'>
<rest host='%(local_ip)s' port='8092'/>
<security
user='service-parser'
password='co-system'
monitor='1'
tls=''/>
<domain name='occi'/>
</parser>
<broker
publisher='http://%(local_ip)s:8086'
operator='accords'
identity='%(local_ip)s:8093'
verbose='0'
debug='0'
threads='1'>
<rest host='%(local_ip)s' port='8093'/>
<security
user='service-broker'
password='co-system'
monitor='1'
tls=''/>
<domain name='occi'/>
</broker>
<procci
publisher='http://%(local_ip)s:8086'
operator='accords'
identity='%(local_ip)s:8094'
verbose='0'
debug='0'
threads='1'>
<rest host='%(local_ip)s' port='8094'/>
<security
user='service-procci'
password='co-system'
monitor='1'
tls=''/>
<domain name='occi'/>
</procci>
<osprocci
publisher='http://%(local_ip)s:8086'
operator='accords'
identity='%(local_ip)s:8095'
verbose='0'
debug='0'
threads='1'>
<rest host='%(local_ip)s' port='8095'/>
<security
user='service-osprocci'
password='co-system'
monitor='1'
tls=''/>
<domain name='occi'/>
</osprocci>
<onprocci
publisher='http://%(local_ip)s:8086'
operator='accords'
identity='%(local_ip)s:8096'
verbose='0'
debug='0'
threads='1'>
<rest host='%(local_ip)s' port='8096'/>
<security
user='service-onprocci'
password='co-system'
monitor='1'
tls=''/>
<domain name='occi'/>
</onprocci>
<azprocci
publisher='http://%(local_ip)s:8086'
operator='accords'
identity='%(local_ip)s:8097'
verbose='0'
debug='0'
threads='1'>
<rest host='%(local_ip)s' port='8097'/>
<security
user='service-azprocci'
password='co-system'
monitor='1'
tls=''/>
<domain name='occi'/>
</azprocci>
<fileserver
publisher='http://%(local_ip)s:8086'
operator='accords'
identity='%(local_ip)s:8098'
verbose='0'
debug='0'
threads='1'>
<rest host='%(local_ip)s' port='8098'/>
<security
user='service-fileserver'
password='co-system'
monitor='1'
tls=''/>
<domain name='occi'/>
</fileserver>
<ezvm
publisher='http://%(local_ip)s:8086'
operator='accords'
identity='%(local_ip)s:8099'
verbose='0'
debug='0'
threads='1'>
<rest host='%(local_ip)s' port='8099'/>
<security
user='service-ezvm'
password='co-system'
monitor='1'
tls=''/>
<domain name='occi'/>
</ezvm>
<coips
publisher='http://%(local_ip)s:8086'
operator='accords'
identity='%(local_ip)s:8100'
verbose='0'
debug='0'
threads='1'>
<rest host='%(local_ip)s' port='8100'/>
<security
user='service-coips'
password='co-system'
monitor='1'
tls=''/>
<domain name='occi'/>
</coips>
<coees
publisher='http://%(local_ip)s:8086'
operator='accords'
identity='%(local_ip)s:8101'
verbose='0'
debug='0'
threads='1'>
<rest host='%(local_ip)s' port='8101'/>
<security
user='service-coees'
password='co-system'
monitor='1'
tls=''/>
<domain name='occi'/>
</coees>
<cosacs
publisher='http://%(local_ip)s:8086'
operator='accords'
identity='%(local_ip)s:8286'
verbose='0'
debug='0'
threads='1'>
<rest host='%(local_ip)s' port='8286'/>
<security
user='service-cosacs'
password='co-system'
monitor='1'
tls=''/>
<domain name='occi'/>
</cosacs>
</accords>
\ No newline at end of file
stack/occi/instance-occi.cfg
View file @
a80a8be2
...
...
@@ -22,8 +22,10 @@ domain = domain
#password = $${slap-parameter:password}
#domain = $${slap-parameter:domain}
os-config = $${pocdirectory:poc}/os_config.xml
listen-ip = $${slap-network-information:local-ipv4}
# Paths
accords-configuration-file = $${pocdirectory:poc}/accords.ini
manifest-source = ${occi-manifest:target}
manifest-destination = $${pocdirectory:poc}/manifest.xml
manifest-name = $${pocdirectory:poc}/manifest.xml
...
...
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