> Yup. Perhaps it could be returned by splitstring() instead of { "" }?
Bug report time, I guess :)
--Diego
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine
Forum: CFEngine Help
Subject: Re: Define classes if a process is running or not
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,26838,26854#msg-26854
Oh, and fo the record, i do agree with the two responses that came from the
mailing list - I'd use "is_running" and "!is_running
Forum: CFEngine Help
Subject: Re: Define classes if a process is running or not
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,26838,26853#msg-26853
One problem with using two classes is that, if you define two separate classes,
you need to have an action body which not only r
On Wed, 1 Aug 2012 17:28:59 -0500 Diego Zamboni wrote:
DZ> I believe that's what "cf_null" is supposed to be for:
http://cfengine.com/manuals/cf3-Reference#Special-list-value-cf_005fnull
Oh, I knew this!!! Thanks for pointing it out again, my brain is off
today I guess.
DZ> But it's not trul
I believe that's what "cf_null" is supposed to be for:
http://cfengine.com/manuals/cf3-Reference#Special-list-value-cf_005fnull
But it's not truly an empty list, just for iteration.
--Diego
On Aug 1, 2012, at 4:39 PM, Ted Zlatanov wrote:
> On Wed, 1 Aug 2012 22:48:35 +0200 (CEST) neilhwatson
On Wed, 1 Aug 2012 22:48:35 +0200 (CEST) neilhwatson wrote:
n> Empty lists seemed to be allowed:
No, unfortunately, I don't think you can get an empty slist with regular
syntax. I give you... the war of the spaces!
body common control
{
bundlesequence => { "test" };
}
bundle agent test
Forum: CFEngine Help
Subject: Re: splitstring("", " ", 100) returns slist { "" }
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,26848,26849#msg-26849
Empty lists seemed to be allowed:
body common control {
bundlesequence => { "main", };
}
bundle agent main {
It seems that splitstring("", " ", 100) returns a slist with an empty
string:
body common control
{
bundlesequence => { "test" };
}
bundle agent test
{
vars:
"spaces" slist => splitstring("", " ", "100");
reports:
cfengine::
"spaces '$(spaces)'";
}
=>
R: spaces ''
To
Forum: CFEngine Help
Subject: Re: Dynamic inbuts based on classes set from usemodule.
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,26668,26847#msg-26847
http://cfengine.com/manuals/cf3-Reference#Function-usemodule
___
Help-cf
Forum: CFEngine Help
Subject: Re: Dynamic inbuts based on classes set from usemodule.
Author: loopx
Link to topic: https://cfengine.com/forum/read.php?3,26668,26846#msg-26846
Hi,
I've got question related to your code ...
classes:
"idalv_set" expression => usemodule("idalv-cftxt","");
Is t
Forum: CFEngine Help
Subject: Re: About "new" templates correct usage or limitations
Author: th
Link to topic: https://cfengine.com/forum/read.php?3,26723,26845#msg-26845
zzamboni Wrote:
---
> > - expand_template :
> >
> > . why doesn't it em
Forum: CFEngine Help
Subject: Re: Using the new services promise types with Linux's chkconfig
Author: loopx
Link to topic: https://cfengine.com/forum/read.php?3,26785,26844#msg-26844
Hi,
I was looking this thread to try to use "services" promises too, but if it
doesn't work for Linux (RHEL6),
Forum: CFEngine Help
Subject: Re: About "new" templates correct usage or limitations
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,26723,26843#msg-26843
> > If you want to have non-CFEngine-managed edits
> > (why would you want that?)
>
> For instance we've got the followi
On 08/01/2012 05:00 AM, no-re...@cfengine.com wrote:
> To make some promise, I need to define classes like this :
> - XXX_running
> - XXX_stopped
Sometimes, it is helpful to take a step back and think about things from
a different perspective.
I know this is not a direct answer to your question,
no-re...@cfengine.com writes:
> This seems to be a pass-related evaluation issue. If the variable
> assignments are conditioned to occur on the second pass, then
> everything works fine. This example produces the correct results:
[...]
> classes:
> "secondpass" expression => "any";
Thanks
On Wed, 1 Aug 2012 12:00:00 +0200 (CEST) loopx wrote:
n> To make some promise, I need to define classes like this :
n> - XXX_running
n> - XXX_stopped
n> But, I've seen that it's possible to define classes with built-in
n> methods of Cfengine3. In the community lib, I've tried to use
n> "if_else
Forum: CFEngine Help
Subject: Define classes if a process is running or not
Author: loopx
Link to topic: https://cfengine.com/forum/read.php?3,26838,26838#msg-26838
Hi,
To make some promise, I need to define classes like this :
- XXX_running
- XXX_stopped
At the beginning, we was using (like
Forum: CFEngine Help
Subject: Re: About "new" templates correct usage or limitations
Author: jbdenis
Link to topic: https://cfengine.com/forum/read.php?3,26723,26837#msg-26837
This is a very interesting thread.
Looks like a "file_preserve_block" value for the insert_type attribute in
insert_line
Forum: CFEngine Help
Subject: Re: About "new" templates correct usage or limitations
Author: th
Link to topic: https://cfengine.com/forum/read.php?3,26723,26835#msg-26835
zzamboni Wrote:
---
> This could work as well - although what I was
> descr
Forum: CFEngine Help
Subject: Re: About "new" templates correct usage or limitations
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,26723,26834#msg-26834
> - copy a main.cf.tmpl template file (which would
> embed variables to be expanded according to class
> expressions stat
Forum: CFEngine Help
Subject: Re: Passing parameters to methods bundle
Author: zzamboni
Link to topic: https://cfengine.com/forum/read.php?3,26825,26833#msg-26833
(I've added this comment to the bug report)
This seems to be a pass-related evaluation issue. If the variable assignments
are conditi
no-re...@cfengine.com writes:
> It seems like a bug to me also. Head on over and report it.
Yep, done:
https://cfengine.com/bugtracker/view.php?id=1270
Neil, thanks for your input on this one. It really helped making things
more clear.
Regards,
--
Trond H. Amundsen
Center for Information
22 matches
Mail list logo