Cfengine Help: Re: changing workdir

2011-02-15 Thread no-reply
Forum: Cfengine Help Subject: Re: changing workdir Author: hharun Link to topic: https://cfengine.com/forum/read.php?3,20557,20688#msg-20688 Answer: update.cf (or update1.cf) cannot use any bodies from cfengine_stdlib.cf. All the bodies have to be self contained in update.cf(or update1.cf) ...

Cfengine Help: Re: OpenSSL errors on a 3.1.4 MPS

2011-02-15 Thread no-reply
Forum: Cfengine Help Subject: Re: OpenSSL errors on a 3.1.4 MPS Author: mark Link to topic: https://cfengine.com/forum/read.php?3,20661,20687#msg-20687 Well that is good news, as trouble with OpenSSL is trouble indeed. Would you trouble to register a bug report, if you've not already done so? Tha

Cfengine Help: Re: OpenSSL errors on a 3.1.4 MPS

2011-02-15 Thread no-reply
Forum: Cfengine Help Subject: Re: OpenSSL errors on a 3.1.4 MPS Author: msvob...@linkedin.com Link to topic: https://cfengine.com/forum/read.php?3,20661,20686#msg-20686 So, this actually wasn't an issue with OpenSSL or with promises.cf. It was the new caching mechanism introduced in 3.1.3. Here

Cfengine Help: Re: changing workdir

2011-02-15 Thread no-reply
Forum: Cfengine Help Subject: Re: changing workdir Author: hharun Link to topic: https://cfengine.com/forum/read.php?3,20557,20685#msg-20685 Hi, Need more help on workdir. openSuSE 11.3, workdir is /var/lib/cfengine. All my files are in /var/lib/cfengine/inputs. When I execute /usr/sbin/cf-

Using The Current Iteration As A Variable

2011-02-15 Thread Niall Donegan
Hi, I'm starting out with CFEngine by trying to replace a load of python managing a few services. I'm having issues trying using the template system to right the configs, mainly because I can't see how to the current value of an iteration in order to populate the template. Here's a minimal exampl

Cfengine Help: Re: Parsing fstab

2011-02-15 Thread no-reply
Forum: Cfengine Help Subject: Re: Parsing fstab Author: Beto Link to topic: https://cfengine.com/forum/read.php?3,20565,20683#msg-20683 Well the problem turned out to not be related to the readstringlist or grep functions but with faulty iteration over variables. I was able to work around it by

Cfengine Help: Re: Defining classes based on running processes

2011-02-15 Thread no-reply
Forum: Cfengine Help Subject: Re: Defining classes based on running processes Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,20666,20682#msg-20682 I don't think that you need a module. You could use a process_select promise. http://www.cfengine.org/manuals/cf3-referenc

Re: replace_patterns issue

2011-02-15 Thread Bas van der Vlies
On 15 feb 2011, at 11:57, dennis.caboo...@snow.nl wrote: > Nice one! Works like a charm. Still don't know what went wrong with my > example, but thanks, I will use yours. :-) > As explained with yours it will always change the line every time cf-agent runs. That is why it is none convergent. >

Re: replace_patterns issue

2011-02-15 Thread Dennis . Cabooter
Nice one! Works like a charm. Still don't know what went wrong with my example, but thanks, I will use yours. :-) > On 15 feb 2011, at 09:50, dennis.caboo...@snow.nl wrote: > >> Hi there! >> >> I have a replace_patterns issue. >> >> - In /tmp/group I have the following: >> >> root@cfengine:~# gre

Re: Cfengine Help: Re: best practice on ownership backup/recovery

2011-02-15 Thread M LZ
I've seen the owner promise to a file, the question is how do you use it in a backup/restore scenario of a directory with thousands of files owned by thousand of users respectively ( I mean using cf rules / primitives , not archiving/restoring it with uid preservation or something of the like

Cfengine Help: Re: best practice on ownership backup/recovery

2011-02-15 Thread no-reply
Forum: Cfengine Help Subject: Re: best practice on ownership backup/recovery Author: phnakarin Link to topic: https://cfengine.com/forum/read.php?3,20676,20677#msg-20677 File ownership? You mean groups and owners attributes in perms body. http://www.cfengine.org/manuals/cf3-reference.html#perms-i

function usemodule() and usage in a common bundle

2011-02-15 Thread Bas van der Vlies
The usemodule() function is used in a "bundle common" . The init_nodes function is called several times for each input set. Is this the desired behaviour? Or is there no locking for usemodule() function? or must i use this differently? example: bundle common g { classes:

best practice on ownership backup/recovery

2011-02-15 Thread M LZ
Hi, Can anyoane please point to a cf recommended practice to backup/restore ownership for a directory with subdirs/files owned by various owner/group . The mode/time attributes seem to be covered ok by cf but couldn't find anything of the sort related to file ownership restoring .. or missed

Re: www.cfengine.org | com not accesible

2011-02-15 Thread M LZ
Turns out to be a firewall issue on site's internet provider. A /14 block of ip denied due to some flooding. I was a colateral victim :) The restriction lifted now. Thanks, mlz. On Mon, Feb 14, 2011 at 12:01 PM, M LZ wrote: > No need, tested already with an arbitray free proxy and it work

Re: replace_patterns issue

2011-02-15 Thread Bas van der Vlies
On 15 feb 2011, at 09:50, dennis.caboo...@snow.nl wrote: > Hi there! > > I have a replace_patterns issue. > > - In /tmp/group I have the following: > > root@cfengine:~# grep zenoss /tmp/group > zenoss:x:1001: > > - I have the following cfengine code: > > -- > body common control { >

replace_patterns issue

2011-02-15 Thread Dennis . Cabooter
Hi there! I have a replace_patterns issue. - In /tmp/group I have the following: root@cfengine:~# grep zenoss /tmp/group zenoss:x:1001: - I have the following cfengine code: -- body common control { bundlesequence => { "test" }; } bundle agent test { files: "/tmp/group11