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
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
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
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
Forum: CFEngine Help
Subject: How to skip installing package if already installed
Author: btomasini
Link to topic: https://cfengine.com/forum/read.php?3,26170,26170#msg-26170
Hello,
This is one of my first promises. I am trying to setup apt to use multiverse,
run apt-get update if repaired, and
Forum: CFEngine Help
Subject: separate dev/production environments
Author: Tim
Link to topic: https://cfengine.com/forum/read.php?3,26169,26169#msg-26169
Hi,
We have an existing Cfengine2 installation, that uses separate development and
production environments under Subversion control. I am new
Forum: CFEngine Help
Subject: Re: unit_root_passwd.cf
Author: trumpjk
Link to topic: https://cfengine.com/forum/read.php?3,26164,26168#msg-26168
I will give it a try. Thanks.
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org
Forum: CFEngine Help
Subject: Re: unit_root_passwd.cf
Author: bahamat
Link to topic: https://cfengine.com/forum/read.php?3,26164,26167#msg-26167
Ok, I tested this stripped down:
bundle agent pass
{
vars:
"gotpw" int => readstringarray("pw","/tmp/pw.txt","#[^\n]*",":","3","200");
reports
Forum: CFEngine Help
Subject: Re: unit_root_passwd.cf
Author: trumpjk
Link to topic: https://cfengine.com/forum/read.php?3,26164,26166#msg-26166
I am new to cfengine so forgive me if I do not give you exactly what you want
the first time.
I create a file /var/cfengine/ppkeys/rootpw.txt which con
Forum: CFEngine Help
Subject: Re: unit_root_passwd.cf
Author: bahamat
Link to topic: https://cfengine.com/forum/read.php?3,26164,26165#msg-26165
Variables that are undefined don't expand, so your variable isn't getting set
properly. Can you show the vars promises you have?
__
Forum: CFEngine Help
Subject: unit_root_passwd.cf
Author: trumpjk
Link to topic: https://cfengine.com/forum/read.php?3,26164,26164#msg-26164
I am trying to use this to update the root password hash on multiple systems. I
leave the example file as is so the edits occur on a test file /tmp/shadow.
I don't use storage promises much but don't they edit fstab for you
without needing your own edit_line promises?
--
Neil Watson
Linux/UNIX Consultant
http://watson-wilson.ca
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/
By the way, if you take out the whitespace_policy line, as expected,
you get two lines that differ only in whitespace.
Due to the whitespace_policy issue, I also tried something that
distills down to:
bundle edit_line cc_doexport(line)
{
delete_lines:
"/export/dir1\s\s+192.168.159.0/255.2
On Fri, Jun 8, 2012 at 6:41 PM, Nick Anderson wrote:
> Hey Ron, can you post a self contained example?
Here's my minimal test for the eternally growing exports file.
# begin test.sh
#! /bin/sh
printf '/export/dir1\t\t192.168.159.0/255.255.255.0(rw)\n' > /tmp/exports
cf-agent -KIf test.cf
14 matches
Mail list logo