Il 17/11/2011 16:55, Mark Burgess ha scritto:
> You can try this and report on that bug tracker 
> whether it works for you...?

it doesn't. I guess the variable setting with env is not exported by
apt-get to the dpkg subprocess. It is still hanging on user input.

For the record, this is how my bundle now looks like:
> body package_method aptget
> {
> 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)";
> 
> # set it to "0" to avoid caching of list during upgrade
> package_list_update_ifelapsed => "240";
> 
>    package_add_command => "/usr/bin/env DEBIAN_FRONTEND=noninteractive 
> /usr/bin/apt-get --force-yes --yes -q install";
>    package_list_update_command => "/usr/bin/apt-get update";
>    package_delete_command => "/usr/bin/env DEBIAN_FRONTEND=noninteractive 
> /usr/bin/apt-get --yes -q remove";
>    package_update_command =>  "/usr/bin/env DEBIAN_FRONTEND=noninteractive 
> /usr/bin/apt-get --force-yes --yes -q install";
>    package_verify_command => "/usr/bin/dpkg -s";
>    package_noverify_returncode => "1";
> }

Still researching.

Ciao
-- bronto
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to