Re: Weird class definition problem

2010-02-04 Thread Martin A. Brooks
On Tue, January 26, 2010 12:06 pm, Martin A. Brooks wrote: > I have been trying to make cfengine handle user account more usefully. To > this end, I have writtne a pair of modules for parsing users and group and > then creating classes based on what it finds. I don't suppose anyone had any though

Help with returnszero running on an slist

2010-02-04 Thread Andrew J. Millar
Greetings all I'm struggling with a cfengine recipe - my goal is to check an slist of RPMs to see if they are installed, and install any missings ones. Alas, if at least one of the RPMs is installed, the class check fails, and the missings RPMS are not installed. If all of the RPMS are missing, th

Re: Help with returnszero running on an slist

2010-02-04 Thread Nakarin Phooripoom
Why don't you use packages: stanza instead? Cfengine will check a status of all those packages behind the scene. A body package_method yum could be found in cfengine_stdlib.cf body common control { bundlesequence => { "checkrpms" }; } # bundle agent

Re: Help with returnszero running on an slist

2010-02-04 Thread Andrew J. Millar
Ah, Many thanks Nakarin! That has done the trick! :-D I'm using a similar recipe for managing users - I've found canonify to be my friend. Once I've got it working they way I want I'll post it in case it helps others. On Thu, Feb 04, 2010 at 01:08:53PM +0100, Nakarin Phooripoom wrote: > Why don'

Re: Help with returnszero running on an slist

2010-02-04 Thread Mark Burgess
Don't try to call shell commands, use the exit status of a "packages" promise otherwise you are just writing a shell script and you lose all the optimizations. I don't have time to come up with an example right now, but perhaps this will push you in the right direction. Andrew J. Millar wrote:

Re: Help with returnszero running on an slist

2010-02-04 Thread Mark Burgess
Ah great, then you're happy with the default functions. Andrew J. Millar wrote: > Ah, Many thanks Nakarin! That has done the trick! :-D > > I'm using a similar recipe for managing users - I've found canonify to > be my friend. Once I've got it working they way I want I'll post it in > case it h

Re: Weird class definition problem

2010-02-04 Thread Mark Burgess
You should be more concrete. What are you trying to do? Martin A. Brooks wrote: > On Tue, January 26, 2010 12:06 pm, Martin A. Brooks wrote: >> I have been trying to make cfengine handle user account more usefully. To >> this end, I have writtne a pair of modules for parsing users and group and

Re: Help with returnszero running on an slist

2010-02-04 Thread Andrew J. Millar
Indeed, the internal function is great and makes much more sense - I wasn't aware there was one for packages (have only recently started using CFEngine properyl, so still learning the ropes). Is there a similar method for managing users and groups? I had come up with the following (similar lines t

Re: Weird class definition problem

2010-02-04 Thread Martin A. Brooks
On Thu, February 4, 2010 1:24 pm, Mark Burgess wrote: > > You should be more concrete. What are you trying to do? Please see the original email in this thread from about 2 weeks ago. It contains the problem in full. I didn't want to repost the entire lot again. Regards Martin.

Re: Help with returnszero running on an slist

2010-02-04 Thread Mark Burgess
Users and groups are handled through "methods" typically. Check out the solutions guide - - which we are in the process of updating. Or look again in a week or so.There are also examples un the tests/units directory, but we are organizing all our info at the moment. (We have too much content!)

Re: Help with returnszero running on an slist

2010-02-04 Thread Andrew J. Millar
Will do, thanks very much for the pointers Mark. Good like with the reorganisation! Kind regards Andrew On Thu, Feb 04, 2010 at 03:21:09PM +0100, Mark Burgess wrote: > > Users and groups are handled through "methods" typically. Check out the > solutions guide - > - which we are in the process o

Re: Cfengine on Facebook

2010-02-04 Thread Brendan Strejcek
We do have RSS feeds at http://www.cfengine.org/cftimes On Thu, Feb 4, 2010 at 12:26 AM, Zamboni, Diego wrote: > Cool, fan'ed. I checked @cfengine_nova on Twitter, is @cfengine also yours? > > One suggestion: As part of your social media experiment, you could try > putting an RSS feed on your bl

default argument in body?

2010-02-04 Thread Bryan Ramirez
Hi, I was wondering if there is a way to set a default argument for a body in cf3. For example, I have something like this that I use everywhere: body copy_from copyfrommaster(path) { ... } I would like to add the option of turning on purge since I now need it in one spot. However, I don't wa

starting with v3?

2010-02-04 Thread Les Mikesell
I'm having a little trouble getting started with cfengine v3. Is the source supposed to build on windows or are there binaries somewhere for evaluation? -- Les Mikesell lesmiks...@gmail.com ___ Help-cfengine mailing list Help-cfengine@cfengine

Re: starting with v3?

2010-02-04 Thread Mark Burgess
You can build source on Windows with the Community Edition and cygwin libraries, or you can purchase a license running Cfengine Nova with extended (native running) Windows functions like registry management and services support. Les Mikesell wrote: > I'm having a little trouble getting started

Re: starting with v3?

2010-02-04 Thread Les Mikesell
Mark Burgess wrote: > You can build source on Windows with the Community Edition and cygwin > libraries, or you > can purchase a license running Cfengine Nova with extended (native running) > Windows > functions like registry management and services support. > Thanks - is there a way to evaluat

Re: starting with v3?

2010-02-04 Thread Mark Burgess
Les Mikesell wrote: > Mark Burgess wrote: >> You can build source on Windows with the Community Edition and cygwin >> libraries, or you >> can purchase a license running Cfengine Nova with extended (native >> running) Windows >> functions like registry management and services support. >> > > Tha