Re: CFEngine Help: Re: How to skip installing package if already installed

2012-06-11 Thread Tokarski Boleslaw
Hello, To achieve this I have provided my modified version of package_method body: 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_ins

CFEngine Help: Re: How to skip installing package if already installed

2012-06-11 Thread no-reply
Forum: CFEngine Help Subject: Re: How to skip installing package if already installed Author: bahamat Link to topic: https://cfengine.com/forum/read.php?3,26170,26173#msg-26173 cfengine won't edit the file multiple times if the resulting file is the same. Check the timestamp on the file to confir

CFEngine Help: Re: How to skip installing package if already installed

2012-06-11 Thread no-reply
Forum: CFEngine Help Subject: Re: How to skip installing package if already installed Author: btomasini Link to topic: https://cfengine.com/forum/read.php?3,26170,26172#msg-26172 Thanks, This should solve the problem of the package being installed again. Now what about not triggering the apt-ge

CFEngine Help: Re: How to skip installing package if already installed

2012-06-11 Thread no-reply
Forum: CFEngine Help Subject: Re: How to skip installing package if already installed Author: bahamat Link to topic: https://cfengine.com/forum/read.php?3,26170,26171#msg-26171 Change to package_method => apt and add package_compare => ">=". ___ Help-cf