Created by: matthijskooijman
Cdist is currently not really tied to ssh in any way.
Well, the default commands that are generated call SSH, with SSH-specific options, so it is tied to SSH…
Created by: telmich
This is a very interesting discussion. My two points for the moment (more to come):
- cdist should stay agnostic of transport
- cdist should support remembering transport…
Created by: thriqon
Send it to standard error:
#!/bin/bash
__cdistmarker
echo "Hello, user!" >&2
__file /etc/config-file --state exists .....
You can also abort…
Created by: matthijskooijman
Thanks for your swift reply! Unfortunately, I missed it back then, but found it now while I'm working with cdist again.
I tried your suggestion, but my output is…
Created by: matthijskooijman
Looking more closely at the --disable-saving-streams option, that makes all output from all manifests show up, not just the initial manifest. In my case, all of…
Created by: matthijskooijman
Thinking even more closely, Ideally I would be able to hook into the log level system from inside a manifest, but I can imagine that's not so trival to add..
Created by: asteven
Thinking even more closely, Ideally I would be able to hook into the log level system from inside a manifest, but I can imagine that's not so trival to add..
I was…
Created by: matthijskooijman
In terms of implementation, I think that would mean opening up an extra pipe to the process (on e.g. fd 3) and printing messages in some format (probably just lines…
Created by: asteven
I was thinking more of the parent process running a log server on a socket. It shares the config for this via environment. Client process picks this up and configures it's…
Created by: matthijskooijman
I was thinking more of the parent process running a log server on a socket.
You mean on a UNIX socket or TCP socket? These have the downside that they expose the…
Created by: asteven
UNIX socket would be the obvious choice. I tested using fd's and named pipes but it's much harder to deal with then a socket. Remember that you have n processes writing there…
Created by: asteven
@darko-poljak This would simplify all the dealing with logging vs output a lot. What say you?
Created by: matthijskooijman
I was originally thinking to have a single pipe per process, so then you would not have any concurrency problems, but it doesn't scale too well. Using a single socket…
Created by: darko-poljak
@darko-poljak This would simplify all the dealing with logging vs output a lot. What say you?
Sounds interesting.
Created by: darko-poljak
@lubo This might be of interest for you. I have prepared a fix already.
Created by: telmich
manifest/dcl: __ungleich_monit ungleich --config ungleich type/__dcl_ceph: __ungleich_monit ungleich --config ungleich
Created by: telmich
@darko-poljak ping
Created by: darko-poljak
/tmp/tmptirtsbvg/9613ea11c03c21bc404d3d251acd217e/data/conf/manifest/init: {'config': 'ungleich', 'state':…