Hi all

I have a simple template like the following:


---8<------8<------8<------8<------8<------8<------8<------8<------8<---
###################################################################
#
# snmdp configuration for host $(sys.fqhost)
#
# This file is centrally managed by cfengine
# Location for this host: $(site.location)
#
###################################################################

syslocation $(site.location)
dlmod lvs /usr/lib/libnetsnmplvs.so
---8<------8<------8<------8<------8<------8<------8<------8<------8<---


When cfengine applies it, I get this:


---8<------8<------8<------8<------8<------8<------8<------8<------8<---
###################################################################
#
# snmdp configuration for host kvm-test-v06.something
# This file is centrally managed by cfengine
# Location for this host: ?/?/Test Environment

syslocation ?/?/Test Environment
dlmod lvs /usr/lib/libnetsnmplvs.so
---8<------8<------8<------8<------8<------8<------8<------8<------8<---


while with earlier versions (pre-3.3), I am quite sure I'd get this:


---8<------8<------8<------8<------8<------8<------8<------8<------8<---
###################################################################
#
# snmdp configuration for host kvm-test-v06.something
#
# This file is centrally managed by cfengine
# Location for this host: ?/?/Test Environment
#
###################################################################

syslocation ?/?/Test Environment
dlmod lvs /usr/lib/libnetsnmplvs.so
---8<------8<------8<------8<------8<------8<------8<------8<------8<---


Now, while I understand the rationale for that (lines in templates are
being transformed in individual promises: there are a few of them that
are already kept and, hence, not applied twice), I think that this
behaviour partially defeats templates' purposes.

Templates, as I see them, are all about getting much more control of how
the resulting file looks like and how things will be laid down in the
file. Instead, cfengine plays the smartass here, and thinks that it
knows what I want better than I do.

Can you confirm this is a regression from pre-3.3 versions?

If so, should I open a bug for that?

Thanks
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to