Forum: CFEngine Help Subject: How to workaround illegal variable names (dots in indices)? Author: FraserCampbell Link to topic: https://cfengine.com/forum/read.php?3,27050,27050#msg-27050
Short story is we have a large environment running CFEngine 3.1.4 across a wide array of older UNIX platforms. Majority of these servers are being migrated to new OS/hardware. Ongoing policy work is being done in CFEngine 3.3 but there is no desire to undertake upgrade of CFEngine client on the older servers (we just want to keep supporting them as-is). I have discovered that dots in array indices are illegal in 3.1.4 but are legal in 3.3.4, here's an example: bundle agent test { vars: any:: "sysctl" string => "1200"; } Can anyone think of a workaround? De-scoping the variable definition with !cfengine_3_1 doesn't help since cf-promises will still evaluate all syntax. I'm really hoping I don't have to resort to maintaining 2 policies ... Thanks, Fraser _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine