Re: Cfengine solution

2010-03-22 Thread Mark Burgess
Restired the newer version. Not sure why an old one came back from the dead. Let me know if it happens again :-) Nicolas Charles wrote: > Hi, > > I was looking the cfengine solution page, and found this : > https://cfengine.com/inside/manuals/cf3-solutions#Set-up-name-resolution > > I'm might

Cfengine Help (Mailing list): Re: How to remove clients from cfengine 3 reports?

2010-03-22 Thread forum
Forum: Cfengine Help (Mailing list) Subject: Re: How to remove clients from cfengine 3 reports? Author: mark Link to topic: https://cfengine.com/forum/read.php?3,16582,16622#msg-16622 Looking at the code, it was incomplete, ignoring the lastseen expiry time in common control. I put this in svn no

Cfengine Help (Mailing list): Re: How to replace hosts that change in the /etc/hosts file

2010-03-22 Thread forum
Forum: Cfengine Help (Mailing list) Subject: Re: How to replace hosts that change in the /etc/hosts file Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,16236,16621#msg-16621 Hi Daniel, Yes, sorry I failed to post it before. It's actually quite simple: # Define a class no m

Cfengine Help (Mailing list): Re: How to remove clients from cfengine 3 reports?

2010-03-22 Thread forum
Forum: Cfengine Help (Mailing list) Subject: Re: How to remove clients from cfengine 3 reports? Author: RIngersoll Link to topic: https://cfengine.com/forum/read.php?3,16582,16620#msg-16620 What I mean is that clients not seen are purged only after one week regardless of what I set lastseenexpire

Re: How to replace hosts that change in the /etc/hosts file

2010-03-22 Thread daniel parkes
Yep, but I can't find this function in the cfengine open promise standard library. Diego do you have the function always in you solution so I can use it? Thnx On Mon, Mar 22, 2010 at 11:47 AM, Nakarin Phooripoom < mynameisje...@gmail.com> wrote: > It could be wherever you'd like either in che

Cfengine Help (Mailing list): Re: How to remove clients from cfengine 3 reports?

2010-03-22 Thread forum
Forum: Cfengine Help (Mailing list) Subject: Re: How to remove clients from cfengine 3 reports? Author: RIngersoll Link to topic: https://cfengine.com/forum/read.php?3,16582,16618#msg-16618 Very nice. Has the issue with lastseenexpireafter been fixed also? I don't see any change at all no mat

Re: Transmission refused or failed statting...

2010-03-22 Thread Sergio Simone
Upgrading the main cf-serverd host to 3.04 solved the problem. It seems like it was a compatibility issue after all. sergio On 22/mar/2010, at 13.54, Sergio Simone wrote: > Hi guys, > i'm in the middle of an upgrade from 3.02 to 3.04. > The central cf-serverd is still running 3.02. > > I'm test

Transmission refused or failed statting...

2010-03-22 Thread Sergio Simone
Hi guys, i'm in the middle of an upgrade from 3.02 to 3.04. The central cf-serverd is still running 3.02. I'm testing 3.04 on one of the clients and i'm having this kind of issue with remote file copy. cf3 -> Destination file "/var/cfengine/inputs/update.cf" already exists cf3 !! Image file /v

Re: Cfengine solution

2010-03-22 Thread Mark Burgess
For some reason, an old version has been replaced online. I'll figure out why and update it. Nicolas Charles wrote: > Hi, > > I was looking the cfengine solution page, and found this : > https://cfengine.com/inside/manuals/cf3-solutions#Set-up-name-resolution > > I'm might be wrong, but the gen

Re: How to replace hosts that change in the /etc/hosts file

2010-03-22 Thread Nakarin Phooripoom
It could be wherever you'd like either in check-file-perms.cf or library.cf Cheers, --Nakarin On Mar 22, 2010, at 9:40 AM, daniel parkes wrote: > I'm using the first solution, but I'm getting and error with the always > clause: > > No such FnCall "always()" in promise @ /var/cfengine/git/check

Re: class visibility

2010-03-22 Thread Mark Burgess
Ah, this bug was fixed in svn now. I would get the latest patches if you can. Lamballais Gildas wrote: > Hi Mark, > > I've used your solution: > Tag.cf > bundle common my_tag > { > vars: > "tags" slist=> { "TAG1", "TAG2", "TAG3", "TAG4", "TAG5" }; > > classes: > "MY_CLASS"

Re: recurse undeclared

2010-03-22 Thread Nakarin Phooripoom
It didn't match because you declared one with no argument, but tried to use it with an argument. It was different indeed. You should either redeclare the body or change the way you use it in the bundle agent test. # alternative 1 body depth_search recurse(x) { depth => "$(x)"; } or # alternat

RE: class visibility

2010-03-22 Thread Lamballais Gildas
Hi Mark, I've used your solution: Tag.cf bundle common my_tag { vars: "tags" slist=> { "TAG1", "TAG2", "TAG3", "TAG4", "TAG5" }; classes: "MY_CLASS" expression => regline ( "^$(tags)$","$( sys.workdir)/alltags"); reports: MY_CLASS:: "CF_CLASS MY_CLASS" } And it wor

RE: class visibility

2010-03-22 Thread Lamballais Gildas
Hi Neil, I don't want to call the 2nd bundle because I'm not aware of all the bundles that may use this class. Could you explain your 2nd question : what do you mean by remote classes? For the last option, I will try it asap G. -Message d'origine- De : nwat...@symcor.com [mailto:nwat...

Re: How to replace hosts that change in the /etc/hosts file

2010-03-22 Thread daniel parkes
I'm using the first solution, but I'm getting and error with the always clause: No such FnCall "always()" in promise @ /var/cfengine/git/check-file-perms.cfnear line 384 Not sure where I should have defined the always function, in my library.cf ? ... more file .

recurse undeclared

2010-03-22 Thread Seifert, Christian
Thats part of my promises.cf to copy the cfengine folder to a client. But when i start cf-agent it copies only the folder without the files inside. body depth_search recurse { depth => "inf"; } bundle agent test { files: "/tmp/cfengine" copy_from => mycopy("/tmp/cfeng