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
Iliya Manolov
slapos
Commits
0c611277
Commit
0c611277
authored
May 29, 2013
by
Vivien Alger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding a cron for monitoring
parent
9e58a280
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
8 deletions
+45
-8
software/kvm/common.cfg
software/kvm/common.cfg
+3
-2
software/kvm/development.cfg
software/kvm/development.cfg
+3
-0
software/kvm/instance-kvm.cfg.in
software/kvm/instance-kvm.cfg.in
+39
-6
No files found.
software/kvm/common.cfg
View file @
0c611277
...
@@ -9,6 +9,7 @@ extends =
...
@@ -9,6 +9,7 @@ extends =
../../component/logrotate/buildout.cfg
../../component/logrotate/buildout.cfg
../../component/noVNC/buildout.cfg
../../component/noVNC/buildout.cfg
../../component/openssl/buildout.cfg
../../component/openssl/buildout.cfg
../../component/dcron/buildout.cfg
../../stack/nodejs.cfg
../../stack/nodejs.cfg
../../stack/slapos.cfg
../../stack/slapos.cfg
...
@@ -70,14 +71,14 @@ command =
...
@@ -70,14 +71,14 @@ command =
[template-kvm]
[template-kvm]
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-kvm.cfg.in
url = ${:_profile_base_location_}/instance-kvm.cfg.in
md5sum =
87197471aa93863c310204e8865b5ac1
md5sum =
06a4dc42f84914b3ec6694ad857f9d27
output = ${buildout:directory}/template-kvm.cfg
output = ${buildout:directory}/template-kvm.cfg
mode = 0644
mode = 0644
[template-nbd]
[template-nbd]
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-nbd.cfg.in
url = ${:_profile_base_location_}/instance-nbd.cfg.in
md5sum =
e448892fb4836ceb29897dd77d08121c
md5sum =
f634a5249b773658b7a7bc9fa9bb0368
output = ${buildout:directory}/template-nbd.cfg
output = ${buildout:directory}/template-nbd.cfg
mode = 0644
mode = 0644
...
...
software/kvm/development.cfg
View file @
0c611277
...
@@ -31,3 +31,6 @@ update-command = ${:command}
...
@@ -31,3 +31,6 @@ update-command = ${:command}
command =
command =
grep parts ${buildout:develop-eggs-directory}/slapos.cookbook.egg-link &&
grep parts ${buildout:develop-eggs-directory}/slapos.cookbook.egg-link &&
grep parts ${buildout:develop-eggs-directory}/slapos.toolbox.egg-link
grep parts ${buildout:develop-eggs-directory}/slapos.toolbox.egg-link
[versions]
websockify = 0.3.0
\ No newline at end of file
software/kvm/instance-kvm.cfg.in
View file @
0c611277
...
@@ -10,6 +10,9 @@ parts =
...
@@ -10,6 +10,9 @@ parts =
kvm-promise
kvm-promise
websockify-sighandler
websockify-sighandler
novnc-promise
novnc-promise
kvm-monitor
cron
cron-entry-monitor
frontend-promise
frontend-promise
eggs-directory = ${buildout:eggs-directory}
eggs-directory = ${buildout:eggs-directory}
...
@@ -22,12 +25,16 @@ etc = $${buildout:directory}/etc
...
@@ -22,12 +25,16 @@ etc = $${buildout:directory}/etc
bin = $${buildout:directory}/bin
bin = $${buildout:directory}/bin
srv = $${buildout:directory}/srv
srv = $${buildout:directory}/srv
var = $${buildout:directory}/var
var = $${buildout:directory}/var
log = $${:var}/log
scripts = $${:etc}/run
scripts = $${:etc}/run
services = $${:etc}/service
services = $${:etc}/service
promises = $${:etc}/promise
promises = $${:etc}/promise
novnc-conf = $${:etc}/novnc
novnc-conf = $${:etc}/novnc
run = $${:var}/run
run = $${:var}/run
ca-dir = $${:srv}/ssl
ca-dir = $${:srv}/ssl
cron-entries = $${:etc}/cron.d
crontabs = $${:etc}/crontabs
cronstamps = $${:etc}/cronstamps
[create-mac]
[create-mac]
recipe = slapos.cookbook:generate.mac
recipe = slapos.cookbook:generate.mac
...
@@ -123,15 +130,41 @@ port = $${novnc-instance:port}
...
@@ -123,15 +130,41 @@ port = $${novnc-instance:port}
[kvm-monitor]
[kvm-monitor]
recipe = slapos.cookbook:kvm
-
monitor
recipe = slapos.cookbook:kvm
.
monitor
path = $${
basedirectory:services}/kvm-
monitor
path = $${
directory:services}/kvm_
monitor
kvm-monitor-path = ${buildout:bin-directory}/kvm
-monitor
kvm-monitor-path = ${buildout:bin-directory}/kvm
.monitor.test
filepath = $${buildout:directory}/buildout-switch-softwaretype.cfg
filepath = $${buildout:directory}/buildout-switch-softwaretype.cfg
sections =
-s
slap-parameter
sections = slap-parameter
options =
-opts
disk-size ram-size cpu-count
options = disk-size ram-size cpu-count
xml-path = $${buildout:directory}/report.xml
xml-path = $${buildout:directory}/report.xml
#----------------
#--
#-- Deploy cron.
[cron]
recipe = slapos.cookbook:cron
dcrond-binary = ${dcron:location}/sbin/crond
cron-entries = $${directory:cron-entries}
crontabs = $${directory:crontabs}
cronstamps = $${directory:cronstamps}
catcher = $${cron-simplelogger:wrapper}
binary = $${directory:services}/crond
[cron-simplelogger]
recipe = slapos.cookbook:simplelogger
wrapper = $${directory:bin}/cron_simplelogger
log = $${directory:log}/crond.log
[cron-entry-monitor]
<= cron
recipe = slapos.cookbook:cron.d
name = kvm_monitor
frequency = 0 0 * * *
command = $${kvm-monitor:path}
[request-slave-frontend]
[request-slave-frontend]
recipe = slapos.cookbook:requestoptional
recipe = slapos.cookbook:requestoptional
software-url = $${slap-parameter:frontend-software-url}
software-url = $${slap-parameter:frontend-software-url}
...
@@ -169,7 +202,7 @@ curl_path = ${curl:location}/bin/curl
...
@@ -169,7 +202,7 @@ curl_path = ${curl:location}/bin/curl
# Default values if not specified
# Default values if not specified
frontend-software-type = frontend
frontend-software-type = frontend
frontend-software-url = http://git.erp5.org/gitweb/slapos.git/blob_plain/refs/tags/slapos-0.92:/software/kvm/software.cfg
frontend-software-url = http://git.erp5.org/gitweb/slapos.git/blob_plain/refs/tags/slapos-0.92:/software/kvm/software.cfg
frontend-instance-guid =
nbd-port = 1024
nbd-port = 1024
nbd-host = debian.nbd.vifib.net
nbd-host = debian.nbd.vifib.net
nbd2-port = 1024
nbd2-port = 1024
...
...
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