Forum: CFEngine Help
Subject: Re: classes visibility in edit_template?
Author: tdr
Link to topic: https://cfengine.com/forum/read.php?3,26375,26388#msg-26388
Hi,
I hit this when first trying out edit_template as well (just this past
weekend...). I'd like to suggest that the documentatio
On Mon, Jul 2, 2012 at 2:31 PM, Mark Burgess wrote:
> Ah, that sounds like a bug/unanticipated issue. Please file a report.
Done: issue 1208.
For the record, I've found a workaround:
1- instead of defining classes in the `classes:` section, call a
bundle of type "common" from `methods:` to defi
Ah, that sounds like a bug/unanticipated issue. Please file a report. Sorry.
Sounds like my fault.
--
Sent from my Android phone with probably ridiculous and involuntary spelling
corrections.
Riccardo Murri wrote:
Hello,
I'm trying to use `edit_template` to generate a configuration file
fro
Forum: CFEngine Help
Subject: Re: classes not working in vars?
Author: ipesin
Link to topic: https://cfengine.com/forum/read.php?3,25293,26337#msg-26337
Hi!
Sorry for reviving the old topic but bumped into similar issue - defining a
class in vars: section. Basically, the reason is that we want
The idea is that these things will be aliases and we will gradually change the
messaging. It will not be a sudden shift.
--
Sent from my Android phone with probably ridiculous and involuntary spelling
corrections.
Nick Anderson wrote:
So I am reading the final version of Diegos Learning CFEng
On 03/16/2012 11:42 AM, Marco Marongiu wrote:
> Il 16/03/2012 15:42, Nick Anderson ha scritto:
Your approach is not exactly equivalent to having a classes attribute in
vars, but I made it do ;)
>> What is so different about it?
>
> The difference is that with a classes attribute, the cla
Il 16/03/2012 15:58, Brian Bennett ha scritto:
> Are you trying to set a class if a vars promise has been kept, or set
> a variable based on the existence of a class?
Actually both :)
$(shortname) is set to $(names), if a $(names) class is defined.
What I desired was that, once $(shortname) is s
Il 16/03/2012 15:42, Nick Anderson ha scritto:
>> > Your approach is not exactly equivalent to having a classes attribute in
>> > vars, but I made it do ;)
> What is so different about it?
The difference is that with a classes attribute, the class is set
immediately, and would affect subsequent pr
Are you trying to set a class if a vars promise has been kept, or set a
variable based on the existence of a class?
--
Brian
On Mar 16, 2012, at 7:41 AM, Marco Marongiu wrote:
> Il 16/03/2012 15:16, Nick Anderson ha scritto:
classes:
>> "has_shortname"
>> expression => isvar
On 03/16/2012 09:41 AM, Marco Marongiu wrote:
> Il 16/03/2012 15:16, Nick Anderson ha scritto:
classes:
>> "has_shortname"
>> expression => isvariable("shortname"),
>> comment => "Set a class if short hostname has been defined";
Nice hint, thanks, I'll use it
Il 16/03/2012 15:16, Nick Anderson ha scritto:
>>> classes:
>>> >> "has_shortname"
>>> >> expression => isvariable("shortname"),
>>> >> comment => "Set a class if short hostname has been defined";
>> >
>> > Nice hint, thanks, I'll use it :)
> I am kind of surprised that having classes
On 03/16/2012 08:44 AM, Marco Marongiu wrote:
> Il 16/03/2012 14:26, Nick Anderson ha scritto:
>> classes:
>> "has_shortname"
>> expression => isvariable("shortname"),
>> comment => "Set a class if short hostname has been defined";
>
> Nice hint, thanks, I'll use it :)
I am kind of su
Il 16/03/2012 14:26, Nick Anderson ha scritto:
> classes:
> "has_shortname"
> expression => isvariable("shortname"),
> comment => "Set a class if short hostname has been defined";
Nice hint, thanks, I'll use it :)
ciao
-- bronto
___
Help-cfe
On 03/16/2012 07:53 AM, Marco Marongiu wrote:
> Hi
>
> Hi had this vars: promise not working as expected:
>
> "shortname"
> comment=> "set a short name if $(names) is defined",
> classes=> always("has_shortname"),
> string => "$(names)",
> ifvarcl
Forum: CFEngine Help
Subject: Re: classes not working in vars?
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,25293,25294#msg-25294
Why do you need the class set? No, I don't think it will work.
___
Help-cfengine mailing
Forum: Cfengine Help
Subject: Re: classes scope with methods
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,20797,20810#msg-20810
Unfortunately, there isn't.
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
Forum: Cfengine Help
Subject: Re: classes scope with methods
Author: yrouxel
Link to topic: https://cfengine.com/forum/read.php?3,20797,20809#msg-20809
Hi Seva,
Thanks for your reply.
I didn't managed to find that information in the reference manual. But,
effectively, classes defined
Forum: Cfengine Help
Subject: Re: classes scope with methods
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,20797,20799#msg-20799
Yann,
In short: no, it doesn't. The only method to define global classes in bundles
is to use the "cla
Forum: Cfengine Help
Subject: Re: classes
Author: Sal
Link to topic: https://cfengine.com/forum/read.php?3,19835,19912#msg-19912
I have come up with a different solution for this type of problem. I create a
var then declare the class.
bundle common prod_host_classes
{
vars
Sandra Wittenbrock writes:
> Thanks for the quick and informative response! Is there a way to define
> a class with only one entry, which is not a list? Could that avoid the
> bug with "singleton lists"?
Just add cf_null[1] element at the end of the list, regards.
Footnotes:
[1] https://c
No - if Cfengine wants a list, you have to give it a list. But just upgrade to
the latest version - the bug is fixed.
-Dan
On Dec 17, 2010, at 2:25 PM, Sandra Wittenbrock wrote:
> Thanks for the quick and informative response! Is there a way to define a
> class with only one entry, which is
Thanks for the quick and informative response! Is there a way to define
a class with only one entry, which is not a list? Could that avoid the
bug with "singleton lists"?
Cheers,
Sandra
On 12/17/2010 02:19 PM, Daniel V. Klein wrote:
> I did not read your config in detail, but you said "only
I did not read your config in detail, but you said "only one server in a class"
and then I see lists, so... If you are running 3.1.0(?), you have possibly
stumbled across a bug with singleton lists that is repaired in the versions
after that. Upgrade to the latest version, and you should see th
Forum: Cfengine Help
Subject: Re: Classes, methods: bug or what is wrong?
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18517,18521#msg-18521
Assuming I understand your intent try this.
methods:
ONE::
"any" usebundle => bundle2 ("
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
On Mon, December 7, 2009 8:13 pm, Daniel Bidwell wrote:
> Purging private classes from context update
> - Deleting roonwit_andrews_edu
> - Deleting weekdays
> - Deleting x86_linux_servers
> - Deleting mail_servers
>
> roonwit is defined as being in both x86_linux_servers and mail_servers.
> Why
26 matches
Mail list logo