Commit fdfc5c65 authored by Łukasz Nowak's avatar Łukasz Nowak

monitor: Use surykatka direct output to a file

parent b6cd023f
...@@ -30,7 +30,7 @@ md5sum = 3c8ab4e78f66c974eb95afc595a13514 ...@@ -30,7 +30,7 @@ md5sum = 3c8ab4e78f66c974eb95afc595a13514
[template-monitor-edgebot] [template-monitor-edgebot]
_update_hash_filename_ = instance-monitor-edgebot.cfg.jinja2 _update_hash_filename_ = instance-monitor-edgebot.cfg.jinja2
md5sum = 365a6cc6831267a73fa5ebd56ad394ee md5sum = 4b19eea828dc1d9b393a1537f1d8d5f5
[network-bench-cfg] [network-bench-cfg]
filename = network_bench.cfg.in filename = network_bench.cfg.in
......
...@@ -84,11 +84,7 @@ hash-existing-files = ${buildout:directory}/software_release/buildout.cfg ...@@ -84,11 +84,7 @@ hash-existing-files = ${buildout:directory}/software_release/buildout.cfg
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
json = ${surykatka-config-{{ class }}:json} json = ${surykatka-config-{{ class }}:json}
template = inline:#!/bin/sh template = inline:#!/bin/sh
if {{ surykatka_binary }} --run status --configuration ${surykatka-{{ class }}:config} --output json > ${:json}.tmp ; then {{ surykatka_binary }} --run status --configuration ${surykatka-{{ class }}:config} --output json --stdout ${:json}
mv -f ${:json}.tmp ${:json}
else
rm -f ${:json}.tmp
fi
rendered = ${monitor-directory:bin}/${:_buildout_section_name_} rendered = ${monitor-directory:bin}/${:_buildout_section_name_}
mode = 0755 mode = 0755
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment