CFEngine Help: Re: classes visibility in edit_template?

2012-07-02 Thread no-reply
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 documentation and ex

CFEngine Help: Re: set_config_values() does different things depending on original value of config variable in file

2012-07-02 Thread no-reply
Forum: CFEngine Help Subject: Re: set_config_values() does different things depending on original value of config variable in file Author: nickanderson Link to topic: https://cfengine.com/forum/read.php?3,26379,26382#msg-26382 https://cfengine.com/bugtracker/view.php?id=1209 https://github.com/cf

CFEngine Help: Re: set_config_values() does different things depending on original value of config variable in file

2012-07-02 Thread no-reply
Forum: CFEngine Help Subject: Re: set_config_values() does different things depending on original value of config variable in file Author: nickanderson Link to topic: https://cfengine.com/forum/read.php?3,26379,26387#msg-26387 Don't hesitate to ask if you run into problems. _

CFEngine Help: Re: set_config_values() does different things depending on original value of config variable in file

2012-07-02 Thread no-reply
Forum: CFEngine Help Subject: Re: set_config_values() does different things depending on original value of config variable in file Author: linuxgurugamer Link to topic: https://cfengine.com/forum/read.php?3,26379,26386#msg-26386 I put it in, it works (of course). Here is a diff of the change:

CFEngine Help: Re: set_config_values() does different things depending on original value of config variable in file

2012-07-02 Thread no-reply
Forum: CFEngine Help Subject: Re: set_config_values() does different things depending on original value of config variable in file Author: linuxgurugamer Link to topic: https://cfengine.com/forum/read.php?3,26379,26385#msg-26385 Thank you! It was driving me crazy, and I don't like reporting some

CFEngine Help: Re: set_config_values() does different things depending on original value of config variable in file

2012-07-02 Thread no-reply
Forum: CFEngine Help Subject: Re: set_config_values() does different things depending on original value of config variable in file Author: nickanderson Link to topic: https://cfengine.com/forum/read.php?3,26379,26384#msg-26384 I went ahead and reported it and submitted a pull request with the pat

CFEngine Help: Re: set_config_values() does different things depending on original value of config variable in file

2012-07-02 Thread no-reply
Forum: CFEngine Help Subject: Re: set_config_values() does different things depending on original value of config variable in file Author: linuxgurugamer Link to topic: https://cfengine.com/forum/read.php?3,26379,26383#msg-26383 Thank you. So should I report this as a bug, or have you done that

CFEngine Help: Re: set_config_values() does different things depending on original value of config variable in file

2012-07-02 Thread no-reply
Forum: CFEngine Help Subject: Re: set_config_values() does different things depending on original value of config variable in file Author: nickanderson Link to topic: https://cfengine.com/forum/read.php?3,26379,26381#msg-26381 Sorry I don't think I did a good job explaining. I went ahead and tes

CFEngine Help: Re: set_config_values() does different things depending on original value of config variable in file

2012-07-02 Thread no-reply
Forum: CFEngine Help Subject: Re: set_config_values() does different things depending on original value of config variable in file Author: nickanderson Link to topic: https://cfengine.com/forum/read.php?3,26379,26380#msg-26380 I was able to reproduce the behavior. I would consider it a bug in se

CFEngine Help: set_config_values() does different things depending on original value of config variable in file

2012-07-02 Thread no-reply
Forum: CFEngine Help Subject: set_config_values() does different things depending on original value of config variable in file Author: linuxgurugamer Link to topic: https://cfengine.com/forum/read.php?3,26379,26379#msg-26379 I have the following excerpts in a .cf file: # SSHD configuration

Re: classes visibility in edit_template?

2012-07-02 Thread Riccardo Murri
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

Re: classes visibility in edit_template?

2012-07-02 Thread Mark Burgess
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

classes visibility in edit_template?

2012-07-02 Thread Riccardo Murri
Hello, I'm trying to use `edit_template` to generate a configuration file from a bundle; however, conditionals based on classes defined in the bundle are apparently ignored (i.e., the class expression evaluates to "!any"). I guess that CFEngine does not export bundle-local classes to the templati