Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Łukasz Nowak
slapos
Commits
fdfc5c65
Commit
fdfc5c65
authored
3 years ago
by
Łukasz Nowak
Browse files
Options
Download
Email Patches
Plain Diff
monitor: Use surykatka direct output to a file
parent
b6cd023f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
software/monitor/buildout.hash.cfg
software/monitor/buildout.hash.cfg
+1
-1
software/monitor/instance-monitor-edgebot.cfg.jinja2
software/monitor/instance-monitor-edgebot.cfg.jinja2
+1
-5
No files found.
software/monitor/buildout.hash.cfg
View file @
fdfc5c65
...
...
@@ -30,7 +30,7 @@ md5sum = 3c8ab4e78f66c974eb95afc595a13514
[template-monitor-edgebot]
_update_hash_filename_ = instance-monitor-edgebot.cfg.jinja2
md5sum =
365a6cc6831267a73fa5ebd56ad394ee
md5sum =
4b19eea828dc1d9b393a1537f1d8d5f5
[network-bench-cfg]
filename = network_bench.cfg.in
...
...
This diff is collapsed.
Click to expand it.
software/monitor/instance-monitor-edgebot.cfg.jinja2
View file @
fdfc5c65
...
...
@@ -84,11 +84,7 @@ hash-existing-files = ${buildout:directory}/software_release/buildout.cfg
recipe = slapos.recipe.template:jinja2
json = ${surykatka-config-{{ class }}:json}
template = inline:#!/bin/sh
if {{ surykatka_binary }} --run status --configuration ${surykatka-{{ class }}:config} --output json > ${:json}.tmp ; then
mv -f ${:json}.tmp ${:json}
else
rm -f ${:json}.tmp
fi
{{ surykatka_binary }} --run status --configuration ${surykatka-{{ class }}:config} --output json --stdout ${:json}
rendered = ${monitor-directory:bin}/${:_buildout_section_name_}
mode = 0755
...
...
This diff is collapsed.
Click to expand it.
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