I've updated my practical examples collection:
http://www.verticalsysadmin.com/cfengine/practical_examples.tar
I added a few more examples.
browse the collection with "ls -1" as the files are named alphanumerically
Cheers.
-at
___
Help-cfengine mailing
Hi. I'm pleased to share these student successes from this
week's training in Palo Alto. I am next training in Los Angeles
on Feb 20-22 (http://www.cfengine.com/training). If you know
anybody who could benefit from high quality CFEngine 3 training,
please send them my way.
The examples prese
Forum: CFEngine Help
Subject: Re: negating a class in policy
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,24467,24684#msg-24684
I don't think you can modify hard classes, which have_aptitude is. For the
particular case you want, I think the best would be as Simon suggests
Forum: CFEngine Help
Subject: Re: $(match.1) with comment_lines_containing
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,24529,24683#msg-24683
You don't mention which version of CFEngine are you using. With the latest
(3.2.3) I don't see this problem. However, things in ge
Forum: CFEngine Help
Subject: Re: bundles: can a class argument be passed?
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,24675,24682#msg-24682
If you have global classes, and you want to have a bundle that can act based on
any of those classes, you could also use ifvarclas
On 01/27/2012 10:08 AM, no-re...@cfengine.com wrote:
> Forum: CFEngine Help
> Subject: Re: bundles: can a class argument be passed?
> Author: davidlee
> Link to topic: https://cfengine.com/forum/read.php?3,24675,24680#msg-24680
>
> Thanks for the responses, which have been helpful.
>
> Now I thin
Forum: CFEngine Help
Subject: Re: bundles: can a class argument be passed?
Author: davidlee
Link to topic: https://cfengine.com/forum/read.php?3,24675,24680#msg-24680
Thanks for the responses, which have been helpful.
Now I think about it, my wish for a 'class' argument is really more like a
boo
Forum: CFEngine Help
Subject: Re: bundles: can a class argument be passed?
Author: toddnni
Link to topic: https://cfengine.com/forum/read.php?3,24675,24679#msg-24679
You can use global classes or define local classes from variable arguments like
this
bundle cf-agent my_bundle(class_arg)
{
clas
Forum: CFEngine Help
Subject: Re: bundles: can a class argument be passed?
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,24675,24678#msg-24678
David,
in general, classes are local and cannot be passed. One can define a global
class, though, either using classes bod
On 01/27/2012 08:46 AM, Jesse Becker wrote:
> I don't think so.
>
> However, two possible workarounds occur to me:
>
> 1) Pass a variable, and use ifvarclass.
> 2) Pass a variable, and use a classes: promise based on the contents to
> set a class.
>
> (Both untested...)
I'm guessing the place h
On Fri, Jan 27, 2012 at 08:58:35AM -0500, no-re...@cfengine.com wrote:
>Forum: CFEngine Help
>Subject: bundles: can a class argument be passed?
>Author: davidlee
>Link to topic: https://cfengine.com/forum/read.php?3,24675,24675#msg-24675
>
>(cfengine community 3.1.4; RHEL 5.x)
>
>When writing a bun
Forum: CFEngine Help
Subject: bundles: can a class argument be passed?
Author: davidlee
Link to topic: https://cfengine.com/forum/read.php?3,24675,24675#msg-24675
(cfengine community 3.1.4; RHEL 5.x)
When writing a bundle with arguments (parameters), the descriptions and
examples in the ref. man
Forum: CFEngine Help
Subject: insert_type: file: delays of many hours
Author: davidlee
Link to topic: https://cfengine.com/forum/read.php?3,24674,24674#msg-24674
(cfengine community 3.1.4; RHEL 5.6 on about 20 systems.)
Most of our cfengine file-editing uses default insert_type ("literal") for i
13 matches
Mail list logo