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
Titouan Soulard
slapos
Commits
0a6c3825
Commit
0a6c3825
authored
May 28, 2013
by
Vivien Alger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changing script generation method
parent
91954237
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
8 deletions
+17
-8
slapos/recipe/kvm_monitor/__init__.py
slapos/recipe/kvm_monitor/__init__.py
+15
-8
slapos/recipe/kvm_monitor/template/kvm_monitor_run.in
slapos/recipe/kvm_monitor/template/kvm_monitor_run.in
+2
-0
No files found.
slapos/recipe/kvm_monitor/__init__.py
View file @
0a6c3825
##############################################################################
#
# Copyright (c) 2011 Vifib SARL and Contributors. All Rights Reserved.
...
...
@@ -31,13 +32,19 @@ class MonitorRecipe(GenericBaseRecipe):
def
install
(
self
):
options
=
self
.
options
script
=
self
.
createWrapper
(
name
=
options
[
'path'
],
command
=
options
[
'kvm-monitor-path'
],
parameters
=
[
options
[
'filepath'
],
options
[
'xml-path'
],
options
[
'sections'
],
options
[
'options'
]
])
config
=
dict
(
kvm_monitor_path
=
options
[
'kvm-monitor-path'
],
filepath
=
options
[
'filepath'
],
xml_path
=
options
[
'xml-path'
],
sections
=
options
[
'sections'
],
options
=
options
[
'options'
]
)
script
=
self
.
createExecutable
(
options
[
'path'
],
self
.
substituteTemplate
(
self
.
getTemplateFilename
(
'kvm_monitor_run.in'
),
config
)
)
return
[
script
]
slapos/recipe/kvm_monitor/template/kvm_monitor_run.in
0 → 100644
View file @
0a6c3825
#!/bin/sh
exec
%
(
kvm_monitor_path
)
s %
(
filepath
)
s %
(
xml_path
)
s
-s
%
(
sections
)
s
--opts
%
(
options
)
s
\ No newline at end of file
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