Re: classes in cfengine 2.2.10

2009-12-10 Thread Brendan Strejcek
There is a cfengine3 package in sid, and you could probably build that from source (I have not tried recently though). What versions of Debian do you need to support? I have packages for Lenny (though they are not official Debian). On Mon, Dec 7, 2009 at 10:13 PM, Daniel Bidwell wrote: > I have

Re: question on file creation (V2)

2009-12-10 Thread Brendan Strejcek
Can you try to restate the problem? I don't see exactly what you are getting at. If you want to insert the hostname into a file, editfiles should be able to do that. On Wed, Dec 9, 2009 at 2:46 AM, Tom Van de Velde wrote: > Hi, > > I'm facing a problem where i need to construct a file with conten

Re: Compounding classes with paragraphs

2009-12-10 Thread Brendan Strejcek
No, you can't specify class hierarchies like your pseudocode example. However, you do have access to boolean operators. I think you might want something like: specialclass.(foo|bar):: See: http://www.cfengine.org/manuals/cf2-Reference.html#Cfengine-classes On Thu, Dec 10, 2009 at 11:37 AM, Mar

Re: modular policies

2009-12-10 Thread Mark Burgess
Read, Cfengine Nova Ed Brown wrote: > Christopher Browne wrote: >> - In reflecting on it, I think I'd like for some of the derived classes >> to be derived out of data residing in external sources like LDAP/DBMS. > > Yes, a native ability to import, AND export, class information would be > th

Re: modular policies

2009-12-10 Thread Mark Burgess
Forgive me for pouring scorn on this idea, but it has absolutely no conceivable merit to use an inappropriately cryptic script to generate something that is supposed to be a piece of documentation about the system. This is nonsense. Erlend Leganger wrote: > 2009/12/9 >> ... >> It looks neater.

Re: modular policies

2009-12-10 Thread NWatson
help-cfengine-boun...@cfengine.org wrote on 2009-12-10 12:09:57: > Christopher Browne wrote: > > - In reflecting on it, I think I'd like for some of the derived classes > > to be derived out of data residing in external sources like LDAP/DBMS. > > Yes, a native ability to import, AND export,

Re: modular policies

2009-12-10 Thread Ed Brown
Christopher Browne wrote: > - In reflecting on it, I think I'd like for some of the derived classes > to be derived out of data residing in external sources like LDAP/DBMS. Yes, a native ability to import, AND export, class information would be the bees knees...

Re: modular policies

2009-12-10 Thread Ed Brown
Maybe it can already be found in the documentation(anyone have a link?), but I'd be interested to see how else one might structure a "files:" example like Neil offered for any three particular files. I'm not so much interested in modularization, as in simplification. I'd like for a service ad

Re: modular policies

2009-12-10 Thread Christopher Browne
nwat...@symcor.com writes: > It's too early for me to tell what the best methods of code style will be > for CF. Experience tells me that as policies grow, are deployed to more > hosts and are managed by multiple people such separation of data and > function are very helpful. If others have di

Compounding classes with paragraphs

2009-12-10 Thread Martin A. Brooks
Hi In cfengine2 is there a way I can compound classes with "paragraphs"? For example shellcommands: specialclass1:: { foo:: bar:: } The idea is so I don't have to write reams of "specialclass1.foo:: specialclass1.bar::" and so on. I hav

Re: modular policies

2009-12-10 Thread NWatson
It's too early for me to tell what the best methods of code style will be for CF. Experience tells me that as policies grow, are deployed to more hosts and are managed by multiple people such separation of data and function are very helpful. If others have different styles that they think are

cf3 cf-serverd core dump (illegal cipher length)

2009-12-10 Thread Matt Richards
Well some good news and some bad news. cf-serverd did core dump last night on the policy host. I did get output from two clients at the same time. one was from a regular cf-agent regular run (06:22:02 am): Protocol transaction sent illegal cipher length !! Authentication dialogue with x.xx.xx.

Re: modular policies

2009-12-10 Thread Erlend Leganger
2009/12/9 > > ... > It looks neater.  Suppose I want to add a file that has a different user, > group or mode?  In a perfect world we'd be able to define data structures > in CF as we would in Perl and loop through them. > ... Which puts me on to an idea I definitely will use - keep all file prom