Forum: CFEngine Help
Subject: Re: "real" templates
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,23837,23843#msg-23843
I try not to make policy to much like a program. I find it looses its ease of
understanding. If I have to write policy a little longer that is easier
Il 29/10/2011 17:30, no-re...@cfengine.com ha scritto:
> Well, if we are talking edit files,
We do, sorry if it wasn't evident. I thought it was clear when
mentioning templates and conditionally adding stuff to a file.
Let me break down the problem, so that it will be easier to understand
why I a
Forum: CFEngine Help
Subject: Re: "real" templates
Author: mark
Link to topic: https://cfengine.com/forum/read.php?3,23837,23840#msg-23840
Well, if we are talking edit files, then you can embed loops by separating the
loop part as a separate promise. It isn't that much work, and you can always
l
Il 29/10/2011 17:09, no-re...@cfengine.com ha scritto:
> I'm not certain of the parent's intent but I do wish expand_scalars
> supported lists in a looping fashion. For example if I have a list of
> ntp 'servers' bound for ntp.conf I have to preform a little trickery
> to merge the list into a mult
Forum: CFEngine Help
Subject: Re: "real" templates
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,23837,23839#msg-23839
I'm not certain of the parent's intent but I do wish expand_scalars supported
lists in a looping fashion. For example if I have a list of ntp 'servers'
Hi Marco,
I think what you should do is to look at not TFM but an STG (Special
Topics Guide) that explains why you don't need these things in CFEngine
3. The language contains what you need to make loops and conditionals
happen.
For instance, try this for loops:
http://source.cfengine.com/we
Hello there
I would like to know if there is any real templating system that can be
used in cfengine3, and that is not limited to simple scalar
substitution. I am talking about templates supporting conditionals, like
if ($this) { add that to the file }
or array expansion, like
foreach $server (