On 10/24/14 9:31 AM, Alan Evangelista wrote:
On 09/17/2014 10:25 AM, Michael Tiernan wrote:
> As just an aside, may I express displeasure with the fact that the
> templating currently "reads" as "Source" = "Target"
instead of the more
> logical "Target" = "Source"
>
> Currently the syntax for the templates reads as if you were saying
> 3+5=x instead of x=3+5
I don't know what you mean.
Sorry. I didn't mean the contents of the templates, I mean the template
definitions as given to Cobbler in the "Management" screen.
Here's a template definition for one of my cobbler profiles:
/var/lib/cobbler/templates/ntp_conf.tmpl=/etc/ntp.conf
It *reads* logically as:
Create the file "{source file on cobbler server}"
from the file "/etc/ntp.conf"
Whereas one would *expect* it to read:
/etc/ntp.conf=/var/lib/cobbler/templates/ntp_conf.tmpl
i.e: ${Target} = ${Source}
While writing this, it occurs to me that should we have the option, it
would be "logical" the way it is written if it said:
${Source} => ${Target}
The difference being the visible "direction of movement" shown by the
arrowhead. Either "->" or "=>" would produce the same thing.
Again, just an opinion.