Hi! For installing software packages I'm using this body: <snip http://paste.debian.net/53424/> body package_method apt { package_changes => "bulk"; package_list_command => "/usr/bin/dpkg -l";
package_list_name_regex => "ii\s+([^\s]+).*"; package_list_version_regex => "ii\s+[^\s]+\s+([^\s]+).*"; package_installed_regex => ".*"; # all reported are installed package_name_convention => "$(name)"; package_add_command => "/usr/bin/apt-get --yes -o DPkg::Options=\"--force-confdef\" -o DPkg::Options=\"--force-confold\" install"; package_delete_command => "/usr/bin/apt-get --yes purge "; package_update_command => "/usr/bin/apt-get update && DEBIAN_FRONTEND=noninteractive /usr/bin/apt-get --yes -o DPkg::Options=\"--force-confdef\" -o DPkg::Options=\"--force-confold\" upgrade"; } </snip> Interestingly, in spite of the DPkg::Options I still get annoying questions like these: <snip http://paste.debian.net/53425/> Configuration file `/etc/x2go/sql' ==> File on system created by you or by a script. ==> File also in package provided by package maintainer. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : background this process to examine the situation The default action is to keep your current version. *** sql (Y/I/N/O/D/Z) [default=N] ? </snip> which cause cf-agent to hang since the underlying process expects a user input. Looking at the processes, I can see that in the second line (see below), the quotes are missing around "--force-confdef" and "--force-confold": <snip http://paste.debian.net/53426/> r...@cray:~# ps aux | grep apt-get root 26408 0.0 0.1 1748 496 pts/0 S+ 23:11 0:00 sh -c /usr/bin/apt-get --yes -o DPkg::Options="--force-confdef" -o DPkg::Options="--force-confold" install sshfs x2goserver root 26409 0.4 6.2 22240 15732 pts/0 S+ 23:11 0:01 /usr/bin/apt-get --yes -o DPkg::Options=--force-confdef -o DPkg::Options=--force-confold install sshfs x2goserver </snip> Could this be the reason I'm still being plagued by these questions? Cheers, Robert _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine