Re: Cfengine Help: Re: Packet Management

2010-04-13 Thread Nicolas Charles
fo...@cfengine.com wrote: > Forum: Cfengine Help > Subject: Re: Packet Management > Author: neilhwatson > Link to topic: https://cfengine.com/forum/read.php?3,16851,16892#msg-16892 > > I believe that update will not install anew but only update an existing > install.Similarly I think that install

Cfengine Help: Re: Packet Management

2010-04-13 Thread forum
Forum: Cfengine Help Subject: Re: Packet Management Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,16851,16892#msg-16892 I believe that update will not install anew but only update an existing install.Similarly I think that install will only install if missing and not u

RE: Cfengine Help: Re: custom bundlesequence problem

2010-04-13 Thread Aaron Grewell
Understood. The hard classes appear to be defined to me, so it seems odd that the custom ones aren't. [r...@cf3server-1.test.net masterfiles]# cf-promises -v -f ./promises.cf cf3 -> Defined classes = { 10_1_1_2 64_bit April Day13 GMT_Hr17 Hr10 Hr10_Q3 Lcycle_0 Min35_40 Min36 Morning Q3 Tuesd

Cfengine Help: Re: Packet Management

2010-04-13 Thread forum
Forum: Cfengine Help Subject: Re: Packet Management Author: christian Link to topic: https://cfengine.com/forum/read.php?3,16851,16890#msg-16890 hi again and thanks for the answer, i saw the body in the std lib. and it works so far. But i'm looking for a explanation what's going on behind the sc

Re: matching a new [section] or EOF with select_end in a select_region body

2010-04-13 Thread daniel . klein
If you leave off the "select_end", it will match from the select_start to the end of file. If you have both a select_start and a select_end, then it will match between those - and in a recent patch, it will also allow EOF to match the end. You'll need the newer code, though... -Dan > Hi, > > D

Cfengine Help: Re: matching a new [section] or EOF with select_end in a select_region body

2010-04-13 Thread forum
Forum: Cfengine Help Subject: Re: matching a new [section] or EOF with select_end in a select_region body Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,16887,16888#msg-16888 \z or \Z might do the trick. See man pcrepattern.

matching a new [section] or EOF with select_end in a select_region body

2010-04-13 Thread Assarsson, Emil
Hi, Does anyone have a solution to match the EOF if there are no more sections in a file? This body is suggested in the documentation but it doesn't handle EOF. - body select_region MySection(x) { select_start => "\[$(x)\]"; select_end => "\[.*\]"; } - My current solution is to add anot

Re: Cfengine Help: Re: Cfengine Help: Re: Cfengine Help: Re: Cfengine Help: Possible bug in cfengine 2

2010-04-13 Thread Paul Krizak
Hmm, I don't replicate the problem in 2.1.21: [r...@becker tmp]# cat cf.foo control: actionsequence = ( directories ) voip_user = ( "foo" ) voip_group = ( "bar" ) directories: any:: /tmp/foobarbaz mode=0755 owner=${voip_user} owner=${voip_group} [r...@becker tm

Cfengine Help: Re: Cfengine Help: Re: Cfengine Help: Re: Cfengine Help: Possible bug in cfengine 2

2010-04-13 Thread forum
Forum: Cfengine Help Subject: Re: Cfengine Help: Re: Cfengine Help: Re: Cfengine Help: Possible bug in cfengine 2 Author: kevinmusker Link to topic: https://cfengine.com/forum/read.php?3,16865,16885#msg-16885 You don't actually have to define the variable, you just need to reference it somewhere

Re: Cfengine Help: Re: Cfengine Help: Re: Cfengine Help: Possible bug in cfengine 2

2010-04-13 Thread Paul Krizak
I just noticed that the hashing code in 2.1.21 matched the code that you patched in 2.2.x so I assume the bug is still there. I haven't actually tried to reproduce the effects though. Do you just have to define a macro that hashes to zero in order to replicate the problem? Or do you have to u

Cfengine Help: Re: Cfengine Help: Re: Cfengine Help: Possible bug in cfengine 2

2010-04-13 Thread forum
Forum: Cfengine Help Subject: Re: Cfengine Help: Re: Cfengine Help: Possible bug in cfengine 2 Author: kevinmusker Link to topic: https://cfengine.com/forum/read.php?3,16865,16883#msg-16883 Great, thanks. I've filed a reoprt here: https://cfengine.com/bugtracker/view.php?id=112 _

Cfengine Help: Re: Re:Cfengine Help: Re: v3 question

2010-04-13 Thread forum
Forum: Cfengine Help Subject: Re: Re:Cfengine Help: Re: v3 question Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,16881,16882#msg-16882 JIM AMANATIDIS, BLOOMBERG/ 731 LEXIN Wrote: --- > nyprovdev1 # more promises.cf > b

Re:Cfengine Help: Re: v3 question

2010-04-13 Thread JIM AMANATIDIS, BLOOMBERG/ 731 LEXIN
Hello againg, Thanks, but this doesn't work if I also specify any:: class as well. For example: nyprovdev1 # more promises.cf body common control { any:: bundlesequence => { "do_generic", "do_specific_OS" }; inputs => { "generic.cf" }; linux:: inputs => { "linux.cf" };

Cfengine Help: Re: Cfengine Help: Re: Cfengine Help: Possible bug in cfengine 2

2010-04-13 Thread forum
Forum: Cfengine Help Subject: Re: Cfengine Help: Re: Cfengine Help: Possible bug in cfengine 2 Author: eystein Link to topic: https://cfengine.com/forum/read.php?3,16865,16880#msg-16880 Hi, A project is added for Cfengine 2 on the bug tracker. Note that only critical bugs will be addressed, the r

Cfengine Help: Re: Cfengine Help: Re: Cfengine Help: Possible bug in cfengine 2

2010-04-13 Thread forum
Forum: Cfengine Help Subject: Re: Cfengine Help: Re: Cfengine Help: Possible bug in cfengine 2 Author: kevinmusker Link to topic: https://cfengine.com/forum/read.php?3,16865,16879#msg-16879 Jesse: Right, yeah. The size of the hashtable is a prime number which, if my memory of modulo arithmetic se

Cfengine Help: package policy => "update"

2010-04-13 Thread forum
Forum: Cfengine Help Subject: package_policy => "update" Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,16878,16878#msg-16878 My tests show that the package_policy => "update" does not install package when it doesn't exist. As for me, it seems to be a bug. Perhaps, I