Created by: telmich
My opinion is that we need to introduce something like a "pre" and "post" stage in cdist - @asteven and I discussed this briefly before - do you have the notes, @asteven?
Created by: tom-ee
For the specific issue: Updating the package cache introduces a) longer runtimes for cdist b) increased network-traffic and c) more dependencies on external…
Created by: tom-ee
__package_update_index got the --maxage <seconds>-parameter (for apt) w/ commit 4d4d76bb382126b69d1ac79faa98176c3a5744db.
With --maxage 3600 the apt-get update only runs…
Created by: telmich
The idea was to pass on the error to the user - does that help?
Created by: darko-poljak
Code is merged with ungleich/master.
__explorer=/var/lib/cdist/conf/explorer: Command not found.
Created by: telmich
Can you run cdist -d servername and output the error in here so we can see what exactly triggered this (very unusual) error? Btw, /var/lib is being used on the target host, not…
__explorer=/var/lib/cdist/conf/explorer: Command not found.
Created by: zilti
Ah, I see. I've pasted it below. Weirdly enough, this seems to happen in any version, so now I really think it's something I did wrong, but I have no clue what, since I followed…
__explorer=/var/lib/cdist/conf/explorer: Command not found.
Created by: zilti
Ah, so here's the other. Taken on tags/3.1.13:
zilti@linux-tkvd:~/projects/union/cdist> bin/cdist -d config 192.168.1.2
DEBUG: cdist: Namespace(conf_dir=None, debug=True,…
__explorer=/var/lib/cdist/conf/explorer: Command not found.
Created by: zilti
Ok I found out something new. I think the problem is that the target server is running FreeBSD. Are there any known incompatibilities? Because I now tried it with localhost…
__explorer=/var/lib/cdist/conf/explorer: Command not found.
Created by: zilti
A-ha, I found the solution. FreeBSD uses tcsh, a modified csh, as default shell for root. But this doesn't work. After changing the root's default shell using chsh to…
__explorer=/var/lib/cdist/conf/explorer: Command not found.
Created by: darko-poljak
@zilti This is because ssh invokes commands using user's shell. The command `ERROR: 192.168.1.2: Command failed: ssh -o User=root -q 192.168.1.2 __target_host=192.168.1.2…
__explorer=/var/lib/cdist/conf/explorer: Command not found.
Created by: telmich
I think you are right, we should use /bin/sh instead of defaulting to the user shell, because in some (rare, knowadays ;-)
@asteven fine with you?
__explorer=/var/lib/cdist/conf/explorer: Command not found.
Created by: asteven
Daniel Ziltener wrote on 03/16/16 13:27:
Ok I found out something new. I think the problem is that the target server is running FreeBSD. Are there any known…
__explorer=/var/lib/cdist/conf/explorer: Command not found.
Created by: zilti
I'll just change the default root shell on my machines. I was somewhat surprised that it wasn't sh, since it's the default user shell.